productinterview.tools
MenuClose

What Is Quantisation? Running LLMs at 8-Bit and 4-Bit

Storing a model's numbers at lower precision, such as 8-bit or 4-bit instead of 16-bit, to cut memory and cost, sometimes at some quality loss.

1 min read
On this page
  1. How it works
  2. The numbers
  3. Why it matters, by role
  4. How interviews test it
  5. Common confusions
  6. Related concepts
  7. Sources

How it works

  • Weights are mapped to fewer bits.
  • Less memory frees room for KV cacheKey-value cache. Stored attention keys and values that let a model generate each new token without recomputing the whole context. Read the full explanation and can speed decoding.

Full lesson: AI numbers: memory and compute.

The numbers

  • 13B model: 26 GB at 16-bit, ~6.5 GB at 4-bit.
  • 70B model: 140 GB at 16-bit, 70 GB at 8-bit, 35 GB at 4-bit.

Why it matters, by role

  • AI Infrastructure PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation: A main cost lever.
  • Model PM: Quality impact on key capabilities.

How interviews test it

Common confusions

  • Quantisation isn't free; test on your own evals, including hard slices.
  • It mainly saves memory; speed gains vary.

Sources