Module 2 · Smaller, faster, still correct · Lesson 4
Quantisation with evidence
Quantisation trades bits for memory bandwidth, so it is the biggest latency and cost lever you own; the only acceptable proof that it didn't break your model is a paired run of your own evals plus a KL check against the full-precision weights.
By the end of this lesson you can
- Explain weight-only (GPTQ, AWQ, GGUF k-quants) and weight-and-activation (SmoothQuant, FP8, NVFP4) quantisation and name the hardware each needs
- Predict the memory and batch-1 decode change of a scheme from bytes per parameter and bandwidth, and say why 4-bit weights help latency more than throughput
- Quantise a model offline with a calibration set drawn from your own traffic, with LLM Compressor or llama-quantize
- Measure the cost with a paired eval (negative flips, not averages) and a KL-divergence check, and apply a ship threshold set before measuring
- Quantise the KV cache to FP8 and say what it buys and what to watch
