The Open Model EcosystemLesson 32 of 71

Module 4 · Making it run on the machine you have

What quantisation actually does

In this lesson

  • 10 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 2 of 10 in this chapter

This chapter’s goalSize, quantise and serve an open model on hardware you actually have (a laptop, a phone, a free cloud tier or a rented GPU) predict its generation speed from memory bandwidth before running it, choose a bit width you can defend, and state the monthly token volume at which renting stops being cheaper than owning.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
An 8B model on disk, by quantisationbf16, the reference16.1 GBQ8_08.5 GBQ6_K6.6 GBQ5_K_M5.7 GBQ4_K_M4.9 GBQ3_K_M3.9 GBQ2_K3 GBQ4_K_M is about 4.9 GB rather than 4.0 because each block of weights carries a scale, and often aminimum, alongside the indices: roughly five bits per weight, not four. That extra gigabyte is thescales, and it is the answer to where it came from.
Q4_K_M is about 4.9 GB rather than 4.0 because each block of weights carries a scale, and often a minimum, alongside the indices: roughly five bits per weight, not four. That extra gigabyte is the scales, and it is the answer to where it came from.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Storing a number in four bits

A weight in a released model is usually bfloat16: sixteen bits, of which eight are exponent. Quantisation stores it in fewer bits, and the whole art is in how you keep the information that matters.

Naively rounding every weight to one of sixteen values across the model’s full range would be a disaster, because a handful of large weights would stretch the range and everything else would collapse to zero. So quantisation is done block-wise. Split the weights into blocks of 32 or 64. For each block, find the largest magnitude, store a scale factor, and store each weight as a small integer index into that block’s range.

Text
block of 32 weights, 4-bit:
  32 indices x 4 bits           = 128 bits
  1 scale in fp16               =  16 bits
  (some schemes also a minimum) =  16 bits
  ------------------------------------------
  160 bits / 32 weights          = 5.0 bits per weight

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Maths You Actually Need exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘What quantisation actually does’, in The Open Model Ecosystem. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/open-models/quantisation-explained (Accessed: 29 November 2026).