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
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.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-...
At 4 tokens a second a 1000 token reply is around 4 minutes.
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
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.I'm still waiting for the benchmarks on which methods are the best so far.
Its 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:
mul1(s): nariq(s): pmcgx(w): # w = 20-bit state, 2 values
x = s * 0x83DCD12D x = s * 0x83DCD12D x1 = w * 0xCBAC1FED
t = sum(bytes(x)) t = sum(bytes(x) >> 2) x2 = w * 0xBCA14C51
v = fp16(1024 + t)*c + d v = t - 126 m1 = (x1 & 0x8FFF8FFF) ^ 0x3B603B60
return e4m3(v) return v # int, exact m2 = (x2 & 0x8FFF8FFF) ^ 0x3B603B60
a = fp16(m1.lo) + fp16(m2.hi)
b = fp16(m1.hi) + fp16(m2.lo)
return e4m3(a), e4m3(b)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!
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
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.
Interesting approach nevertheless.