The best resources for a time-poor senior engineer, newest first.
2026Practice
zoezou2015 (community notes) · 2026 · ~2 h
A worked reference solution (about 6,500 words with Python estimates) for the Anthropic batching prompt: requirements, API, a dispatcher in front of GPU replicas, real-time and offline pools, KV bytes per token, prefix-cache savings, and a discrete-event simulation of a size-or-time batcher.
2025Blog post
Aleksa Gordić (vLLM blog) · Sep 2025 · ~4 h
A code-level walkthrough of vLLM V1: engine core and scheduler loop, paged KV manager, prefix caching via block hashes, chunked prefill, guided decoding, speculative decoding, disaggregated P/D via KV connectors, multi-GPU/multi-node scaling, and the API server and DP load balancer.
2025Blog post
Anthropic · Sep 2025 · ~1 h
Anthropic's account of three overlapping Claude quality bugs: a context-window routing error that sent requests to the wrong server pool, TPU output corruption from a misconfiguration, and an approximate top-k XLA miscompile. It covers why they were hard to detect across hardware platforms and the eval and monitoring changes made afterwards.
2025Practice
Xingkai Yu (GeeeekExplorer) · Jun 2025 · ~6 h
A roughly 1,200-line reimplementation of vLLM's core (scheduler, block manager with prefix caching, CUDA graphs, tensor parallelism) that you can read in an afternoon and modify.
2025Reference
DeepSeek-AI · Mar 2025 · ~1 h
DeepSeek's production serving: prefill/decode disaggregation with cross-node expert parallelism (EP32 prefill, EP144 decode), dual-batch overlap to hide communication, load balancers for prefill, decode and experts, and a day of real costs, revenue and a claimed 545% cost-profit margin.
2025Book
Jacob Austin, Sholto Douglas, Roy Frostig, Anselm Levskaya et al. (Google DeepMind) · Feb 2025 · ~8 h
The best single derivation of inference cost: the roofline for prefill and decode, the batch size at which decode turns compute-bound, KV-cache bytes per token, latency versus throughput Pareto curves, and sharding a model for serving. It includes worked problems with answers.
2024Paper
Ruoyu Qin et al. (Moonshot AI / Tsinghua), FAST 2025 best paper · Jul 2024 · ~3 h
Kimi's production design: separate prefill and decode clusters around a distributed KV-cache pool in CPU DRAM/SSD over RDMA, a KV-centric global scheduler (Conductor), and early rejection under overload, all driven by real traces.
2024Paper
Yinmin Zhong, Shengyu Liu et al. (PKU / UCSD Hao Zhang), OSDI 2024 · Jan 2024 · ~3 h
Argues for goodput (requests per second meeting both TTFT and TPOT SLOs) as the serving objective, shows that prefill/decode interference forces over-provisioning, and places prefill and decode instances with separate parallelism configurations.
2023Paper
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang et al. (UC Berkeley), SOSP 2023 · Sep 2023 · ~3 h
Shows that contiguous KV allocation wastes 60–80% of memory through fragmentation and over-reservation, and fixes it with OS-style block tables, copy-on-write sharing for parallel sampling and beam search, and preemption by swapping or recomputation.
2022Blog post
kipply (Carol Chen) · Mar 2022 · ~1.5 h
The classic short derivation of KV-cache size (2·layers·d_model·bytes per token), memory-bandwidth-bound latency, the FLOPs-to-bytes ratio, and when batching becomes compute-bound, worked through for a 52B model.