Unit 9 of 10 · about 4 hours · explain, implement
Manifests, claim schemas, predictions declared first and artifact lineage
Numbers without manifests and lineage cannot be checked, so they cannot gate later work. The section checkpoint demands a versioned claim with artifacts; this unit builds that file.
You'll be able to
- Write a hardware and software manifest that lets a stranger rerun one timing (device, driver, toolkit, clocks and power, config, code revision).
- Declare workload, baseline, timing boundaries, prediction and falsifying signal before profiling, in a fixed claim schema.
- Store raw trials, traces and generated reports with lineage from code revision to number, separating cold, warm and end-to-end invocation.
Covers
Read
In this order, only the parts listed
0 of 2 done
- Harness schema, manifest and lineageGPU Microbenchmark and Kernel Suite
Core requirements (harness fields, raw samples); Architecture constraints (named timing boundaries with cold and warm separated); Measurement requirements (labeled hardware with bytes, operations and uncertainty); Milestones A and B
- Declare the SLO before the sweepEtalon
Section 4.2 (black-box and capacity recipes); Section 5.2 (the service SLO fixed before the capacity search: 99% of requests below a 10% deadline miss rate at a 25 ms target TBT)
Focus on
- Name every timing boundary (which event starts and stops each interval); asynchronous launch makes an unnamed boundary meaningless.
- Predictions precede profiles: the SLO is fixed before the load sweep, and a miss moves the claim, not the target.
- Raw samples are kept with environment capture; medians and uncertainty are computed from them, never quoted from a single best run.
Common mistakes · 3
- Filing the manifest after tuning. Changed configs invalidate recorded trials; resume only under identical configuration.
- Storing summaries instead of trials. A median without raw samples cannot be re-cut when the SLO changes.
- Declaring the prediction after seeing the profile. A bound fitted to its own measurement predicts nothing; residuals explain, constants do not.
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 must a manifest contain for one GPU timing?Answer
Device model and memory, driver, toolkit and compiler versions, clocks and power capture, workload and config, timing boundaries, and the code revision behind the binary.
2.What fields does a performance claim fix before profiling?Answer
Workload, hardware, baseline, timing boundaries, correctness method, prediction with a falsifying signal, and the artifact lineage.
3.Why keep raw trials instead of just medians?Answer
SLOs change, and re-cutting percentiles plus uncertainty needs the samples; a single best run is not evidence at all.
4.The sweep misses the declared SLO. What changes: the target or the claim?Answer
The claim. Moving the target after the fact turns the evaluation into a description of whatever happened.
You're done when
A stranger can rerun your unit-4 sweep from your manifest and claim alone and land inside your stated uncertainty.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 7 more in the section
- EtalonEtalon Authors · support
Read the latency metric definitions, their pitfalls and fluidity-index. Add TTFT and TPOT SLOs to a small load generator, and show why peak token throughput can rank two systems differently from an SLO-qualified rate.
- GPU Microbenchmark and Kernel SuiteRoadmap-Final · support
Adopt the project harness schema, architecture constraints and hardware tiers now. Implement only the environment manifest, independent references, raw-trial storage and the initial operation and byte models in this stage.
Also in this section
- How to Scale Your Model - InferenceJAX Scaling Book · primary
Work through the single-request, batching, key-value memory and parallelism arithmetic. Recompute every quantity for the small model and workload used by the track project, keeping symbols, units and assumptions visible.
- AI Performance Engineering - Start HereWafer · reference
A curated, dated index. Its Start Here list names the readings this section already assigns; use the later sections only to find a primary source for a later section, never as the reading itself.
- Transformer Inference ArithmeticKipply · required
Reproduce the FLOP, parameter-byte, key-value-byte and communication estimates for dense transformer inference. Compare the formulas with an instrumented framework trace and explain model residuals instead of fitting constants after measurement.
- Efficiently Scaling Transformer InferenceMLSys · required
Study the latency, memory and parallelism model. Use the paper to derive a batch and parallelism crossover for your workload, while reserving distributed execution for GPU-9.
- How to Scale Your Model - TrainingJAX Scaling Book · required
Work Some Problems to Work Questions 1 to 3 for training-step parameters, Adam and activation bytes and step time; read Data Parallelism and Fully-Sharded Data Parallelism for the comms-bound batch rule.
- Amdahl's lawWikipedia · reference
Read Definition and Derivation for the overall-speedup formula with the worked share examples; apply it to kernel time shares at fixed workload.
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized LLM ServingZhong et al. (OSDI 2024) · support
Read Section 1 with Figure 1 for per-GPU goodput: the highest request rate served while a target share of requests meets the TTFT and TPOT SLOs.