All the numbers a weight is allowed to be
A 16-bit float can be tens of thousands of different values between −1 and 1. Drop to INT4 and only 15 values exist; INT2 leaves 3. Every weight must snap to its nearest allowed value — that snap is the error. Drag the weight, switch precision, and watch the number line empty out underneath it.
Quantize a real network and watch its face
This is an actual 25-weight neural network living in this page. The grey curve is what it computes; the gold curve is the same network after its weights are rounded to the precision you pick. The error number is measured live across the whole input range. Find the bit-width where the face starts to melt.
A 1→8→1 tanh network with seeded random weights, quantized per-tensor with absmax scaling — the same recipe (in miniature) as real INT8/INT4 LLM quantization.
Will it fit? The 70-billion-weight arithmetic
Why does anyone tolerate rounding errors at all? Memory. A model's weight file is simply parameter count × bytes per weight. Pick a model and a precision and see which real machines can hold it — the numbers update live, no magic.
Weights only — the KV cache and activations need extra room on top, so real headroom requirements are higher.
The INT2 cliff — quality vs bits, measured live
EP 02 was one network. Here we quantize twelve seeded networks at every bit-width and average the surviving quality — a real sweep, computed in front of you. Two recipes race: one shared scale for all weights (crude) versus one scale per tensor (standard). Watch where each falls off.
Quality = 100% minus output error relative to each network's output range, averaged over 12 networks.
One weight ruins everything — the outlier problem
Absmax scaling has an Achilles heel: the grid is sized by the largest weight. Real LLMs contain rare outlier weights 20–100× bigger than the rest. Inject one below and watch it stretch the grid so far that every normal weight snaps to zero. Then try the two standard rescues.