Start with the Overview to see techniques combined into the best stack, then dig into each optimization compared across models.
A small draft guesses ahead; the big model verifies in one pass. Speedup needs a cheap draft that's often right.
Quantizing the cache to fewer bits saves proportionally more memory — but at some point it wrecks the output. Memory is exact (bits ÷ 16); fidelity is measured (how much of the generated text still matches the full-precision run).
Computed directly from each model's architecture (layers × KV-heads × head-dim), so it's exact rather than a noisy measurement. Shows which models carry a heavier cache and how 8-/4-bit shrink it.
Decoding many sequences at once fills the GPU; throughput climbs, per-request speed drops, memory grows.
Same model at different precisions. Lower precision = faster & smaller; perplexity shows the quality cost.