What Makes Inference Fast
Serving LLMs is a memory problem disguised as a compute problem. Understanding why lets you reason about every optimization: KV caching, continuous batching, PagedAttention, quantization and speculative decoding.
In this lesson
- Two phases with different bottlenecks
- The KV cache
- Batching
- PagedAttention
- Quantization
- Speculative decoding
- Parallelism for big models
- Serving stack and the metrics that matter
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.