Capacity, Economics and Engine Extension
The final stage turns mechanisms into engineering judgment. You must reconstruct an unfamiliar engine, change one real path and defend its benefit, cost, failure behavior and losing regimes under governed benchmarks.
Section 9 of 9 · 13 units · about 60 hours
By the end you can Deliver a tested real-engine contribution with a reference fallback, three workload regions, three mechanism ablations, one honest neutral or negative result, fault evidence, a capacity and cost decision, and independent reproduction with measured, simulated and inferred claims separated.
Units
- The benchmark question, its decision owner and an immutable manifest4h
- Offered and completed load, goodput and useful work4h
- Cost per token, quality acceptance, retry cost and energy4h
- Fair warmup and arrivals, raw traces and tail percentiles with uncertainty4h
- Capacity headroom under demand growth across three scenarios4h
- Reconstructing the engine API, tokenizer path, scheduler and request state5h
- Reconstructing the block manager, prefix cache, model runner and attention backend5h
- Reconstructing sampling, streaming, cleanup, workers and telemetry4h
- A contribution hypothesis with a predicted boundary and one bounded change6h
- Reference fallback, versioned configuration and the test and protection suite5h
- Strong baselines, three ablations, three workload regions and a negative result6h
- The bottleneck shift and the capacity and cost decision4h
- An independent reproduction package and a technical design defense5h
Build it
Mini project · about 14 to 18 hours
Measured engine contribution with capacity decision
Map a fitting engine from frontend to telemetry, ship one bounded contribution behind a versioned fallback, and prove its boundary across baselines, ablations and regions. The capacity and cost decision plus reproduction package carry directly to the capstone.
- 1Write a decision record with owner and reversal in
reports/, bind manifests to workload and engine revisions with frozen tuning and final traces, and reconcile offered against completed work with quality and SLO goodput plus attempt-cost and optional energy ledgers. Keep digests and sweep tables. - 2Run paired replay trials with matched arrivals and cache policy in
harness/, regenerate percentiles and goodput from raw traces with whole-pair resampling, and derive a three-scenario capacity and cost plan with growth and failure reserve. Keep raw traces and plan tables. - 3Map frontend, scheduler, cache, runner, sampling, streaming, worker and telemetry owners in
engine/against pinned source, and replay request states, logical-to-physical KV and cancellation with late and duplicate events on CPU. Keep maps and oracle checks. - 4Predeclare a hypothesis with winning and losing regimes and a falsifier, ship one bounded patch in
engine/with path-activation evidence, and protect it with an independent oracle plus randomized, integration and regression tests including exercised fallback and rollback against seeded defects. Keep hypothesis and suite. - 5Compare off, on and strong alternatives with matched tuning and contracts across three ablations and three predeclared regions using frozen final traces, pairing raw trials. Keep the full table with a preserved neutral or negative row.
- 6Explain the endpoint shift with changed critical-path and queue evidence, update the three-scenario capacity and cost decision with a reversal condition, and package independent reproduction with a defense against alternatives, growth, distribution change and failure plus optional second-family evidence. Keep the report and package.
What you hand in
- Decision, manifests, traces and capacity tables in
manifests/,workload/,harness/andreports/. - Engine maps, bounded patch with fallback, oracle suite and ablation tables with a negative row.
- Residual report, updated capacity decision and independent reproduction package with defense.
How to check it
- Self-grade with the rubric below
How it's graded
Manifests and goodput
Pass: Decision and manifests bind revisions, tuning stays separate from final, and reconciliation plus cost ledgers balance with own checks.
Great: A changed stop rule alters workload identity, and growth and failure sweeps label fleet assumptions.
Contribution protection
Pass: Maps locate every owner, the oracle suite fails seeded defects, and fallback with rollback preserves contracts.
Great: Path activation is proven on ordinary requests, and incompatible state is drained before reuse.
Comparison and defense
Pass: Matched baselines with three ablations across three regions keep raw trials and a negative row.
Great: Residuals name the new bottleneck, capacity is repriced, and reproduction regenerates the decision.
Resources
- Hands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practiceChi Wang and Peiheng Hu (O'Reilly)
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
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
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
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.
- AI Systems Performance Engineering companion code - inference labsChris Fregly (O'Reilly)
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
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.
- LLM Inference Systems Laboratory - Full CapstoneRoadmap-Final
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.
- UCSD CSE 291A (Spring 2026) - Guest lecture: Engineering vLLMUC San Diego
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.
- Machine Learning Systems, Volume 2 - The Economics and Architecture of InferenceHarvard (Vijay Janapa Reddi)
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
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.
- SciPy bootstrap confidence intervalsSciPy
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
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.
- AI Performance Engineering - Inference Engine and Benchmark LanesWafer
A curated index. Use Sections 4 and 5 only to find a mechanism source for the contribution.
- Artificial Analysis - Performance benchmarking methodologyArtificial Analysis
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.