Use AIUnderstand AIBuild with AI
Understand AI·Explainer·· 3 min read

What Is Quantization? Why One AI Model Comes in Smaller Versions

Quantization shrinks an AI model by storing its numbers less precisely. Here's what that means, what you gain, and what you can lose.

If you browse AI models that people share online, you’ll notice something odd. The same model often appears several times, with labels like “4-bit” or “8-bit” tacked on. Same name, different file sizes. What’s going on?

The answer is a technique called quantization. It’s one of the main reasons some AI models can run on an ordinary laptop or phone.

An analogy: rounding your prices

Imagine a shop that lists prices to the exact cent: $4.37, $12.91, $7.03. Now imagine a second shop that rounds to the nearest dollar: $4, $13, $7.

The second price list is shorter and quicker to read and remember. For most shopping trips, the totals come out close. But if you add up a thousand items, the small rounding differences can pile up, and for some jobs (accounting, say) they matter.

Quantization is rounding for AI models.

The accurate version

An AI model is, at its core, a very large collection of numbers called parameters or weights. Training adjusts these numbers until the model gets good at its task. When you ask the model a question, it does a huge amount of arithmetic with them.

Each number has to be stored in memory, and computers can store a number with more or fewer bits. A bit is the smallest unit of computer storage. More bits means a number can be stored more precisely, but takes more space.

Quantization takes the model’s numbers and stores them using fewer bits. For example, going from 16 bits per number to 8 bits per number roughly halves the memory the weights need. Going to 4 bits roughly quarters it. The numbers aren’t thrown away. They are just stored less exactly.

That has practical effects:

  • Smaller files. The model takes less disk space and is faster to download.
  • Less memory needed. A model that wouldn’t fit on your graphics card or laptop might fit after quantization.
  • Often faster or cheaper to run, because there is less data to move around. How much depends on the hardware and software.

What do you lose?

Because the numbers are stored less precisely, the model’s answers can change. Sometimes the difference is tiny and hard to notice. Sometimes it is not.

In general:

  • Mild quantization (more bits) usually has little visible effect on everyday tasks.
  • Aggressive quantization (fewer bits) saves more space but raises the chance of worse answers, such as more mistakes in math, code, or following long instructions.

How much damage is done depends on the model, the method used, and the task. You can’t tell from the label alone. Two “4-bit” versions made with different methods can behave differently.

What’s well established, and what’s debated

Well established:

  • Storing weights with fewer bits reduces the memory needed to hold the model.
  • Quantization can change a model’s outputs, and heavier quantization tends to risk more quality loss.
  • Many quantized versions are made by people other than the original model’s creators.

Less settled:

  • How low you can go before quality drops noticeably. It varies by model and task, and results from one model don’t reliably carry over to another.
  • Whether benchmark scores capture the losses. A quantized model may score close to the original on a test and still behave differently on your particular job.

Why you should care

You may never download a model yourself. But quantization explains several things you’ll see in the news and in apps:

  • “Runs on your device” claims. Local AI on a phone or laptop usually relies on compressed models.
  • Why one model has many versions. A smaller file is not a different model, just a compressed form of the same one.
  • Why cheaper isn’t always identical. If a service offers a faster, cheaper version of a model, it’s reasonable to ask what trade-offs were made. Providers don’t always say.

If you’re choosing a version

  • Start with the largest version that fits comfortably on your device.
  • Try it on your own real tasks before trusting it for anything important.
  • Prefer versions shared by the model’s creators or by sources you recognize, and read what they say about quality.
  • If answers seem oddly worse than you’d expect, try a less compressed version.

The short version

Quantization stores a model’s numbers with fewer bits, like rounding prices. The model gets smaller and easier to run, at the possible cost of some accuracy. The trade is often worth it, but it is a trade, and the only reliable way to know is to test it on what you care about.

Related