Quantization allows you to run large models on affordable hardware. Instead of storing each weight in a 16-bit format, we represent it in fewer bits—eight, six, or four, for example. The file becomes more compact, the model requires less memory and often runs faster.
It is easy to draw an overly convenient conclusion from this: if the final benchmark has changed only slightly, then the quality has been maintained. In practice, errors often appear not in the average score, but in rare facts, code formatting, tool calling and long chains of reasoning.
What exactly does quantization do?
The weights of the neural network are floating point numbers. In BF16 there are 16 bits per weight. Quantization maps many close values onto fewer discrete levels. Along with the weight block, scale factors are stored, with the help of which the engine approximately restores the values during calculation.
Therefore, Q4 does not mean that each parameter takes exactly half a byte and nothing more. The format has scales, minima, metadata, and sensitive tensors can be stored at higher precision. Modern Q4_K_M, Q5_K_M and importance-aware quantization schemes distribute accuracy smarter than the old Q4_0.
How the size changes
For the dense 70B model the rough order looks like this:
- BF16: about 140 GB of weights;
- Q8: about 70–80 GB;
- Q6: about 55–65 GB;
- Q5: about 45–55 GB;
- Q4: about 35–45 GB.
These are guidelines, not promises of compatibility. Separately, memory for the context, KV-cache and engine are needed. Multimodal models may have an additional vision or audio projector.
Why the benchmark may not notice the problem
Alex Ziskind successively reduced the accuracy of one model and compared perplexity, MMLU, mathematical and code tests. In the early stages, the graphics hardly moved. At the same time, the facts were already changing in the answers: the model confused the participants in the lunar missions, came up with nicknames and added plausible, but non-existent details.
In a separate test, the full and 4-bit versions of the model gave a similar result in terms of meaning, but they indented the code differently. The automated test initially interpreted this as a difference in knowledge. This is an important observation: model estimation can both hide real degradation and exaggerate an unimportant difference.
What is usually lost first?
- Rare knowledge: popular facts are preserved, but low-frequency details begin to get mixed up.
- Format Accuracy: JSON, XML, tables, and source code may suffer subtle structural errors.
- Long thoughts: a small mistake at an early step spreads throughout the chain.
- Tool calling: the model knows which tool is needed, but is wrong about the field name or argument type.
- Stability: an answer can be correct nine times and unexpectedly break on the tenth.
How to read GGUF notation
Q8_0 - high-precision 8-bit circuit. Q4_0 is an early simple 4-bit format that is rarely the best choice today. Suffixes _K point to more modern block designs, and _M usually means a mixed distribution of types to preserve important tensors. IQ formats use different representation methods and can yield a smaller size, but require support testing on a specific backend.
You can't compare quants just by the number in the name. Q4s from different families can vary markedly in size, speed and quality.
Practical choice of accuracy
- Q4_K_M: a reasonable starting point for general chat, drafts, and RAGs where the answer is supported by the sources found.
- Q5 or Q6: preferable for programming, analytics, Russian language, long documents and instrumental agents.
- Q8: useful when there is enough memory, and format stability and minimal degradation relative to the original model are important.
- BF16/FP16: needed as a control profile, for additional training or tasks where even a small change in behavior is critical.
For legal, medical, engineering and financial documents, high accuracy is still not enough. RAGs, source citations, disclaimer rules, and human review are required.
Why you shouldn’t re-quantize a finished quantum
The llama.cpp project separately warns: re-quantizing an already compressed model can significantly degrade the quality. The correct process starts with the initial F16 or BF16 checkpoint, after which the desired format is created. If the origin of the file is unknown, the fancy name Q6 does not guarantee quality.
How BunkerAI chooses quantization
- We take the original model and several candidates Q8, Q6, Q5 and Q4.
- We test them on standard open tests, but do not stop at the average score.
- We add real documents, Russian language, long context, JSON and tool calls.
- We measure the share of completely completed tasks, and not just the generation rate.
- We fix the model, engine and parameters as a reproducible configuration profile.
Result: Quantization is not a degraded copy of a model by definition, but an engineering compromise. A good Q5 can be virtually indistinguishable from a BF16 in the right scenario, and a too aggressive Q4 can confidently make mistakes where the general benchmark did not notice anything. You need to choose based on the organization’s tasks, and not on the minimum file size.