// Stage 6 · Inference, Deployment & Efficiency
Serving Engines
PagedAttention, continuous batching, prefix caching, speculative decoding, prefill/decode disaggregation and gateway routing.
about 8 hours7 algorithms4 paperslesson text in progress
01Goals
- Deploy and load-test vLLM/SGLang
- Understand throughput and latency metrics (TTFT, TPOT)
- Know what speculative decoding and prefix caching buy you
Do these first: Decoding, Sampling & KV Cache
02Algorithms to master
Each card has the original paper, prerequisites and resources.
03Must-read papers
- Efficient Memory Management for Large Language Model Serving with PagedAttention ↗2023 ✓ verified in Essentials
- Fast Inference from Transformers via Speculative Decoding ↗2022 ✓ verified in Essentials
- SGLang: Efficient Execution of Structured Language Model Programs ↗2023 ✓ verified
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving ↗2024 ✓ verified
04Courses & videos
- docs.vllm.ai ↗Official docsEN
- sgl-project/sglang ↗Reference codeEN
- Assisted Generation ↗ExplainersEN
05Hands-on: project, code & exercises
Free, official or author-published pages. Most run in the browser or on a free Colab GPU.
PROJECT
Deploy an open model with vLLM, load-test throughput and first-token latency at different concurrency, then compare with speculative decoding on.
- 1docs.vllm.ai ↗Official docs
Serve an OpenAI-compatible endpoint with vLLM and load-test throughput and TTFT.
- 2sgl-project/sglang ↗Reference code
Run the same load test on SGLang and compare the effect of prefix caching.
06Self-test
Answer in your head, then open to check.
What is TTFT?
Time to first token.
Does speculative decoding change the output distribution?
Not when implemented with standard rejection sampling.
What core problem does PagedAttention solve?
Fragmentation and waste in KV-cache memory.
On these routes: Application Developers · Product Managers & Leaders