An AI model is a huge collection of numbers, and by default each one is stored with a fair amount of precision. Quantization rounds them to a coarser format, using fewer bits per number. The model takes up much less memory and runs faster, so it can fit on a smaller graphics card, a laptop or a phone. It is one of the standard ways to make open-weight models affordable to self-host, and it is invisible to end users when done well.
How it works
Model weights are typically trained in 16- or 32-bit formats. Quantization converts them to 8-bit, 4-bit or occasionally lower formats. The rounding introduces small errors, and clever methods reduce their effect, for example by treating the most sensitive weights more carefully or by calibrating on sample data.
The trade-off is roughly:
- Moderate quantization usually preserves quality well for many tasks while cutting memory substantially.
- Aggressive quantization saves more but can degrade accuracy, particularly on reasoning, maths, rare languages or long outputs.
Quantized models are distributed in specific file formats that suit particular serving tools, and many popular open-weight models are published in pre-quantized versions. Quantization can also be combined with LoRA to fine-tune large models on modest hardware.
A company running an internal assistant on its own servers might, for example, use a 4-bit version of a mid-sized open-weight model so it fits on a single graphics processor rather than several.
What it means for cost
Quantization is mainly a running-cost tool for self-hosted models. Smaller memory needs mean cheaper or fewer machines and, often, faster inference. For builds that call a provider's API, it is the provider's concern rather than the buyer's.
The cost risk is quality. A quantized model must be tested on the real task, not assumed equivalent to the full version, because losses can concentrate on exactly the hard cases that matter. Ask a builder which precision they plan to use, what quality checks compare it with the full model, and how much hardware the choice saves.
Common questions
Does quantization make a model less accurate?
Usually a little, and sometimes not noticeably for straightforward tasks. More aggressive compression increases the risk of errors. Comparing outputs on a set of real examples is the reliable way to judge.
Can any model be quantized?
Any model whose weights you have can be quantized, which in practice means open-weight models. Closed models offered only through an API are managed entirely by their provider.
Is quantization the same as distillation?
No. Quantization keeps the same model and stores its numbers more coarsely. Distillation trains a different, smaller model to imitate a larger one. The two are often used together.