Skip to content
Inference Academy

vLLM Internals

Read vLLM's V1 engine from the inside, pinned to v0.34.0: one request through the processes, the scheduler's token budget and preemption, the KV cache manager and prefix caching, Model Runner V2, CUDA graphs and torch.compile, speculative decoding and LoRA hooks, then a lab that changes the scheduler and benchmarks it.

0 of 7 complete

  1. ▶ Up next25 min+50 XPA map of vLLM and one request through itHow vLLM's V1 engine is laid out at v0.34.0: the API server, engine core and GPU worker processes, the ZMQ link…
  2. Pro30 min+50 XPInside vLLM's scheduler: token budget, chunked prefill and preemptionHow vLLM's V1 scheduler at v0.34.0 builds each batch: one rule for prefill and decode alike, a token budget, running…
  3. Pro30 min+50 XPvLLM's KV cache manager: blocks, hashes and prefix cachingHow vLLM at v0.34.0 hands out KV cache memory: blocks with reference counts, a free queue that doubles as the prefix…
  4. Pro30 min+50 XPvLLM's worker and Model Runner V2: from block IDs to a forward passWhat happens on the GPU side of vLLM at v0.34.0: the executor and workers, the startup sequence that profiles memory…
  5. Pro25 min+50 XPCUDA graphs and torch.compile in vLLMWhy vLLM compiles the model and captures CUDA graphs, how it does both at v0.34.0: piecewise compilation split at…
  6. Pro25 min+50 XPSpeculative decoding and LoRA hooks inside vLLMWhere speculative decoding and multi-LoRA serving plug into vLLM at v0.34.0. For speculation: draft tokens as extra…
  7. LabPro120 min+100 XPLab: modify vLLM's scheduler and benchmark the changeChange real vLLM code and measure it. Install vLLM v0.34.0 from source in editable mode, add a switch that changes…