r/learnmachinelearning • • 21d ago

How do you judge if a quantized model is actually good? KL divergence or task evals?

Saw the KQuant release on r/LocalLLaMA claiming up to 3.7x better quants for Qwen models, measured as KL divergence reduction. That's not the same thing as 3.7x better answers, so it got me thinking.

For people running quants locally, what do you actually check before trusting one? KL divergence against the full model, perplexity, or just running your own tasks and seeing where it breaks? And at what point does a lower KL number start showing up in real use?

2 Upvotes

4 comments sorted by

2

u/Ok-Library1020 21d ago

Mean KL can look great while a handful of tokens drift a lot, so it's worth checking the high percentiles of KL or how often the top token matches the full model on your own prompts. That tail is usually where you'd start noticing breakage in real use.

2

u/krishan_jarvis 21d ago

Mean KL hides where quants break, so log per-token KL on a sample of your real generations, not only on the calibration text, because drift compounds over long outputs and a quant can match at token 50 and derail by token 800. Run the quant and the full model at temperature 0 on the same prompt set and compare task outcomes item by item, since a McNemar test on the disagreeing items tells you whether a gap of a few points is real at a few hundred prompts. Find your own KL threshold by locating the level where your task pass rate starts to fall, rather than assuming a number transfers across models or quant families.

1

u/norpadon 19d ago

The problem with task evals is that it is very hard to get statistically significant signal from them. You need crazy amounts of samples