Apex › Storage & databases

Weight quantization — int4/int8 & the outlier problem

How a 70B model runs on one consumer GPU. Weights trained in fp16 are stored at lower precision: map a group to a few integer levels around a shared scale, so int4 is a quarter the size (and faster, since inference is memory-bound). The cost is rounding error; the twist is outliers — one large weight sets the scale for everyone, spreading the levels so thin that the common small weights collapse toward zero. Slide the bit-width on a number line of weights and toggle an outlier to watch the error jump even though almost nothing moved — the whole reason LLM.int8/GPTQ/AWQ treat outliers specially.

More in Storage & databases