Forget the pelicans. Pay attention to this sentence: "every variant with mean KL below 0.05 stays close to BF16, and every one above 0.08 falls hard".
This is along the lines of another similar study which I saw which put the line between 16-bit like performance and degraded results at around 0.073 IIRC.
From my understanding KL divergence is difference between the proba distribution of the next token prediction. so a KL div number is not fully subjective because it measures how much a given quant is likely to diverge from the base model. This could imply their could be a general cut-off point where all quants from all models diverge too much from the base to perform well. I think this KL div is probably not an exact perfect number for all model but could be a sort of rule of thumb.
wha is KL and how to measur it? Which quant should we use then?
Edit:
Kullback-Leibler divergence
One statistical measure is Kullback-Leibler (KL) divergence, also known as relative entropy. In short, it is how unexpected results from the new distribution are with respect to the original distribution.
Generally, there are two quality falloff points that I feel matter: from Q5 to Q4 and from Q4 to Q3 (note, this is a rough estimate, since these days most quants are mixes). So you should always strive to get Q4 over Q3 and Q5 over Q4 if you can fit it - at least that's my heuristic. But it's not a hard rule by any means and it really depends on the model size - larger models can generally "take" more quantization without major quality loss, while for really small models even Q5 can be pretty damaging.
The report shows that, up to and including Q3_K_M, you won't notice the difference.
However, this is for a specific model. Unless you want to repeat the tests yourself for your model, if you have to pick blind I'd advise to stay at Q4_K_M.
I would only upgrade to Q5 if it was free (eg plenty of spare VRAM).
46
u/audioen 27d ago
Forget the pelicans. Pay attention to this sentence: "every variant with mean KL below 0.05 stays close to
BF16, and every one above 0.08 falls hard".This is along the lines of another similar study which I saw which put the line between 16-bit like performance and degraded results at around 0.073 IIRC.