Lurker News
We built NariQ: 3-bit-or-lower quantizations of Qwen3.8-27B that retain near-BF16 quality across agentic tasks, math, multilingual reasoning, and image understanding.

To 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

rao-v1 reply#
I've been skeptical of these high compute QAT style quant efforts because they tend to over optimize on benchmark-like datasets, so in real usage they don't quite deliver the "almost as good" guarentee the benchmark comparisions suggest.

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 :)

toebee#
thank you for the kind words!
jedbrooke3 replies#
> Apple M-series (Metal): build from source; on an M3 Pro (18 GB) decode is about 3.8 tok/s with the 3.0bpw file (4.9 with 2.0bpw), far slower than CUDA. Other Macs are untested.

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

vorticalbox#
At 3.8 t/s it’s probably not worth it until the metal speed increases it’s far better to have say ornith 1.5 which runs at 69 per second, while not as smart can iterate far faster.

At 4 tokens a second a 1000 token reply is around 4 minutes.

ricardobeat1 reply#
It's possible to run Bonsai 2 PTQ1 in ~8.5GB of RAM, Macbook Air M3 at much faster speeds:

    mtl chat: models/Ternary-Bonsai-2-27B-PTQ1_0.gguf | vocab 248320 | temp 0.70 top_k 20 top_p 0.80 rep 1.05 | dflash2 up to 7 draft(s)/round, n-gram recent up to 7 | ctx 32768 q8 kv
    type /help for commands, /exit to quit
    you> hi. Alice has 4 brothers and she also has 1 sister, so how many sisters does Alice's brother have?
      To determine how many sisters Alice's brother has, let's break down the family composition based on the information provided:

      1.  Alice is a female child.
      2.  Alice has 4 brothers.
      3.  Alice has 1 sister.

      This means the total children in the family are:
      •   Girls: Alice + her 1 sister = 2 girls
      •   Boys: Her 4 brothers = 4 boys

      Now, let's look at it from the perspective of one of Alice's brothers:
      •   He is male.
      •   His sisters are all the female children in the family.
      •   The female children are Alice and her sister.

      Therefore, Alice's brother has 2 sisters.
    [166 tok, 16.3 tok/s | prefill 36 tok in 13010 ms | 205 tokens in context | stop im_end]
The speed is still not quite there for coding, prefill is especially slow. But it is incredible that it's possible to condense such a great model into a tiny blob.
jedbrooke#
yep I’ve been running Bonsai 2 27B on my mac mini 16 GB. I can juuust about fit 100k context. I get best case 8 tok/s with typical more like 4. It’s almost usable for coding assistants but it’s great for async workflows

Excited to see more “27B” class models that can fit in 16GB

toebee#
My goal too is to build something that works well on my 18GB Mac and my 16GB 5060Ti that runs fast + is the smartest. Will be looking into inference speedups and KV / Activation quantization to make possible! It does run on my Mac alright, but as the comments say, it is pretty slow atm.

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-...

Retro_Dev2 replies#
These quantizations seem really impressive, but I know that the file size is decreasing... What information is actually lost? Surely it's not just reduced noise and more compact, because there's no way that these benchmarks can cover the entirety of the information in the training data.
salviati#
It is possible that there is redundancy being removed. I'm not saying I believe that is the case, but I think it can't be ruled out. The information being thrown away might just be redundant, already present.
mmastrac2 replies#
The trellis quants basically rotate the weights in a way so you end up with something that looks like Gaussian noise, then do a search over the optimum set of bits to encode that noise. What you end up with is a close approximation to the old weights (up to a certain point), but with the energy of the values "shaved".

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.

andai1 reply#
Thanks for the explanation.

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?)

alfiedotwtf1 reply#
Is there a way to reverse engineer or trace the model’s internals so that instead of trying to find a corpus that covers everything like you said, you instead find the set of paths you haven’t walked yet and then keep stepping backward all the way to the input token?
monster_truck#
It's not that there isn't, it's that doing this would take far more time than its worth
WithinReason1 reply#
Based on the plots most of the gains are due to a difference in harness, not the model.
toebee1 reply#
Fair point about harnesses. But if you look at DeepSWE (the primary comparison), BF16 on our harness passes 45.0 tasks per round vs Unsloth's reported 45.65, so I wouldn't say there are gains due to the harness. Also if we compare scores as % of BF16 in the same harness:

DeepSWE v1.1, 113 tasks, fully solved

  Our harness (Claude Code, mean of 3 runs per task)
  File                Size  Solved  of BF16
  BF16             53.8 GB    45.0   100.0%
  NariQ 2-bit      6.75 GB    32.3    71.9%
  NariQ 2.5-bit    8.44 GB    47.3   105.2%
  NariQ 3-bit     10.12 GB    46.3   103.0%
Unsloth's harness (mini-swe-agent, read from their V3.1 chart):

  File                   Size  Solved  of BF16
  BF16                53.8 GB   ~45.7   100.0%
  Unsloth UD-IQ2_XS   7.63 GB   ~14.5    31.8%
  Unsloth UD-IQ2_S    8.42 GB   ~24.5    53.7%
  GSQ-RCO IQ2_XS      8.42 GB   ~19.0    41.6%
  GSQ-RCO IQ2_S       9.26 GB   ~28.0    61.3%
  EXL3 2.20           9.78 GB   ~11.0    24.1%
  Unsloth UD-Q2_K_XL  9.95 GB   ~33.0    72.3%
  GSQ-RCO IQ3_XXS    10.09 GB   ~29.0    63.5%
  GSQ-RCO IQ3_S      11.77 GB   ~40.4    88.5%
  Unsloth UD-IQ3_S   12.04 GB   ~39.0    85.4%
  EXL3 3.00          12.67 GB   ~35.3    77.3%
  Unsloth UD-Q3_K_XL 13.15 GB   ~42.5    93.1%
  Unsloth UD-IQ4_XS  14.35 GB   ~41.0    89.8%
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.
WithinReason#
If the comparison doesn't use the same harness, it's much harder to read

Load more comments