Unit 9 of 10 · about 4 hours · measure
Analytical prediction versus measured residual, evidence labels and distributed validation
A resource estimate becomes useful when its misses change the next plan. Local correctness and a plausible distributed diagram are different evidence, even when they describe the same code.
You'll be able to
- Compare one frozen resource prediction with a local measurement using the same accounting boundary.
- Explain residuals by separating algorithmic work, kernel efficiency, input, communication, imbalance and failure overhead.
- Label each claim as local, simulated, analytical or validated on distributed hardware and specify the missing validation.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Laboratory: instrumentation and hardware-scoped measurementLLM Post-Training Laboratory
Hardware variants, Milestone B, Measurement requirements and Rubric: Systems reasoning
Measure the existing tiny local path. Do not launch the extended multi-process variant to satisfy this card.
- How to Scale Your Model: analytical lower boundsHow to Scale Your Model
Part 1, All About Rooflines: Where Does the Time Go?, Visualizing rooflines, Matrix multiplication and Network communication rooflines (page read 2026-10-16)
Use only for the analytical distributed alternative. Read the compute, memory and network bounds, not hardware constants as predictions for your machine; skip the worked-problem set.
- Claims must match evidence and resourcesNeurIPS Paper Checklist
Q1, Claims; Q7, Experiment Statistical Significance; Q8, Experiments Compute Resource (page read 2026-10-16)
Focus on
- Freeze a predicted quantity, its units, scope and uncertainty interval before measuring. Compare tensor payload with tensor payload, checkpoint file size with serialized size, and process peak with a process-memory model; do not subtract incomparable counters.
- A payload residual can reveal an omitted tensor or dtype. Serialized-file overhead includes metadata and storage layout. Timing residuals may include input stalls, launch cost, compilation, synchronization, evaluation, retries or checkpoint publication.
- Reuse earlier timing and profiler skills rather than adding another benchmark. Warm up outside the steady-state window, include startup separately, and synchronize asynchronous device work when timing it. Report allocated and reserved device memory separately; CPU tensor bytes are not process RSS.
- A simulated queue or remapped tensor fixture does not validate collectives, transport, multi-rank recovery or changed-mesh RNG behavior. Write an optional distributed validation plan naming topology, counters, correctness checks, failure injections and an acceptance rule, with no required multi-GPU execution.
Common mistakes · 3
- Applying the synthetic BF16 ledger to an FP32 CPU run or counting tied weights twice. Inspect actual dtype and storage ownership.
- Treating the maximum of ideal compute and bandwidth times as a guaranteed runtime. It is a bound under stated assumptions, not evidence of attained overlap.
- Explaining a scale regression from throughput alone. Separate changed algorithmic work from input, kernel, communication, imbalance and fault time before assigning a cause.
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.The checkpoint file exceeds the predicted tensor payload. Is the prediction necessarily wrong?Answer
No. The file includes serialization metadata and layout overhead. First ensure both totals count the same tensors and shared storages, then account for the remaining difference.
2.Does passing a one-process changed-shape restore fixture prove distributed resharding?Answer
No. It can test mapping and value invariants but not multi-rank coordination, transport, rank failures or the RNG contract after a mesh change.
3.A local run is slower than the analytical lower bound. What should be reported?Answer
The measured runtime, the assumptions and the residual, with evidence for its components. Do not tune the prediction after the fact and present it as a successful forecast.
You're done when
One prediction is reconciled against a comparable local measurement, unexplained residuals remain visible, and no simulated or analytical result is described as distributed validation.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 8 more in the section
- LLM Post-Training LaboratoryRoadmap-Final · primary
Complete the project through its baseline, SFT, preference or reward, RL or reasoning, evaluation, failure campaign, reproduction and extension gates. Keep one versioned artifact chain across the whole track.
- NeurIPS Paper ChecklistNeurIPS · support
Answer Q1 (claims), Q4 to Q8 (reproducibility, code and data, settings, uncertainty, compute including failed runs) and Q11 to Q13 where you share artifacts, as the claim and evidence contract for the final report. Skip the submission rules.
- How to Scale Your ModelJAX ML Team · depth
Use the roofline, sharding, training, transformers, profiling and GPU parts (
/scaling-book/roofline,/sharding,/training,/transformers,/profiling,/gpus) only to defend the analytical distributed plan. Measured multi-device work belongs to the ML Systems track.
Also in this section
- OLMo Fully Open Training StackAllen Institute for AI · required
Read Section 6 (clusters, Beaker, stability and operations, hardware utilization, environmental cost) and the evaluation appendices, then trace one released configuration from data and tokenizer through OLMo-core training code, checkpoints and evaluation. Reconstruct only the paths your modification touches and record what was measured versus inferred.
- Open InstructAllen Institute for AI · required
Read one recipe path (
open_instruct/finetune.py,dpo.pyorgrpo_fast.py) with its tests and the chat-template and label-masking code indataset_transformation.py. Make a bounded tested change on a small model or fixture. Its native evaluations are unmaintained and its single-GPU smoke launcher needs Beaker, so evaluate with a separately pinned evaluator. - CS336 Assignments 4 and 5 - Integration HandoffStanford University · support
Reuse the data and alignment artifacts already completed. Connect their versions through a single manifest and rerun one clean baseline before the extension.
- RLHF Book Companion CodeNathan Lambert · support
Use one complete module path (for example
direct_alignment/orpolicy_gradients/) as the small reference implementation, with model, context and sample sizes cut to fit your GPU. Trace one objective end to end, add resume and regression coverage, then compare the modified and unchanged paths. - The Turing Way - Reproducible ResearchThe Turing Way Community · support
Use the chapters on reproducible environments, testing, code review, research data management and research compendia (under
book.the-turing-way.org/reproducible-research/) to package the final artifact for an independent clean run. - Tulu 3, Section 8.2 (Insights from the Unfruitful)Allen Institute for AI · support
Read Section 8.2 for how a team reports what did not work, then write your own negative results the same way.
- nanoGPT and TRL as Modifiable CodeAndrej Karpathy; Hugging Face · support
If OLMo-core or Open Instruct is too heavy for your machine, make the bounded tested change in nanoGPT (commit 3adf61e) or in a TRL 1.15.0 trainer or collator instead, with a frozen-batch oracle before and after.
- Machine Learning Engineering - Fault Tolerance and ReproducibilityStas Bekman · reference
Use
training/fault-tolerance/,training/reproducibility/README.mdandtraining/emulate-multi-node.mdfor the vocabulary of the analytical failure and retry plan.