Working notes on how modern LLM inference systems work — the vocabulary first, then the design choices behind engines like DeepInfer, vLLM, and SGLang.
- The five ideas underneath every serving engine — prefill vs decode, the KV cache, continuous batching, the five parallelisms, and disaggregation.
- Parallelism in LLM inference: DP, TP, PP, EP, CP — what each axis splits, what it costs, and why DeepInfer picks small EP for prefill and wide EP for decode.
- Prefill vs decode — why one phase is compute-bound and the other memory-bound, and how that shapes batching, caching, disaggregation, and speculative decoding.