What is quantisation?
Quantisation is storing and computing model weights with fewer bits to reduce memory and compute needs; activations and the KV cache can be quantised too.
It differs from pruning in method: pruning removes parameters, while quantisation keeps the parameter count and lowers the bits per parameter. It is one route to model compression.
- Topic
- Machine learning, models and training
- Also known as
- Quantization, model quantisation
How quantisation works
- Floating-point values are mapped to a limited set of integer levels, or to low-bit floating-point formats such as FP8, using a scale and optionally a zero point; scales can apply per tensor, per channel or per small weight group.
- It is applied after training (post-training quantisation) or during training with the error simulated (quantisation-aware training).
- Rounding error is reduced with calibration-based methods such as GPTQ and Activation-aware Weight Quantisation.
- At run time kernels dequantise weights before computing or use low-precision hardware units directly.
Commonly confused terms
| Term | How it differs |
|---|---|
| PTQ and QAT | Post-training quantisation (PTQ) compresses an already trained model using a small calibration dataset (e.g., GPTQ, AWQ); quantisation-aware training (QAT) simulates quantisation rounding during training so weights adapt to low-precision noise. |
| Mixed-precision training | Mixed-precision training (such as FP16 or BF16 with FP32 master weights) accelerates training while maintaining near-32-bit fidelity; inference quantisation aggressively compresses weights, activations or KV caches down to 8-bit, 4-bit or sub-4-bit formats primarily for deployment efficiency. |
Why quantisation matters for on-premises AI
The memory effect is simple arithmetic: a 70-billion-parameter model's weights take 140 GB at 16 bits (70 billion × 2 bytes) and about 35 GB at 4 bits (70 billion × 0.5 bytes), plus scales and the KV cache. The same model then runs on fewer GPUs, cutting hardware and energy cost. Accuracy loss varies by task and language; Turkish tasks are tested on the organisation's own evaluation set. Quantised files are model weights too; their source and integrity are verified.
A telecoms operator compares quantised and unquantised versions of its in-house call summarisation model on representative test records before choosing how to deploy it.
Common questions
How much does quantisation reduce answer quality?
At 8 bits the loss is negligible for most tasks. At 4 bits calibration-based methods keep it limited, but complex reasoning and Turkish tasks should be measured before deciding.
Does quantisation speed up inference?
Often, because less data moves from memory. The gain depends on hardware and kernel support; without support, dequantisation overhead can slow it down.
Related terms
- Post-training quantisation
- Quantisation-aware training
- Quantisation error
- Weight-only quantisation
- Activation-aware Weight Quantisation
- Activation quantisation
- Model compression
- GPTQ
- Model memory footprint
- KV cache quantisation
Sources
- Jacob et al., Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference, 2018
- Nagel et al., A White Paper on Neural Network Quantization, 2021
- Gholami et al., A Survey of Quantization Methods for Efficient Neural Network Inference, 2021
Related page on this site: Supermicro page · In the glossary: Glossary, M to Q