Instructions to use sigargv/Laguna-M.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use sigargv/Laguna-M.1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sigargv/Laguna-M.1-GGUF", filename="BF16/Laguna-M.1-BF16-00001-of-00010.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sigargv/Laguna-M.1-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf sigargv/Laguna-M.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sigargv/Laguna-M.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf sigargv/Laguna-M.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf sigargv/Laguna-M.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/sigargv/Laguna-M.1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use sigargv/Laguna-M.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sigargv/Laguna-M.1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sigargv/Laguna-M.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sigargv/Laguna-M.1-GGUF:Q4_K_M
- Ollama
How to use sigargv/Laguna-M.1-GGUF with Ollama:
ollama run hf.co/sigargv/Laguna-M.1-GGUF:Q4_K_M
- Unsloth Studio
How to use sigargv/Laguna-M.1-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sigargv/Laguna-M.1-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sigargv/Laguna-M.1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sigargv/Laguna-M.1-GGUF to start chatting
- Pi
How to use sigargv/Laguna-M.1-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sigargv/Laguna-M.1-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use sigargv/Laguna-M.1-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default sigargv/Laguna-M.1-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use sigargv/Laguna-M.1-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sigargv/Laguna-M.1-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "sigargv/Laguna-M.1-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use sigargv/Laguna-M.1-GGUF with Docker Model Runner:
docker model run hf.co/sigargv/Laguna-M.1-GGUF:Q4_K_M
- Lemonade
How to use sigargv/Laguna-M.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sigargv/Laguna-M.1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Laguna-M.1-GGUF-Q4_K_M
List all available models
lemonade list
Upstream BF16 safetensors Β· Release blog Β· Technical report Β· Merged ik_llama.cpp support
Laguna M.1 Community GGUF imatrix quants
This is an independent community GGUF conversion and quantization upload, not an official Poolside release.
Laguna M.1 is Poolside's Apache-2.0 sparse MoE coding model: 225B total parameters, 23B activated parameters per token, 70 global-attention layers, 256 sparse experts after the first three dense layers, top-k=16 routing, RoPE with YaRN, softplus attention output gating, and a 262,144-token context window.
This repository contains imatrix GGUF quantizations of Laguna M.1 for local experimentation with long-context coding and agentic workloads. The files here are derivative GGUF artifacts built from Poolside's upstream BF16 safetensors; for model architecture, intended use, benchmark methodology, and serving notes, start with the upstream model card, release blog, and technical report linked above.
These GGUFs were produced during the Laguna support work that landed in
ikawrakow/ik_llama.cpp#2003,
"Add Laguna M.1 GGUF support". The PR was merged into ik_llama.cpp on
2026-06-22 as merge commit b47b90d0be80981f6f476c997afbdfab99bba6c7.
At the time of quantization, the support branch commit was
be7d53ceec0c823c07d540e21828d7d187b02d3b.
Laguna GGUF support is now available in ik_llama.cpp builds that include that merge commit or newer. Other runners still need equivalent Laguna GGUF support; the vanilla-compatible quant names below are chosen so that they should also be useful if equivalent Laguna support lands in upstream llama.cpp later.
License and attribution
The upstream Laguna M.1 checkpoint is licensed under the
Apache License 2.0,
copyright 2026 Poolside. This GGUF repository uses the same Apache-2.0 license
metadata and is based on poolside/Laguna-M.1
at upstream revision 5bb2892a899809fd903829735f927207da358f2f.
Poolside's model names, branding, and logos remain Poolside's. This is an independent community GGUF conversion and quantization upload, not an official Poolside release.
Quantization summary
| Quant | Status | Size | PPL | KL divergence | Same top |
|---|---|---|---|---|---|
IQ1_S_R4 |
uploaded | 43.54 GiB | 17.029677 +/- 0.150383 | 1.771976 +/- 0.006119 | 55.882% +/- 0.137 |
IQ1_S |
uploaded | 43.91 GiB | 20.451320 +/- 0.194807 | 1.920889 +/- 0.006747 | 53.988% +/- 0.138 |
IQ2_XS |
uploaded | 63.07 GiB | 12.307893 +/- 0.111532 | 1.325747 +/- 0.005793 | 63.043% +/- 0.133 |
IQ2_S |
uploaded | 63.08 GiB | 12.470802 +/- 0.113326 | 1.340981 +/- 0.005827 | 62.743% +/- 0.134 |
IQ2_K_R4 |
uploaded | 64.35 GiB | 13.397426 +/- 0.128657 | 1.387314 +/- 0.006164 | 62.577% +/- 0.134 |
IQ2_M |
uploaded | 69.47 GiB | 12.101664 +/- 0.109158 | 1.294993 +/- 0.005730 | 63.149% +/- 0.133 |
Q2_K |
uploaded | 77.66 GiB | 12.881872 +/- 0.123074 | 1.330646 +/- 0.005951 | 63.376% +/- 0.133 |
IQ3_XXS |
uploaded | 81.98 GiB | 11.366560 +/- 0.103969 | 1.217616 +/- 0.005754 | 65.037% +/- 0.132 |
IQ3_S |
uploaded | 91.81 GiB | 10.821543 +/- 0.095954 | 1.169696 +/- 0.005503 | 65.583% +/- 0.131 |
IQ3_K_R4 |
uploaded | 91.81 GiB | 11.210677 +/- 0.102925 | 1.181941 +/- 0.005637 | 65.717% +/- 0.131 |
Q3_K_S |
uploaded | 91.81 GiB | 11.531644 +/- 0.106822 | 1.214226 +/- 0.005712 | 65.297% +/- 0.132 |
Q3_K_M |
uploaded | 100.91 GiB | 11.246193 +/- 0.103685 | 1.186657 +/- 0.005657 | 65.816% +/- 0.131 |
IQ4_XS |
uploaded | 112.80 GiB | 4.615172 +/- 0.033625 | 0.067625 +/- 0.000706 | 88.899% +/- 0.087 |
IQ4_KS_R4 |
uploaded | 113.20 GiB | 4.598246 +/- 0.033452 | 0.063984 +/- 0.000683 | 89.217% +/- 0.086 |
IQ4_NL |
uploaded | 119.26 GiB | 4.605535 +/- 0.033524 | 0.066829 +/- 0.000720 | 89.049% +/- 0.086 |
IQ4_K_R4 |
uploaded | 119.26 GiB | 4.617317 +/- 0.033749 | 0.058367 +/- 0.000667 | 89.440% +/- 0.085 |
Q4_K_S |
uploaded | 119.91 GiB | 4.599690 +/- 0.033491 | 0.065115 +/- 0.000694 | 89.013% +/- 0.086 |
Q4_K_M |
uploaded | 127.33 GiB | 4.602518 +/- 0.033538 | 0.061163 +/- 0.000667 | 89.209% +/- 0.086 |
IQ5_KS_R4 |
uploaded | 139.04 GiB | 4.608804 +/- 0.033738 | 0.046126 +/- 0.000597 | 90.056% +/- 0.083 |
IQ5_KS |
uploaded | 139.04 GiB | 4.608804 +/- 0.033738 | 0.046126 +/- 0.000597 | 90.056% +/- 0.083 |
Q5_K_S |
uploaded | 145.10 GiB | 4.598543 +/- 0.033604 | 0.048429 +/- 0.000630 | 89.865% +/- 0.083 |
IQ5_K_R4 |
uploaded | 145.10 GiB | 4.624008 +/- 0.033904 | 0.041238 +/- 0.000541 | 90.446% +/- 0.081 |
IQ5_K |
uploaded | 145.10 GiB | 4.624008 +/- 0.033904 | 0.041238 +/- 0.000541 | 90.446% +/- 0.081 |
Q5_K_M |
uploaded | 149.26 GiB | 4.607405 +/- 0.033688 | 0.045827 +/- 0.000562 | 90.036% +/- 0.083 |
IQ6_K |
uploaded | 174.48 GiB | 4.633778 +/- 0.033986 | 0.028084 +/- 0.000440 | 91.120% +/- 0.079 |
Q6_K |
uploaded | 172.85 GiB | 4.647079 +/- 0.034139 | 0.029602 +/- 0.000429 | 90.977% +/- 0.079 |
Q8_0 |
uploaded | 223.63 GiB | 4.633481 +/- 0.033995 | 0.022906 +/- 0.000376 | 91.302% +/- 0.078 |
BF16 |
uploaded | 420.71 GiB | 4.683023 +/- 0.034506 | baseline | baseline |
Rows are ordered by effective bit-width. Queued rows with pending sizes are placed by quant family and expected BPW.
Imatrix and calibration corpus
The imatrix used for these quants is the 256-chunk public Q8_0 run:
laguna-m1-q8-public-v1-256-gatefix.imatrix- SHA256:
449427a1a4c5d2480d98e3fcccc3884bd3aafa325d937741a162adf84e7e7eed - Source model for imatrix collection: corrected Q8_0 GGUF of Laguna M.1
- Chunks: 256
- Tokens processed: 1,048,576
- Diagnostic imatrix collection PPL:
2.6084 +/- 0.00786
The original imatrix was collected with llama-imatrix from
Laguna-M.1-Q8_0-00001-of-00010.gguf using -c 4096, -ngl 999,
--chunks 256, --no-warmup, and all available CPU threads. The derived
gatefix imatrix is a mechanically augmented copy of that original 256-chunk
file (c8a98474542e2ae7636d7ad0578552398eec3d769b6f9a2981f111a4ba06af12).
Laguna's fused up/gate graph records the shared activation stream under the
up-projection tensor name, so the original imatrix had the up-projection entries
but not all matching gate-projection names. The fix clones:
.ffn_up.weightto.ffn_gate.weight.ffn_up_exps.weightto.ffn_gate_exps.weight.ffn_up_shexp.weightto.ffn_gate_shexp.weight
No numeric values were otherwise changed. Entry count went from 691 original
entries to 828 derived entries, adding 137 cloned gate entries. This removes the
shared-expert gate missing-weight warnings during quantization; the remaining
missing imatrix entries are output.weight and token_embd.weight, which are
explicitly kept at q6_K for these publication quants.
The calibration corpus is laguna-m1-imatrix-calibration-v1.txt:
- Size: 6,526,884 bytes
- Lines: 130,856
- SHA256:
4d478cc0d10da862b0f70040b0c1d948fb88ddac83a5307059e61f02c206622f
The corpus was built by build_laguna_imatrix_corpus.py, with a companion
manifest at laguna-m1-imatrix-calibration-v1.manifest.json. It combines:
- A public baseline:
ubergarm-imatrix-calibration-corpus-v02.txt(6fd2187f10ab1b742cf85eaf35cf9fa20863a557f68451d6535195774cf1fd0a, 1,699,017 bytes). That baseline is described as combining v5 rc calibration text with exllamav3 standard calibration data. - Local ik_llama.cpp source from the pre-merge
laguna-m1-supportbranch, commitbe7d53ceec0c823c07d540e21828d7d187b02d3b, with a clean worktree. The included source set covers the Laguna converter/runtime path, imatrix code, quantizer code, CUDA MMQ/MMVQ dispatch, common CLI/chat helpers, and IQK quantization code. - A deterministic Laguna-specific supplement: 1,200 generated blocks
(12 topics x 10 languages/formats x 10 operations), 2,060,879 bytes, SHA256
9aa0b10f45e79d7a7bfc2373375eec1890b92c8c1f76a74d9fa4c1b0bc8aeb5c. The supplement focuses on Laguna M.1/XS.2 metadata, partial RoPE, SWA/global attention differences, MoE routing and deferred experts, GGUF tensor naming, CUDA inference, KV-cache quantization, speculative decoding, imatrix collection, and publication/reproducibility tasks.
For provenance, the builder also downloaded and hashed
calibration_datav3.txt from bartowski and calibration_data_v5_rc.txt from
Tristan Dampf/Kalomaze, but did not concatenate them separately because they are
already represented through the ubergarm v02 baseline. The Poolside technical
report text/PDF, private shell history, download logs, local machine notes, and
the earlier ad hoc laguna-m1-code-calib.txt were deliberately excluded.
Compatibility notes
Q2_K,IQ2_M,IQ2_XS,IQ2_S,IQ3_S,Q4_K_M,IQ4_XS,Q5_K_M,Q6_K, andIQ1_Sare intended as broad compatibility artifacts once a runner has Laguna GGUF support.IQ1_SandIQ1_S_R4are experimental very-low-bit artifacts for quality/size probing.IQ2_K_R4,IQ3_K_R4,IQ4_KS_R4,IQ4_K_R4,IQ5_KS_R4,IQ5_K_R4,IQ5_KS,IQ5_K, andIQ6_Kare ik_llama.cpp/Spark/Vector-oriented quants selected for direct CUDA MMQ fast paths in ik_llama.cpp.- The
*_R4quants are not intended as universal llama.cpp artifacts today; use them with ik_llama.cpp or another runner that explicitly supports those tensor types.
Metrics
The PPL, KL divergence, and same-top percentages in the table come from the shared 64-chunk validation harness against the BF16 GGUF baseline logits on a fixed slice of the public calibration corpus. The first completed rows were run on Vast, with the remaining smaller and larger rows continuing on Spark and Vector using the same corpus, BF16 KL base, and parser. They are intended as reproducibility and regression checks for these artifacts, not as a general benchmark of Laguna M.1. The imatrix collection PPL above is recorded only as imatrix provenance and is not comparable to these publication validation metrics.
Validation tries full GPU offload first and falls back to lower -ngl values if
the quant is too large for full offload on the validation machine. The validation
logs and results TSVs record the offload setting used where applicable.
Current smoke tests for completed rows produced coherent outputs on both
smoke prompts: an iterative Python Fibonacci function and the arithmetic answer
17 + 25 = 42. All uploaded non-BF16 quant rows above have completed the
same validation harness; BF16 is the reference row used for KL divergence.
Reproducibility
Quantization command shape:
llama-quantize \
--keep-split \
--partial-requant \
--imatrix laguna-m1-q8-public-v1-256-gatefix.imatrix \
--output-tensor-type q6_K \
--token-embedding-type q6_K \
Laguna-M.1-BF16-00001-of-00010.gguf \
Laguna-M.1-<QUANT>-imatrix-public-v1.gguf \
<QUANT> \
$(nproc)
Evaluation command shape:
llama-perplexity \
-m Laguna-M.1-<QUANT>-imatrix-public-v1-00001-of-00010.gguf \
-f laguna-m1-imatrix-calibration-v1.txt \
-c 4096 \
--chunks 64 \
-ngl 99 \
-b 64 \
-ub 16 \
--defer-experts \
--seed 42 \
--kl-divergence \
--kl-divergence-base bf16-reference-logprobs.ctx4096.chunks64.bin
- Downloads last month
- 2,619
1-bit
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for sigargv/Laguna-M.1-GGUF
Base model
poolside/Laguna-M.1