GlossaryEntry 22 of 30

Quantization

Storing a model's numbers with less precision so it takes up less space.

Read the transcript

Sixteen gigabytes… squeezed down to four. And it's still the same model. AI glossary, entry twenty-two: quantization. It means storing a model's numbers with less precision, so it takes up less space. First, rounding off. A model is made of billions of numbers, stored with lots of decimal places. Quantization rounds them off… like a high-resolution photo made lighter: still recognizable, just with a little less detail. Then, an example. Llama 3, in its eight-billion-parameter version, weighs about sixteen gigabytes at sixteen bits. Rounded to four bits, the weights drop to about four gigabytes: light enough for a laptop. Why does it matter? It lets you run an open-weight model at home, on a less powerful machine. But it's a trade-off: a heavily compressed version can make more mistakes. Remember: the parameters are rounded off to make the model lighter; it uses less memory and often runs faster; and round off too much, the answers get worse. It's the same model… with fewer decimal places. Next entry: reasoning model.

How it works

A model is made of a huge quantity of numbers, its parameters, stored with a lot of precision. Quantization rounds them off so they take up less memory. It's like going from a very high-resolution photo to a lighter version: still recognizable, just with a little less detail.

Why it matters to you

AI at home

Quantization makes it possible to run an open-weight model on a less powerful computer.

A trade-off

A heavily compressed version is lighter but can make more mistakes. It's about finding the right balance.

Common myth

False: “A quantized model is a smaller, dumber model.”

It takes less memory, but it keeps the same number of parameters, just stored more compactly. With moderate quantization, the loss in quality is often small.

In the news