AI 101 — What is model quantization?

Share
AI 101 — What is model quantization?

A large language model is a giant bag of numbers. Quantization is the trick of shrinking those numbers so the model takes up less memory and runs faster — usually with only a small, barely-noticeable drop in quality.

If you have ever tried to run a powerful open-weight model on your own laptop and watched it choke, quantization is the reason some people can and some can't. It is also why a phone can now hold an assistant that, a couple of years ago, needed a rack of servers. This explainer is about the single most practical lever for putting AI on cheaper hardware — and it sits right at the intersection of the open-weight models we covered earlier and the "run it yourself" trend that keeps showing up in the news.

Flat lay of rustic baking ingredients and tools on a wooden countertop, perfect for culinary inspiration.

The mental model

A model's "weights" are the millions or billions of numbers it learned during training. In their full form, most of those numbers are stored in 16-bit floating point — what engineers call FP16. Each number gets 16 bits (two bytes) of memory. A 7-billion-parameter model in FP16 therefore needs about 14 gigabytes of memory just to hold the weights, before you add the overhead of actually running it. That is more than most consumer laptops have free, and it is a serious chunk of a graphics card.

Quantization converts many of those 16-bit numbers into smaller ones — 8-bit integers (INT8), 4-bit integers (INT4), or similar. Halve the bits, roughly halve the memory; go to a quarter of the bits, roughly quarter the memory. A 7B model that needed 14 GB can land near 4 GB in 4-bit form, small enough for a modest laptop GPU or even some phones. Smaller numbers also move through the chip faster, so the model tends to generate text more quickly and draws less power. The trade-off is precision: a number rounded from "13.4132" to "13" loses detail, and enough rounding can make the model's answers slightly worse or occasionally odd.

The kitchen analogy

Think of a recipe written with a hyper-precise digital scale: "add 13.4132 grams of flour." That level of detail is faithful, but it is also heavy to write down, store, and follow. Quantization is switching to measuring in whole grams — "add 13 grams." The cake comes out essentially the same, the recipe fits on a much smaller card, and you can carry it in your pocket. Push too far, though — "add a fistful" instead of a measured gram — and the cake starts to fall apart. In AI terms, aggressive quantization (2-bit or stranger) is the fistful stage: it saves the most space but the quality gets flaky.

Common misconceptions

"Quantization makes the model dumber." Not exactly. Good quantization methods keep most of the important numbers sharp and only compress the ones that don't matter much. On a 4-bit or 8-bit model, most people cannot tell the difference from the full version on everyday tasks. The drop is real but often small.

"Lower bits is always better." Lower-bit means smaller and faster, but each step down risks more quality loss. There is a sweet spot (often 4-bit or 8-bit for consumer use) rather than a race to the smallest number.

"It is the same as compression like a ZIP file." No. A ZIP file loses nothing — you get every original bit back. Quantization is lossy: the smaller numbers permanently discard some precision. You trade a little accuracy for a lot of savings, which is a different bargain.

"Only hobbyists care." Every cloud provider quietly quantizes models to cut serving costs, and on-device assistants on your phone rely on it. It is an industry-wide cost lever, not a garage hack.

Where to learn more

If you want to go deeper, the two methods you will hear named most are GPTQ and AWQ, both post-training recipes for squeezing models down to 4-bit without retraining them from scratch. The llama.cpp project and Hugging Face's documentation explain how to pick a quantization level and what each one costs in quality. And if you are deciding between running a model yourself versus calling an API, our explainer on open-weight models covers the bigger picture, while what is a context window explains the memory budget a quantized model helps you fit inside.

Which matters more to you when running AI yourself — saving memory or keeping every decimal of quality? Write to us via our contact page.

Sources: llama.cpp

Get SiliconNoon in your inbox

One email a day with the AI stories that matter — what happened, the numbers, and why it matters. No spam, unsubscribe in one click.

Read more

AI 101 — What is synthetic data?

AI 101 — What is synthetic data?

Synthetic data is information generated by a computer — not collected from the real world — that mimics the patterns, structure, and statistical properties of real data well enough to train an AI model. It is one of the most important tools in modern AI development, and one of the least understood. Every major lab is using it, many products depend on it, and the debate over whether it is good enough to replace real-world data is shaping where the field goes next. Why it matters right…

AI 101 — What is a token in AI?

AI 101 — What is a token in AI?

A token is the chunk of text an AI model actually reads and writes — not a word, not a character, but a piece of a word: "un", "believ", "able". Every language model, from the smallest phone-side model to the biggest frontier system, does its work by predicting one token after another. If you understand tokens, you understand why AI bills look the way they do, why some languages cost more than others, and why a model can count the letters in "strawberry" and still get it wrong. It is also the…

AI 101 — What is an embedding?

AI 101 — What is an embedding?

An embedding is a list of numbers that represents the meaning of something — a word, a sentence, a photo, a song — so a computer can compare meanings using arithmetic. The rule is simple and surprisingly powerful: things that mean similar things get similar lists of numbers. That's the whole idea, and it's the foundation of semantic search, recommendation feeds, and most of what people call "AI memory." Why it matters right now Embeddings are the invisible layer under nearly every AI feature…

AI 101 — What is a diffusion language model?

AI 101 — What is a diffusion language model?

A diffusion language model writes text the way an image generator paints a picture: it starts with a block of noise and refines the whole thing over several passes, instead of typing one word at a time left to right. Almost every AI you have used does the typing. This is the main rival design, and in the last week it went from research curiosity to something running real phone calls and coding agents. The reason it is in the news is Inception's Mercury 2.5 release, which the company calls the…