Quantization is a memory trade
Fewer bits buy memory and bandwidth. They do not buy FLOPs, and they do not automatically make a model faster or worse.
The first thing people ask about a 70B model is whether it fits on one card. The first thing they should ask is what they are willing to lose. Quantization is usually presented as a free compression step; it is a trade with three separate ledgers: memory, speed, and quality.
What is actually being quantized
Three things can be quantized independently: the weights, the activations, and the KV cache. Most “4-bit model” claims are about weights only. The weights are stored in a lower precision and dequantized on the fly for each matrix multiplication. Activations often stay in fp16 or bf16 because they are more sensitive to outliers. The KV cache is a separate decision, and it can dominate memory at long context.
The memory arithmetic is the easy part:
| Model | fp16 | int8 | 4-bit |
|---|---|---|---|
| 7B | ~14 GB | ~7 GB | ~3.5–4 GB |
| 70B | ~140 GB | ~70 GB | ~35–40 GB |
These numbers ignore scales, zero points, alignment, and the KV cache. They are still useful: at 4 bits, a 7B model fits on a small card, and a 70B model can fit on a single 48 GB GPU. Whether you want to run it there is a different question.
Methods are not interchangeable
Round-to-nearest is the naive version. GPTQ uses layer-wise reconstruction with an approximate Hessian. AWQ protects the small set of activation-salient weights. bitsandbytes NF4 is designed for QLoRA-style fine-tuning. GGUF is the format used by llama.cpp for CPU and mixed CPU/GPU inference. LLM.int8 keeps outlier features in higher precision.
Group size matters. A group of 128 weights shares a scale; a group of 32 follows local structure more closely and costs more metadata. Calibration data matters: a model quantized on English prose and evaluated on code is a different model from one calibrated on code. If a vendor does not say what the calibration set was, the quality number is a hint, not a measurement.
Quality is task-shaped
Perplexity is a blunt instrument. A quantized model can show a small perplexity delta and still lose several points on code, math, long-context retrieval, or a low-resource language. The errors are not uniform across the distribution; they concentrate where the model is already uncertain or where activations have outliers.
So evaluate on your task, not on a generic score. A 4-bit model can be excellent for chat and disappointing for a SQL generator. Test the failure modes you care about: exact identifiers, long documents, structured output, multilingual text, and the tail of your input distribution. Also test with the same prompt template and the same tokenizer; quantization does not change the tokenizer, but it can change how reliably the model follows the format.
Speed depends on what is saturated
Decoding at small batch sizes is memory-bandwidth-bound. Reading 4-bit weights instead of 16-bit weights can be roughly four times less data, which is why 4-bit inference can be faster on a single stream. At high batch sizes or in prefill, the workload becomes compute-bound; dequantization adds work, and the speedup can disappear. Some 4-bit kernels are slower than fp16 on some GPUs.
CPU and Apple silicon are a different story: GGUF with 4-bit or 5-bit weights is often the only way to fit a useful model into unified memory, and the memory-bandwidth savings are real. On a GPU, look for kernels that match your quantization format and your batch size; “4-bit” is not a performance guarantee.
The KV cache is the other half
Quantizing the weights does nothing for the KV cache. At long context, the cache can be larger than the weights, as the KV cache note works out. An fp8 KV cache halves that cost; 4-bit cache quantization halves it again, at a quality cost that depends on the model and the task. GQA already reduces the number of KV heads, so the two techniques stack.
A sensible order: quantize weights to fit, measure quality; if memory is still the limit, quantize the cache; if latency is still the problem, look at batching and kernels before a more aggressive format.
What to check
- Memory: weights plus KV cache plus activations plus allocator overhead. A 4-bit model that leaves no room for a 32k context is not a 32k model.
- Speed at the real batch size: tokens per second and time to first token, not a single-stream benchmark.
- Task quality: your eval, your languages, your longest inputs.
- Calibration and format: what data was used, what group size, what kernels, and whether the serving stack supports it.
Quantization is worth it when memory is the constraint. It is a tax when compute is the constraint, and a quality bet either way. Treat it like a capacity decision, not a checkbox.1
- “Quantization” here means reducing numerical precision for storage and compute. It is not lossless compression; the quality loss is empirical and task-dependent. ↩