Unit 11 of 13 · about 6 hours · measure
Strong baselines, three ablations, three workload regions and a negative result
Build on Workload-weighted impact, negative results and the design defense. The serving contribution must survive different queue, cache and length regimes, not merely its fastest cell.
You'll be able to
- Compare contribution off/on against strong alternatives with equal tuning opportunity and serving contracts.
- Run three mechanism-isolating ablations across three informative workload regions without a combinatorial sweep.
- Preserve a neutral or negative result with correctness, uncertainty and diagnostic evidence.
Covers
Read
In this order, only the parts listed
0 of 3 done
- From baseline to workload-specific optimizationHands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practice
Chapter 9, Step 5: Benchmark the Qwen3 Model with vLLM, printed pp. 302 to 303; Step 6: Benchmark the Quantized Qwen3 Model with vLLM, pp. 304 to 305; Common Optimization Trade-offs, pp. 311 to 312
Read the comparison structure. Do not copy the numerical expectations or treat different traffic datasets as an isolated mechanism test. Quantization also needs its own quality control.
- A controlled baseline/optimization lab patternAI Systems Performance Engineering companion code - inference labs
Learning Goals; Directory Layout: policy, simulator and baseline/optimized integrations; Running the Benchmarks; Validation Checklist
Use the baseline/optimized artifact pattern only. Skip dual-pool and multi-GPU commands; do not adopt bundled performance expectations. Routing pools may be labeled CPU simulation, while the contribution's real-path comparison stays single-GPU.
- Mechanism isolation and preserved lossesLLM Inference Systems Laboratory - Full Capstone
Milestone C: strong alternatives and mechanism ablations; Milestone E: model residuals, endpoint workloads and neutral/worse regions; Architecture constraints: tuning/final separation
Focus on
- Compare the unmodified engine, your enabled path and the strongest relevant built-in or simpler alternative. Match model, quality, cache policy, resource budget and tuning effort; document deliberate policy differences.
- Choose three ablations from the hypothesis, each with a predicted trace signature. For a reuse mechanism, useful controls include lookup with reuse disabled, matched retained-cache capacity, and fixed load-only routing instead of affinity. Adapt them to your actual seam.
- Use a region predicted to benefit, an overhead-dominated region and a pressure or burst region that stresses the boundary. Select them on tuning traces, then freeze configurations for final replay.
- Keep off/on TTFT, TPOT, end-to-end, p50/p95/p99, throughput, goodput, memory, utilization, fairness, errors, quality and cost. Pair raw trials; keep failed and losing rows as visible as wins.
Common mistakes · 3
- Calling three different request rates three ablations. They are workload regions unless they isolate a mechanism under otherwise fixed conditions.
- Giving the contribution an extensive search and comparing it with an untuned default. The tuning budget is part of baseline fairness.
- Keeping only successful outputs from a faster variant. Correctness and quality gates apply before performance conclusions.
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.What separates an ablation from a workload region?Answer
An ablation removes or controls a mechanism within a fixed workload. A region changes workload conditions to test where the mechanism applies.
2.What does lookup-on/reuse-off isolate?Answer
The lookup and bookkeeping overhead without saved execution, provided capacity and other policy effects are held fixed. It does not by itself isolate every cache effect.
3.If the interval for the off/on difference includes zero, is that proof of equal performance?Answer
No. It is inconclusive at that uncertainty. An equivalence claim needs a predeclared practical margin and appropriate evidence.
You're done when
Your frozen comparison has three causally justified ablations and three regions, all outputs pass their contract, and one neutral or negative row remains with uncertainty and raw trace links.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 11 more in the 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.
- 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. - 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
- 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.
- 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.
- 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.