Quantization
The Power Plant · Inference & ServingStoring weights in fewer bits to make models smaller and faster.
Also called: quantized, quantize, FP8, FP4, NVFP4, MXFP4, INT4, INT8, GGUF, 4-bit, 8-bit. In the glossary.
How it works, as a machineThe Bench House · checkpoints
Follow one checkpoint from a 16-bit file to a 4-bit file on the card, in a model depot, its bench house and the card bay beside it.
- Run the samples
- Pick the layers
- Round to four bits
- Pack the file
- Load on the card
Quantization in plain words
Quantization stores each of a model's weights with fewer bits, for example four instead of sixteen. The model shrinks and runs faster on smaller hardware. A little accuracy is lost with each cut, so the work is finding how far to round before the answers get worse.
An analogy
Rounding prices to the nearest coin. The ledger gets much shorter and adding up is quicker, and for most bills nobody notices. Round to the nearest banknote and the totals start to come out wrong.