Exchange
The quantisation trade-off card
1 file2 KB
A look inside
The first lines of quantisation-smaller-numbers.md. The whole file is in your library once you get it.
# The quantisation trade-off card A free card from MenFem's Inference 101, lesson 8: Quantisation: smaller numbers, smaller bills. The lesson, with the picture and the examples: https://menfem.com/courses/inference-101/quantisation-smaller-numbers This is what you keep: what rounding saves, what it can cost, and how to test it before you switch. 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). **The rule:** Try the smaller version on your hardest real cases, not your easiest, and compare the cost per finished task. ## Used once From the lesson, on a made-up shop: "You 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." Answer: Try a 4-bit version. A simple job and a machine that is too small. A 4-bit version takes a quarter of the room, and tagging colours is not where rounding hurts. Test it on a few hundred photos. ## Your turn Write one case from your own work here, then go down the card line by line. …and 8 more lines.
What is inside
- quantisation-smaller-numbers.md2 KB
How to use it
Open it beside the job and go down the 5 lines in order, then check your answer against the rule at the bottom. It is the card from Inference 101, lesson 8 (Quantisation: smaller numbers, smaller bills), with one worked example from the lesson and a space for your own case.
Run before it was listed
Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.