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 :)
jedbrooke 2 hours ago [-]
> 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 2 hours ago [-]
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.
IronWolve 21 minutes ago [-]
There are so many new quant methods that are coming up, TCQ, GSQ-RCO and a dozen others. They are chopping the models down to usable size with close precision to q8.
I'm still waiting for the benchmarks on which methods are the best so far.
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.
mmastrac 1 hours ago [-]
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.
salviati 2 hours ago [-]
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.
1 hours ago [-]
mmastrac 2 hours ago [-]
EDIT: I'm not sure why there's downvotes here - if you purport to come out with a new quantization format and it's not front-and-center what your inspiration and trellis are, that's a bit of a red flag (and especially any comparison to the mul1 codebook that it's evolved from).
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)
andai 1 hours ago [-]
Thanks for the info. As for votes, I wouldn't worry about it too much. Votes are mostly noise in my experience.
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.
exe34 1 hours ago [-]
Did you reduce the context to 64k? I thought I got 200k from qwen 3.8 27b last time I tried.
contrahax 38 minutes ago [-]
Same model Q4 in splash supports up to 262K context window
8 hours ago [-]
biswajitnk 8 hours ago [-]
[dead]
Rendered at 21:15:50 GMT+0000 (Coordinated Universal Time) with Vercel.
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.
I'm still waiting for the benchmarks on which methods are the best so far.
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.
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:
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.