Unit 4 of 10 · about 4 hours · explain
Checkpoint conversion and resharding contracts, and rollout, reward and evaluation service boundaries
Successful deserialization proves little about the experiment. The consumer must receive the intended model semantics and the state its particular job requires.
You'll be able to
- Distinguish behavior-preserving export, training resume and layout-only resharding contracts.
- Specify rollout, reward, verifier and evaluation request identities and rejection rules.
- Explain which state cannot be assumed equivalent after a topology or precision change.
Covers
Read
In this order, only the parts listed
0 of 3 done
- OLMo-core: model export is a consumer contractOLMo Fully Open Training Stack
Module description,
parse_argsandmain: configuration, tokenizer revision, dtype and validation handoffRead only. Do not convert a released large model. Transfer the contract to your existing small checkpoint with fixed token-ID probes and tokenizer round trips.
- OLMo-core: separate resharded tensors from trainer stateOLMo Fully Open Training Stack
config_dicts_from_pathand_worker_process: model and optimizer reconstruction, load, copied ancillary files and saveKeep resharding analytical. Cross-check
Trainer.load_state_dictinsrc/olmo_core/train/trainer.pyat the same revision: rank RNG restoration is conditional on unchanged world size. Copied trainer files do not prove equivalent continuation. - Laboratory: immutable service inputs and outputsLLM Post-Training Laboratory
Architecture constraints and Milestone C, bounded versioned rollout/verification queue and independent behavior evaluation
Focus on
- An export needs parameter-name, shape, dtype, tied-weight, positional and tokenizer semantics. Test fixed-input logits within a justified tolerance, not identical sampled text alone.
- A training resume additionally needs optimizer, schedule, data position and RNG. Resharding changes physical ownership; it does not automatically define equivalent random streams or sample order.
- A rollout request binds prompt, policy checkpoint, template, decoding configuration and sample identity. Its result preserves generated tokens and behavior-policy log probabilities where the objective needs them.
- Reward and evaluation records bind their own scorer version and the immutable response they scored. Stale-policy acceptance, timeouts and invalid responses need explicit policies even when all roles are local function calls.
Common mistakes · 3
- Promoting a weights-only export to a resume checkpoint. A compatible forward pass does not reconstruct optimizer history.
- Expecting bitwise logits after a dtype change. Quantization and floating-point reduction order can change outputs; choose the comparison and tolerance before conversion.
- Recomputing old rollout log probabilities under the current policy and calling them behavior-policy probabilities. That changes the objective's data.
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.Why compare token IDs as well as decoded strings after export?Answer
Different token sequences can decode to similar text while assigning different probabilities and boundaries. Tokenizer and special-token semantics are part of the model interface.
2.Do matching full weights after resharding establish exact training continuation?Answer
No. Optimizer alignment, data ownership, RNG streams and numerical execution also matter. State what was preserved and what was reset.
3.May rollout, reward and evaluation services run sequentially on one CPU?Answer
Yes. These are ownership and record contracts, not a requirement for separate machines. Such a run provides local evidence, not distributed throughput evidence.
You're done when
The three consumer contracts distinguish preserved from missing state, and mismatched policy, tokenizer or scorer identities are refused at the appropriate boundary.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 9 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.
- 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.
Also in this section
- 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. - 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.
- 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.
- 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. - 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.