Quantization
Quantization shrinks an AI model by storing its numbers with less precision, so it runs faster and fits on smaller hardware. Here is how it works.
Quantization is a technique that makes AI models smaller and faster by storing their internal numbers with less precision. A model that needs a data center chip in its original form can often run on a laptop after quantization, with only a modest drop in quality.
How does quantization work?
An AI model's knowledge lives in its parameters, usually stored as 16-bit numbers during and after training. Each 16-bit number takes two bytes of memory. Quantization maps those values onto a smaller set of possible numbers, such as 8-bit or 4-bit ones, rounding each to the nearest available step.
Smarter methods quantize in small blocks, each with its own scale factor, so rounding errors stay small. Some skip the most sensitive parts of the model or keep them at higher precision. Done carefully, the model gives nearly the same answers. Done crudely, it gets noticeably worse, especially below 4 bits.
What is an example of quantization?
Take an open model with 70 billion parameters. At 16 bits, the weights alone need about 140 GB of memory, far more than any consumer graphics card. Quantized to 4 bits, that falls to around 35 GB plus some overhead, which fits on a high-end desktop or a well-equipped laptop.
If you have tried tools such as Ollama or LM Studio, you have probably downloaded a quantized file. Many use the GGUF format, which comes in labeled precision levels. Our guide to running an LLM locally explains how to pick one.
Why does quantization show up in the news?
Running AI is expensive, and smaller numbers mean cheaper, faster inference. Chipmakers now design for it directly: Nvidia's recent GPUs support a 4-bit format called NVFP4, and the company reports that quantizing some large models to it costs little accuracy. Quantization also comes up whenever a company announces AI that runs "on device", because squeezing a model onto a phone depends on it.
Why It Matters
Without quantization, capable AI would stay largely out of reach for anyone without a data center budget. For a developer in India or a small business anywhere, it can mean running an open model on hardware you already own, keeping sensitive data off someone else's servers and avoiding per-token bills. The quality trade-off is real but usually modest, so test a compressed model on your actual tasks before deciding. It is also the quiet enabler behind AI that runs on your phone.
Frequently asked questions
Does quantization make AI models worse?
Slightly, in most cases. At 8 bits the difference is usually hard to notice, and good 4-bit versions hold up well for everyday tasks. Very aggressive quantization, such as 2 or 3 bits, tends to hurt accuracy more.
Is a quantized big model better than a smaller full-precision one?
Often, yes. A larger model compressed to 4 bits frequently beats a smaller model of similar file size. It is worth testing both on your own tasks.
Researched and written by The AI Telegraph staff and checked against primary sources. See our editorial policy. Spotted an error? Tell us.
