LLM Serving Platform Design
Design a service that serves large language model requests at scale: size GPU capacity from token workloads, batch and admit requests to meet latency targets, and route or degrade when capacity runs out.
3 objectives 5 steps about 105 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Estimate GPU memory (model weights plus KV cache), throughput in tokens per second and fleet size for a workload described by request rate, prompt length and output length, and separate time to first token from time per output token.
- Design admission and scheduling for model servers (continuous batching, per-tenant token budgets, priority queues, cancellation) that meets time-to-first-token targets under bursty load.
- Design routing, fallback and caching across models and providers (smaller-model fallback, prefix caching, response caching) and state the quality, freshness or privacy risk each one adds.
Lesson plan
5 steps, about 105 min · 0 of 4 lessons available so far
- What an LLM request costs: prefill, decode and the KV cache Concept · 20 min · coming later
- Sizing a GPU fleet for a chat assistant Worked example · 25 min · coming later
- Batching, admission control and fairness under bursts Concept · 25 min · coming later
- Routing, fallback and caching without silent quality loss Concept · 20 min · coming later
- LLM serving design check Knowledge check · 6 questions
Practise it
Using an open-weight model on a serving engine such as vLLM, or a published benchmark of one, record time to first token and output tokens per second at three concurrency levels; then write a design for a chat assistant at 200 requests per second that sizes the GPU fleet, sets per-tenant token limits and a fallback path, and labels each number as measured or estimated.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.