Running Models YourselfLesson 21 of 82

Module 3 · Quantisation and model formats

K-quants and importance matrices

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 3 of 9 in this chapter

This chapter’s goalChoose a quantisation format and bit rate for a stated model, machine and task; produce a quantised model yourself from the original weights; and measure the resulting damage with a method that can actually detect it, rather than relying on a perplexity delta that cannot.

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

A little at a time

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

Step 1 of 7Free · no account needed
Lesson steps

Rounding is not the hard part

Quantising a weight is trivial: divide by a scale, round, store the integer. The hard part is choosing the scales, and choosing which weights deserve protection. Everything that separates a good 4-bit model from a ruined one is in those two decisions.

Blocks, super-blocks and the real bit rate

A simple scheme takes 32 weights, finds the largest magnitude among them, sets a scale so the range fits, and stores 32 four-bit integers plus one 16-bit scale. That is 4 + 16/32 = 4.5 bits per weight, and the extra half bit is the reason a “4-bit” file is never exactly half the size of an 8-bit one.

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 Open Model Ecosystem exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘K-quants and importance matrices’, in Running Models Yourself. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/running-models-yourself/k-quants-and-importance-matrices (Accessed: 29 November 2026).