Nari Labs' 3-Bit NariQ Quant Matches BF16 Qwen3.8-27B on Agent Benchmarks
On this page 6 sections
TL;DR
NariQ, released November 20 by Nari Labs, packs Qwen3.8-27B into 10.12 GB at 3 bits per weight and 8.44 GB at 2.5, and both files score level with the 53.8 GB BF16 original on the two long-horizon agentic benchmarks, DeepSWE and Terminal-Bench 2.1, plus AIME 25+26 and RealWorldQA. Per the tech report, quantizations at or below 3 bits had previously solved at most 72% as many DeepSWE tasks as BF16. The trick is calibration: the quantizer is tuned on tokens the model writes inside agent sessions instead of web text.
The files need Nari Labs' llama.cpp fork to run, and that fork is fast on Blackwell workstation GPUs so far and slower than comparable GGUFs on Ampere, Ada, Hopper and Apple Silicon.
What the numbers say
On DeepSWE v1.1 (113 tasks, three rounds each), BF16 solves 45.0 tasks per round, the 3-bit file 46.3 and the 2.5-bit file 47.3. The 2-bit file manages 32.3, which is where low-bit quants have always lived; the cliff between 2.5 and 2 bits is right there in the numbers. Terminal-Bench 2.1 tells the same story: 63.8 for the 3-bit against 62.6 for BF16. AIME 25+26 lands at 98.3 versus 97.7, MGSM at 93.1 versus 94.0, RealWorldQA dead even at 82.4.
All agent runs used the Claude Code CLI (2.1.309, thinking on, effort max) driving the local model at a 262,144-token context. These are maker-run numbers with no independent verification yet. They pass the one sanity check available: when commenters on the Hacker News thread argued the gains came from the harness, the author noted that BF16 on his harness solves 45.0 DeepSWE tasks per round against the 45.65 that Unsloth reports for BF16 on its own harness, so the baseline is not inflated.
Calibrate on the tokens you actually generate
Most post-training quantization is tuned to cut perplexity on short web text, then judged on short benchmarks. An agent session is a different sport: hundreds of tool calls, 100K-plus tokens of accumulated context, and errors that compound because one rounded-off token steers the next fifty steps. Quantization error is a tiny steering drift: invisible on a lap around the block, and after 300 turns of an agent run you are parked in the neighbor's yard. That mismatch is why a 3-bit quant can look fine on AIME and then solve only 72% as many DeepSWE tasks as its full-precision parent.
Two details do the heavy lifting, from the report and the author's comments: the calibration loss counts only the tokens the model writes in agent sessions, so prompts are effectively free, and that loss drives a per-layer width allocator, with banded output-layer widths and two-sided rounding on top. The author reports about 3x lower KL divergence from BF16 on held-out agent traces than plain trellis quantization. The trellis codes build on QTIP; a maintainer of ExLlamaV3 dissected the codebook in the HN thread and measured it within 0.3% of that project's mul1 codebook. The novelty is the calibration target, not exotic arithmetic.
The fine print, and there is plenty
- Runtime: the new tensor types need the fork. Stock llama.cpp, Ollama and LM Studio cannot load these files yet; upstream support is the stated hope.
- Speed: tested on RTX PRO 6000, H100, L4 and A10. Ampere, Ada, Hopper and Apple M-series run slower than comparable GGUFs so far, pre-Ampere falls back to CPU, AMD and Intel are unsupported, and GeForce cards are untested. On an M3 Pro the 3-bit file decodes at about 3.8 tok/s, which is less a coding agent than a thoughtful pen pal.
- What is not quantized: the vision tower stays BF16, the multi-token-prediction module is not shipped yet, and the KV cache and activations stay BF16. Those are next, and they are what would put long contexts on 16 GB cards.
- Scope: one model, one author. Doyeob "Toby" Kim calls it a solo effort and asks for contributions on the non-Blackwell kernels.
Try it
One command on Linux with an NVIDIA GPU and driver 570 or newer downloads the fork's binaries and the model files, checks them, and fits the context to your card:
curl -fsSLO https://github.com/nari-labs/nari-llama.cpp/releases/download/b12431-nariv0/run.sh
bash run.sh 3.0
On a 24 GB GPU that lands near 135K context for the 3-bit file, about 160K for 2.5-bit and 184K for 2-bit; the full 262K wants roughly 30 GB. Going manual works too: llama-server from the fork with the vision projector file and the thinking-mode sampling the scores used (temperature 1.0, top-p 0.95, top-k 20).
If the results survive independent replication, the practical version is a 27B open-weight agent model holding a 135K-token session on a single 24 GB card. The transferable idea: any team already running agents in production logs traces, and those traces are free calibration data for a quantizer, a speculative decoder, or a routing policy. Compress for the tokens you actually generate, not the ones Wikipedia gave you.
Key Takeaways
- Nari Labs released NariQ on November 20: trellis-coded post-training quantizations of Qwen3.8-27B at 3, 2.5 and 2 bits per weight, Apache 2.0, with an arXiv tech report.
- The 3-bit file (10.12 GB) and 2.5-bit file (8.44 GB) match BF16 (53.8 GB) on DeepSWE v1.1 and Terminal-Bench 2.1, and on AIME 25+26 and RealWorldQA; quantizations at or below 3 bits previously solved at most 72% as many DeepSWE tasks as BF16.
- The method: calibrate on tokens the BF16 model writes in real agent sessions, use that loss to drive per-layer bit-width allocation, and band the output-layer widths. About 3x lower KL on held-out agent traces than plain trellis quantization.
- Evals are maker-run on a Claude Code harness; the BF16 baseline cross-checks against Unsloth's published numbers, and independent replication is still pending.
- Running it requires Nari Labs' llama.cpp fork: fast on RTX PRO 6000-class Blackwell, slower on Ampere, Ada, Hopper and Apple Silicon, with about 3.8 tok/s decode on an M3 Pro.
- A 24 GB GPU fits roughly 135K context with the 3-bit file; KV-cache and activation quantization are the stated next step.
Sources: NariQ model card and files, NariQ tech report (arXiv 2611.26157), nari-labs/nari-llama.cpp, Hacker News discussion, Qwen3.8-27B model card, DeepSWE, Terminal-Bench, QTIP (arXiv 2406.11235)