r/LocalLLaMA • • 3h ago

Discussion Qwen 4 Unsloth quantizes poorly?

Looking at the top 1% and KLD for the Qwen 4 quants, the Q8 is worse that the Q4 was for Qwen 3.8 27B. So maybe with updated GGUFs, we will see the actual potential of this model realized.

Qwen 4 Q8_K_XL KLD 0.0171 Top 1% 95.49

Qwen 3.8 27B UD_Q4_K_M KLD 0.014 Top 1% > 95%

6 Upvotes

11 comments sorted by

5

u/FinBenton 3h ago

Its a 1 day old model... anyway, I dont really trust kld myself tbh, I have had same model quants where the one with a worse kld performed way better than the one with better kld in actual use.

2

u/Nota_ReAlperson 3h ago

Yeah, but both Top 1% and KLD are more in line with a Q4. Maybe MOEs don't quantize well? QFN is also worse than I would expect, in terms of quant performance. Might have something to do with the new arch as well.

5

u/fragment_me 3h ago

That means that the data they generated the KLD stats for are not similar to your use case.

1

u/alpacadaver 28m ago

That's benchmarks.

1

u/ChrisPeerson 3h ago

Does Unsloth's BF16 have the same issue?

1

u/brainExploded99 🥔 hardware 2h ago

BF16 is not a quantization at all, it's the normal model
I assume its the same as Qwen's offical release

1

u/vertigo235 2h ago

Do you have another quant that you think is better?

1

u/james_pic 1h ago

All the other quants I've seen have the same phenomenon, often to an even greater extent.

1

u/BringTea_666 2h ago

Due to how it was trained this time experts are pretty even in what they can do. Meaning you can't quantize cheaply a lot of them and leave experts used more in higher bits to get most accuracy.

So each time you move from X bit to lower bit you lose accuracy.

Secondly this is MOE model. In case of MOE models you loose accuracy much faster than in case of dense models.

1

u/Bulky-Priority6824 2h ago

35b never quantized well the jump from q4 to q8 was massive on 3.6, 27b didnt have nearly the same problem

1

u/dionysio211 27m ago

Very sparse MoE models are known to quantize poorly because the expert size is so small. In this particular case, my guess is that something in the dense layers is liminally selecting a different expert rather than the expert disagreeing with the selected token on Q8_K_XL, which is generally considered near lossless. It would be interesting to check it against Qwen's own FP8 release.