NariQ: BF16-level Qwen3.8-27B in a 10 GB file (opens in a new tab)huggingface.co
195 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
Earlier commentsIts seems unnecessarily hard to understand what NariQ is, but it appears to be a derivative of exl3's mul1 with k1-k6, costing ~2 IMAD + 2 LOP3 + 2 IDP + 1 pack IMAD. It's not a real half-width codebook, just averaging k2/k3 to make k2.5? Happy to see someone else discovering the integer addition tricks too.
FWIW in exlr8 we added a pmcgx codebook that likely does better than this at low bitrates, and has a real half-bit (it's pairwise so you can feed an odd number of bits to it). Our team just finished a quant on Qwen 3.8 flash next, but I might be able to spin one up on Qwen3.8-27B to do a direct head-to-head.
Ran a quick head-to-head on some pseudo weights via Claude too:
- NariQ's codebook comes out within ±0.3% of mul1 on every site. Neither of its two changes matters much at K2: the 6-bit digits and the skipped E4M3 rounding each move the error by about 0.1%.
- pmcgx L20 has 1.1% to 3.1% less error than mul1, so it beats NariQ by about the same margin.
Update:
- NariQ looks slightly better from K4-K6 f16 trellis (barely losing to mul1, which is the king there)
Side-by-side codebooks:
Though I've noticed when I say something important, it tends to get downvoted (uncomfortable?) and when I say something silly, it tends to get upvotes (feels good?).
So slightly worse than random, ime. (As far as the stated rules vs social rules go. Irks my autism!)
I've hidden the votes and my score with a userscript to preserve my sanity.
I'm not saying it cannot be done, just like jpeg can represent VERY closely a bmp.. or how youtube codec is almost black magic to condense so much information in so small space...
Just saying, IF true, will be really nice
You can just mjpeg (or the internal DCT) system for quants/KV compression, just FYI: https://arxiv.org/abs/2511.01815
the model is not a photo we observe, is a worker that operates on it's own data and I don't know what's the process get's from that jpegification... they may say... fine or output crap
I'm happy to changing the format to whatever works best, and I'd say it isn't our core contribution. And very cool work on pmcgx, will look into it!
I think our contribution here is that we calculate loss counting only the tokens the model writes in agent sessions, which then drives a width allocator. + banded output-layer widths with two-sided rounding. This lowers KL by around 3x, compared to plain Trellis.
Our approach might be slightly different however, as we encode multiple bit widths and then select per-profile manifest with the lowest KL we can solve at a given size using the per-expert/layer encoded chunks. The most recent quantization run we did for GLM 5.3 has some of the numbers and all of the slices as well.
https://huggingface.co/kindlingai/glm-5.3-exlr8-k2-k3-k4
Appreciate the response. Happy to chat more. I did find the paper with a bit more info and I'll have to see if there's anything we can learn from your approach!
All comments shown.
Couldn't load more comments. Check your connection and try again.