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

  1. 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.
  2. It is applied after training (post-training quantisation) or during training with the error simulated (quantisation-aware training).
  3. Rounding error is reduced with calibration-based methods such as GPTQ and Activation-aware Weight Quantisation.
  4. At run time kernels dequantise weights before computing or use low-precision hardware units directly.

Commonly confused terms

TermHow it differs
PTQ and QATPost-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 trainingMixed-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.

ON-PREMISES EXAMPLE

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.

Sources

Related page on this site: Supermicro page · In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.