04 section

Inference Optimization

Making generation fast and cheap: the prefill and decode split, KV cache pressure, speculative decoding, continuous batching, PagedAttention, fleet serving, and a cost playbook

7 pages 21 min 4,231 words

01 the section

What is in here

The fundamentals page sets up compute-bound versus memory-bound, and every page after it is a specific answer to one of those two constraints โ€” read it first even if you came here for PagedAttention. Serving infrastructure moves up a level to the fleet. The cost playbook at the end is the page to hand a manager.