Unit 1 of 13 · about 4 hours · explain, implement

The benchmark question, its decision owner and an immutable manifest

Build on Manifests, claim schemas, predictions declared first and artifact lineage. The new contract must support a serving decision, not just reproduce a device timing.

You'll be able to

  • Turn a serving benchmark into a decision with an owner, two alternatives and a reversal condition.
  • Extend your experiment manifest to bind request semantics, quality, failures and cost to each result.
  • Separate tuning traffic from a frozen final evaluation corpus before selecting configurations.

Covers

Benchmark question and decision ownerImmutable model, engine, hardware and workload manifestTuning traces versus final traces
1

Read

In this order, only the parts listed

0 of 2 done

  1. The optimization plan before the benchmarkHands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practice

    Chapter 9, LLM Serving Optimization Plan, printed pp. 294 to 296; Step 2: Generate Benchmark Traffic, pp. 297 to 300

    Read the workflow, not the hardware setup commands. Replace the worked model and deployment with a small model that fits your GPU; keep distributed variants as reading.

  2. Bind experiments to their serving contractLLM Inference Systems Laboratory - Full Capstone

    Core requirements: recorded workload corpus; Architecture constraints: versions, tuning versus final traces and hardware tier; Milestone C: hypothesis and reversal conditions

2

Focus on

  • Name the decision owner and the action the evidence can change: retain the baseline, enable the contribution or add capacity. Set correctness and SLO gates before tuning.
  • Bind model, tokenizer, template, adapter, weight and KV precision, engine revision, effective configuration, hardware state and workload hashes to the run.
  • Retain intended arrival times, output limits, stop rules, tenant scope, deadlines, retry policy and quality evaluator. A prompt list alone is not a workload.
  • Split by sessions or shared-prefix groups where leakage is possible. Freeze final traces and transformations before configuration selection.
Common mistakes · 3
  • A package version does not identify a locally patched engine. Record the source revision and patch digest too.
  • Selecting a configuration after inspecting final traces turns them into tuning data. Acquire a new final set before making a generalization claim.
  • Calling synthetic prefix repetition representative of demand. It isolates reuse; it does not supply production arrival or length distributions.
3

Try it yourself

Closed-book, before checking anything

Without notes, write a decision record and manifest for your existing servelab baseline. Give each tuning and final corpus a digest. Change the output stop rule in a second record and verify that the workload identity changes rather than silently reusing the first result.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.What makes a benchmark question actionable?Answer

    An owner, a choice between alternatives, fixed correctness and SLO constraints, and an observation that would reverse the choice.

  2. 2.Why is freezing prompts insufficient?Answer

    Tokenization, arrivals, output lengths, stopping, cache state, retries and evaluation can change the work even when prompt text stays fixed.

  3. 3.May the final workload use the same length distribution as tuning?Answer

    Yes. The distributions can match, but final requests or sessions must not have been used to select the configuration. Record any intended distribution shift separately.

You're done when

Your decision record names two alternatives and a reversal condition, and a changed request contract cannot reuse an old manifest identity.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 12 more in the section

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.

  • AI Systems Performance Engineering companion code - inference labsChris Fregly (O'Reilly) · required

    Use labs/dynamic_router, labs/cache_aware_disagg_inference, labs/speculative_decode or labs/flashinfer_attention as 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.