Skip to content

Inference 101, lesson 8

Quantisation: smaller numbers, smaller bills

A model is billions of numbers, and most of them can be rounded without anyone noticing. This lesson shows how rounding makes a model smaller, faster and cheaper, which numbers must stay sharp, and where the loss shows up.

What do you run?

Every example below changes to fit what you pick. The businesses are made up for teaching.

The picture, one step at a time

Each box is one stage. The picture lights up as you scroll.

Step 1 of 7

A model is a very long list of numbers

Everything a model learned is stored as numbers, called weights. There are billions of them, usually kept at 16 bits each, which is 2 bytes. So a model with 70 billion of them takes about 140 GB of memory. Quantisation means storing each number with fewer bits. Picture rounding every price in a shop to the nearest penny: the till is simpler, and almost nobody notices.

Step 2 of 7

Fewer bits: smaller and faster

At 8 bits each, that 70-billion-number model takes about 70 GB. At 4 bits, about 35 GB. Lesson 2 showed that writing each token means reading the whole model from memory, so a smaller model is less to read every time. It can run on a smaller chip, leave more room for users' notes, and write faster.

The GPTQ paper (Frantar and others, 2022) rounded a 175-billion-parameter model to 3 or 4 bits in about four GPU hours, with "negligible accuracy degradation" on its tests. That let the model run on a single GPU, about 3.25 times faster on an NVIDIA A100 than at 16 bits.

Step 3 of 7

Where the penny picture breaks

Rounding to the penny works because prices are all roughly the same size. A model's numbers are not. A small share are far bigger than the rest and carry much of the meaning. Round those as roughly as the others and the answers fall apart. So good methods find the few that matter and keep them sharp, and round the rest.

The LLM.int8() paper (Dettmers and others, 2022) found large values in a regular pattern among the numbers passing through the model, worked those out at 16 bits and the rest at 8, halving the memory a 175-billion-parameter model needs "without performance degradation". The AWQ paper (Lin and others, 2023) found that protecting only 1% of the weights greatly cuts the error.

Why can't you just round every number the same way?

Step 4 of 7

How much it loses

Done carefully, 8 bits loses very little, and often nothing you could measure. Rounding only the weights to 4 bits loses a little more, but less than people expected. Go further, and the risk of real damage grows, most of all on smaller models. So the usual trade is a model half or a quarter the size for a small drop in quality.

A study of over 500,000 test runs on Meta's Llama 3.1 models (Kurtic and others, 2024) found one 8-bit format "effectively lossless", another 1% to 3% worse, and 4-bit weights "rivaling 8-bit quantization".

Step 5 of 7

Where the loss shows

An average hides where the damage lands. Rounding hurts small models more than large ones, because each number is doing more of the work. And it hurts hard tasks more than easy ones: long chains of reasoning, where one small slip early on spoils the answer. A model that seems fine on easy questions can stumble on your hardest ones.

A 2025 study of reasoning models (Liu and others) found that "smaller reasoning models tend to suffer more", and that hard maths contest questions lost up to four times as much as simple school maths questions.

Step 6 of 7

Who does the rounding

If you use a closed model through an API, the provider decides how it is stored, and you judge it only by its answers and its price. If you run an open model yourself, or pick a service that hosts one, you choose. Open models are often shared in 8-bit and 4-bit versions, with names that mention the method, such as GPTQ or AWQ.

Step 7 of 7

Test it on your hardest work

Before you switch a model you use for answering customers, take your 30 hardest real cases, not your easiest, and run them through both versions. Count the answers that are wrong or need fixing. Then work out the cost per finished task each way, with lesson 4's worksheet: a cheaper model that needs more retries can cost more.

Which test tells you whether a 4-bit version is good enough?

Is a 4-bit version worth trying?

Here are four jobs in your business that run on an open model. Sort each one: try a 4-bit version, or stay at 8 bits or more?

  1. 1You want an open model on the shop's own small computer to tag photos of new stock by colour and type, and the full version will not fit in its memory.

  2. 2A small open model on your laptop works out trade discounts and VAT on wholesale orders.

  3. 3A large open model on a rented chip answers routine "where is my order?" questions, and you want more chats to fit on the chip.

  4. 4Your model drafts replies to formal complaints that may need careful legal wording, and it only just passes your checks today.

0 of 4 right so far, 4 to go.

The quantisation trade-off card

This is what you keep: what rounding saves, what it can cost, and how to test it before you switch.

The quantisation trade-off card

  1. A model is billions of numbers. Quantisation stores them with fewer bits, like rounding prices to the nearest penny.
  2. At 16 bits a number takes 2 bytes. 8 bits halves the model and 4 bits quarters it: less memory, less to read per token, faster and cheaper.
  3. A few numbers matter far more than the rest. Good methods keep those sharp; careless rounding breaks the model.
  4. In large tests, careful 8-bit versions lost little or nothing, and 4-bit weights came close to 8 bits (Kurtic and others, 2024).
  5. The loss lands most on small models and hard tasks, such as many-step maths (Liu and others, 2025).

Try the smaller version on your hardest real cases, not your easiest, and compare the cost per finished task.

Next: Lesson 9: Speculative decoding: a fast guesser and a careful checker. How a small model drafts ahead so a big one can write faster, with the same answer.