Heads-up: published imatrix has no entries for blk.64 (MTP head) - IQ1 rebuilds fail

#3
by x0me - opened

Thanks for these quants - using them daily.

Flagging something for anyone who reuses Qwen3.8-27B-imatrix.gguf to build their own lower-bit quants. Your shipped files are unaffected; this only bites custom IQ1-tier builds.

Qwen3.8-27B is 64 trunk layers plus one MTP block, so it has blk.64.* tensors. llama-imatrix only runs forward passes through the trunk, so the MTP head never receives activations and no imatrix contains those tensors. This is a known llama.cpp limitation - see #23476 and #23258, neither merged; master at b10437 still has no MTP handling in imatrix.cpp.

At IQ1_S / IQ1_M the quantizer refuses to proceed:

====== llama_model_quantize_impl: did not find weights for blk.64.attn_k.weight
Missing importance matrix for tensor blk.64.attn_k.weight in a very low-bit quantization
The result will be garbage, so bailing out

The awkward part is how it fails: it bails at tensor 852 of 866 after ~7 minutes, having already written everything before it. Since the GGUF header is written last, you get a file of exactly the expected size that begins with zeros, and loading it later reports only invalid magic characters: '????', expected 'GGUF' - nowhere near the real cause.

Workaround is one line as the first entry of a --tensor-type-file (llama.cpp uses first-match-wins):

blk\.64\.[a-z_.]*weight$=q4_K

Costs ~145 MiB (7036 vs 6891 MiB for stock IQ1_S) and keeps the MTP head usable, which matters if you want --spec-type draft-mtp.

FWIW, having measured the tier: sub-2-bit is not worth it for this model. On wikitext-2 (100 chunks, c=512) against a locally built Q8_0 reference at PPL 6.7500:

quant size PPL mean KLD top-1 agree
unsloth UD-IQ2_XXS 8.39 GiB 7.6528 0.146 82.98%
your IQ2_XXS 8.75 GiB 8.5352 0.301 76.53%
stock IQ1_M 7.33 GiB 12.0328 0.659 65.51%
stock IQ1_S 6.88 GiB 14.9721 0.896 60.49%

The IQ1 tier is strictly worse for the size saved, so this is mostly a warning for people who try what I tried rather than a request to change anything.

Disclosure: measurements and this write-up were produced with AI assistance (Claude). All numbers are from actual runs on rented hardware, not estimates.

This is a known issue with MTP where imatrix will never activate on MTP, so those layers have to be forced to be something higher. I choose Q4_0 personally for the raw speed.

This happens for everything below I think IQ2_S and is expected

Thanks for the note. I'm new at this πŸ˜ƒ

no problem ! :) just a funny quirk of MTP being included in the model itself, there's some work upstream to try to identify this ahead of time but it's not as easy as you'd hope :')

Sign up or log in to comment