Unit 9 of 13 · about 6 hours · implement
A contribution hypothesis with a predicted boundary and one bounded change
Your reconstruction now makes a contribution reviewable. Build on the earlier bounded kernel change, but predict effects on serving queues, useful output and failure behavior as well as local time.
You'll be able to
- Choose one real-engine change with a quantitative prediction, losing regime and falsifying signal.
- Distinguish the proposed mechanism from scheduler, cache, kernel and measurement alternatives.
- Implement the bounded path without benchmark-only special casing or an engine rewrite.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Pick the layer and the trade-offHands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practice
Chapter 8, vLLM's Layered Optimization Strategy, printed pp. 284 to 285; Chapter 9, Common Optimization Trade-offs, pp. 311 to 312
- A bounded scheduling seamNano-vLLM and Mini-SGLang as Engine Reconstruction Bridges
_schedule_next_batch,normal_loop,overlap_loopand_process_last_dataUse this as one candidate seam, not an instruction to copy a new policy. Choose a scheduler, cache, routing, instrumentation or kernel path justified by your own reconstruction.
- The contribution specificationLLM Inference Systems Laboratory - Full Capstone
Milestone C: hypothesis, regimes, invariants, alternatives, reversal conditions and real API integration; Architecture constraints: no benchmark special casing
Focus on
- Write the mechanism chain: changed decision, changed work or wait, predicted trace signal, expected endpoint effect. Name a competing explanation and a control that separates it.
- Declare a boundary in arrival, length, reuse, memory pressure or shape before coding. Use a quantitative overhead-versus-saved-work model, not a universal faster claim.
- Keep one code seam and one selectable behavior change. A feature flag is not the mechanism; the changed request, cache or execution path is.
- Instrumentation contributions must improve diagnosis while budgeting observer overhead. Scheduler and cache changes must preserve admission, token progress and safe ownership even when they lose on performance.
Common mistakes · 3
- Changing policy, cache budget and sampling together. The result cannot identify which mechanism caused it.
- Choosing a path only because its microbenchmark is slow. It must lie on the workload's relevant execution or queueing path.
- Changing the prediction after the first profile. Preserve the failed prediction and explain the residual before revising it.
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 makes a losing-region prediction useful?Answer
It identifies where added overhead, contention or another constraint dominates and gives a falsifiable dispatch boundary.
2.Can an instrumentation change be a real-engine contribution?Answer
Yes, if it runs on the real lifecycle, resolves a measurable diagnostic gap and has tested semantics and observer cost. A summary-only benchmark patch does not meet that boundary.
3.What if the predicted trace signal never changes?Answer
The mechanism hypothesis is unsupported even if an aggregate improves. Verify path activation and controls before attributing the gain.
You're done when
One ordinary request reaches the changed seam, its state checks pass, and the preserved hypothesis identifies a measurable falsifier and losing boundary.
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.
- 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.
- 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.
- 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. - 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.