the.ai

Inference / Efficiency

verified

Quantization

A trained weight does not need sixteen bits to be useful. Quantization stores weights in four or eight, which shrinks the model enough to fit on smaller hardware and — because decoding is bottlenecked on reading weights, not on arithmetic — usually makes it faster too. The loss in quality is far smaller than the loss in precision suggests.

Viz primitive · update-spectrumcoarseness = 0.4

8 values. The left group decays steeply; the right group is 64% of the way to flat, and reads flatter than the left.

Weight magnitudes at full precision and after quantization. Drag the coarseness up to watch distinct magnitudes collapse onto the same level — which is what fewer bits buys.

0.4

Reviewed by opendroid · 2026-08-04

  • arXiv:2208.07339 — LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
  • arXiv:2210.17323 — GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers