Unit 5 of 13 · about 4 hours · derive
Capacity headroom under demand growth across three scenarios
The serving planner extends Unit cost, headroom and simpler designs with a measured SLO boundary. A token-rate peak is not a safe provisioning point.
You'll be able to
- Derive a capacity and cost plan for three workload/SLO scenarios using measured replica capacity.
- Budget demand growth, retries, quality acceptance, startup lag and a stated failure reserve.
- Identify which fleet assumptions remain analytical rather than validated by a single-device run.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Choose the constraint before the topologyMachine Learning Systems, Volume 2 - The Economics and Architecture of Inference
When single-machine serving is insufficient, Table 1 and Checkpoint 1.1; The serving tax: Overhead of distribution, equation 1; Serving cost can dominate training cost, equation 2 (page read 2026-10-14)
- Find capacity under the declared SLOEtalon: Holistic Performance Evaluation Framework for LLM Inference Systems
arXiv:2407.07000v2, Section 4.2: Evaluation workflow and implementation, the Capacity Evaluation paragraph; Section 5.2: Evaluating Open Source Systems
Use the load-search method, not the paper's hardware capacities. Keep your SLO common across compared systems.
- The scenario and failure plannerLLM Inference Systems Laboratory - Full Capstone
Core requirements: analytical planner; Hardware variants; Measurement requirements: capacity headroom; Design-defense questions 5, 7 and 10
Focus on
- Use three declared scenarios: interactive short prompts with a strict first-token target; long-context summarization; and bursty shared-prefix traffic with cancellations. Preserve their joint length/reuse distributions, not just means.
- Let be sustainable attempts/s per healthy replica for scenario , and the fraction deliberately left unused. Under balanced identical replicas, require , where is failed replicas, logical requests/s and expected attempts/request.
- Quality and SLO acceptance convert served attempts into useful outcomes. Do not divide demand by acceptance unless the product actually retries rejected answers; model that retry policy explicitly.
- Sweep growth and a major failure separately. Include startup lag, cold-cache recovery, routing imbalance and reserve charges; the replica inequality is an analytical starting point, not a fleet latency proof.
Common mistakes · 3
- Adding another utilization discount to a capacity number already defined at that same utilization target. State what reserve is additional.
- Multiplying single-replica capacity by replica count without cache skew, imbalance or fault-domain assumptions.
- Budgeting steady-state capacity while ignoring backlog during model startup and cold-cache recovery.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Why does the fixture need five replicas rather than four?Answer
Demand is 30 attempts/s. Four healthy replicas at 8 attempts/s each suffice, but one additional replica is needed to preserve that capacity after one failure.
2.Does sharding always improve a strict latency scenario?Answer
No. It adds communication and coordination. Derive those costs and distinguish single-request execution from queueing before choosing it.
3.Can three scenarios share one measured capacity constant?Answer
Only with evidence that their service and SLO boundaries match. Length, reuse, bursts and stopping commonly change sustainable capacity.
You're done when
Each scenario has a measured single-replica SLO point, a derived growth/failure plan and a cost table whose fleet assumptions are explicitly labeled.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 11 more in the section
- Etalon: Holistic Performance Evaluation Framework for LLM Inference SystemsMicrosoft Research · required
Use its per-request SLO and goodput framing to audit the benchmark. Preserve raw outcomes, quality acceptance and load shape so a throughput increase cannot hide missed latency targets.
- Machine Learning Systems, Volume 2 - The Economics and Architecture of InferenceHarvard (Vijay Janapa Reddi) · support
Read the opening sections of Inference at Scale for cost per token, utilization and serving-architecture dimensions, then build your own capacity and cost model from measured numbers.
- LLM Inference Systems Laboratory - Full CapstoneRoadmap-Final · required
Complete the architecture map, contribution, fallbacks, correctness and fault suite, raw benchmark package, negative result, capacity and cost plan, independent reproduction and design defense. This artifact supplies the track milestone.
Also in this section
- Hands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practiceChi Wang and Peiheng Hu (O'Reilly) · primary
Read Chapter 9 as a worked sequence from traffic generation and baseline through quantized and distributed variants, then the vLLM architecture and scheduler sections of Chapter 8. Replace its model, engine version and hardware with your own fixed contract.
- TensorRT-LLM Benchmarking GuideNVIDIA · required
Use the benchmark workflow, configuration capture, startup metrics and online-serving path as a benchmark-governance reference. Apply the same discipline to your engine and never import NVIDIA results as your own evidence.
- vLLM V1 Architecture OverviewvLLM Project · required
Map API server, EngineCore, scheduler, KV cache manager, model executor and distributed deployment from the current documentation into exact source files. Select the bounded contribution only after identifying its state and fallback boundaries.
- Nano-vLLM and Mini-SGLang as Engine Reconstruction BridgesGeeeekExplorer and SGLang Project · required
Reconstruct Nano-vLLM first, then compare Mini-SGLang cache, scheduler, overlap and model-runner boundaries. Move to vLLM or SGLang only when you can predict where the same responsibility lives.
- UCSD CSE 291A (Spring 2026) - Guest lecture: Engineering vLLMUC San Diego · support
Read the scribe notes, Sections 3, 6 and 7: the architecture overview, model parallelism and serving topology, and the hybrid KV allocator with offloading. Use it to predict where a change would live before reading code.
- AI Performance Engineering - Inference Engine and Benchmark LanesWafer · reference
A curated index. Use Sections 4 and 5 only to find a mechanism source for the contribution.
- AI Systems Performance Engineering companion code - inference labsChris Fregly (O'Reilly) · required
Use
labs/dynamic_router,labs/cache_aware_disagg_inference,labs/speculative_decodeorlabs/flashinfer_attentionas a pattern for a controlled baseline, optimization and profile. Rerun everything under your own manifest. - MLPerf Inference Datacenter BenchmarkMLCommons · support
Study scenario definitions, audit discipline and reproducibility. Borrow governance ideas appropriate to the capstone; submitting to MLPerf or reproducing its fleet hardware is outside the gate.
- Artificial Analysis - Performance benchmarking methodologyArtificial Analysis · reference
Read how its latency, output speed and price figures are measured. Use its public numbers as an outside comparison for your capacity plan, never as your own evidence.
- SciPy bootstrap confidence intervalsSciPy · support
Read the resampling procedure, paired parameter, Notes on degenerate data and Examples. Apply it to independent trials; do not assume correlated serving requests are independent samples.
- Machine Learning Systems, Volume 2 - Sustainable AIVijay Janapa Reddi · support
For optional energy/carbon accounting, read Energy measurement techniques, System-level energy profiling and Operational carbon calculation. State meter boundaries and apply PUE only to complete IT energy, once.