What the hell does Quant actually do? A model is trained in BF16, released in Q8, and we use Q4…
Killy
Auf X besuchen@net_termina3437 Follower
19.592 Aufrufe
What the hell does Quant actually do? A model is trained in BF16, released in Q8, and we use Q4 because we're told 'its nearly lossless'.
Fine, but I was curious about the 'nearly' part, what is actually being lost between BF16 all the way down to Q2? As always, its complicated.
Needed a way to visualize the loss, so I had a Qwen 3.8 27B BF16 create a paragraph then had every quant below it do the same and marked the mutations.
When a model writes a word, it assigns 'how sure' percentage to each. For example, 'The weather tomorrow is *windy*, a model is 90% sure all the words are correct except the windy part, since it can also be sunny, cold, hot, cloudy, etc.
Any words a BF16 model was 90% sure of, every quant down to Q2 rarely changes it. On the other hand, any word that it was only 40~50% sure of, such as windy in our example, are the types of data that gets impacted by the quant process.
Okay so what, some words changed, how does this impact anything? I set out to find out, and its all below if you are just as weird as I am about these things.
Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)
Noch keine Kommentare
