NariQ: BF16-level Qwen3.8-27B in a 10 GB file (opens in a new tab)huggingface.co
194 pointsTo our knowledge, this is the first 3-bit-or-lower quantization that retains BF16 lvl performance on long-horizon agentic tasks.
Benchmarks (BF16 / 3-bit / 2.5-bit / 2-bit):
- DeepSWE: 39.8 / 41.0 / 41.9 / 28.6
- Terminal-Bench 2.1: 62.6 / 63.8 / 60.2 / 52.4
- AIME 25+26: 97.7 / 98.3 / 96.5 / 86.0
- MSGM: 94.0 / 93.1 / 91.8 / 90.6
- RealWorldQA: 82.4 / 82.4 / 81.3 / 80.9
Decode speed is comparable to other quants on an RTX PRO 6000. Context-length results below
(3-bit / 2.5-bit / 2-bit / Unsloth UD-IQ3_XXS):
- 4K: 88.9 / 99.2 / 111.7 / 94.7
- 16K: 84.5 / 93.8 / 105.1 / 89.8
- 64K: 70.7 / 77.5 / 85.0 / 74.8
Running these currently require our llama.cpp fork:
(https://github.com/nari-labs/nari-llama.cpp)
Feedback and questions welcome. We'd love to hear how these perform on your workloads.
Comments (36) 16 threads
This project actually does the sort of basic checks I want (and typically don't get)! They show results on multiple types of long horizon tasks (not just coding etc.) and even use the words "held out" a few times :)
I wonder if it would be possible to squeeze it into a 16GB mac. Comparisons to Bonsai 2 27B would be useful too.
Qwen 3.8 27B has truly been such a gift to the self hosted model landscape. “normie” hardware like a 16GB macbook being able to run “pretty useful” (obv not frontier level) LLMs is crazy
At 4 tokens a second a 1000 token reply is around 4 minutes.
Excited to see more “27B” class models that can fit in 16GB
Also on Bonsai's performance - it doesn't seem to do too well on long horizon benchmarks:
Long-context and coding performance. This release also delivers on the roadmap set out in our initial Bonsai 27B release [2], where we identified long-horizon, tool-driven software engineering as the next major capability to improve. With Ternary Bonsai 2 27B, that progress now shows up directly in agentic performance. Evaluated for the first time on Terminal-Bench 2.1 and SWE-bench Verified, the Ternary Bonsai 2 27B reaches 52.8 and 60.8, respectively, compared with 69.7 and 80.6 for Qwen3.5-27B, retaining roughly three quarters of the full-precision performance on both benchmarks.
from their tech report: https://github.com/PrismML-Eng/Bonsai-demo/blob/main/bonsai-...
You lose the fine detail but keep the higher structure. Models are generally pretty resilient to it, especially larger ones. An over-quantized model tends to lose fine detail in its knowledge, lose some ability to track/accumulate accurately, and occasionally loops (because the activations are rounded off too much and lose energy, and it gets trapped in a state where it just can't escape).
When you quantize you try and get as big of a mix of calibration data as possible. You don't need to match the training _set_, just enough data that you exercise 99.999% of the most well-trod paths through the model. Anything outside of the calibration set is a crap-shoot as to whether it gets kept or not, but a well-balanced calibration set will keep performance near-unquantized.
On what calibration does: during quantization you try to minimize the error between the run of the model with original weights and the run of the model with the quant'd weights. Calibration data lets you weight the error away from the paths that are actually chosen with real data.
Apologies, this is a bit of a hand-wavey comment but it's sort of how you can look at it without needing to deal with the hairier math.
Unrelated: Your blog goes back to 1998, and the first posts apologize about even older content being missing. That's amazing. (Maybe the old stuff is on Web Archive?)
https://quantwiki.kindlingai.dev/codebooks/mul1
(claude assisted, obviously!)
And yes, hah, that blog has been through a long, long number of years.
DeepSWE v1.1, 113 tasks, fully solved
Unsloth's harness (mini-swe-agent, read from their V3.1 chart): cf) We did not run Unsloth's files ourselves, their numbers are read off their published chart. Both sides are averages over several runs. Also we'd like to run more experiments on our harness for future releases.All comments shown.
Couldn't load more comments. Check your connection and try again.