Module 1 · What the server does with your GPU · Lesson 1
Inside an inference engine
Prefill and decode are different workloads, and an inference engine's whole job is keeping a memory-bound decode loop busy with many requests at once through iteration-level batching, paged KV memory, chunked prefill and prefix caching.
By the end of this lesson you can
- Compute the arithmetic intensity of a decode step at a given batch size and say whether it is memory- or compute-bound on a named GPU
- Explain iteration-level (continuous) batching and why it beats static batching for generation
- Explain how PagedAttention allocates the KV cache in blocks and what that buys
- Predict the effect of chunked prefill and automatic prefix caching on time to first token and inter-token latency
- Choose between vLLM, SGLang, TensorRT-LLM and llama.cpp for a stated workload and hardware
