F
Member
【Editorial Discussion】
A training resume often loads three things that are supposed to belong to one step: the model weights, an optimizer state, and sometimes an exponential moving average. If those files were copied from different checkpoints—or if a script uses the latest weights with an older optimizer directory—the job can still start. Gradients then update a network with moments that belong to another iterate, or evaluation reads an EMA that is not the average of the loaded weights. This is not mixed-precision overflow that skips an optimizer update while the learning-rate schedule still advances during a single run. It is also not a sharded checkpoint loaded at a different world size, not a non-strict load that ignores mismatched keys, and not a leftover adapter that remains mounted after a base swap. Each file can be well-formed. They were never a matched set.
**Build a known crossed resume, and require a refusal or a disclosed mix**
Take a small, locally checkable run that has written at least two complete checkpoints, S1 and S2, each containing weights, optimizer state, and an EMA if the trainer uses one. Resume four ways under the same settings the production entry point uses: the matched S2 set, the matched S1 set, S2 weights with S1 optimizer or EMA, and S1 weights with S2 optimizer or EMA. Record a short training step and, if applicable, an eval forward on the EMA.
The matched resumes should reproduce a recorded loss or a recorded tensor from that step, within a declared numeric tolerance. The crossed resumes should be rejected, or should start only with an explicit, logged warning that names the disagreeing step identifiers. If a crossed resume starts quietly and the first step or the EMA eval disagrees with both matched controls, a “resumed from S2” line was already false. A control that loads weights only, with a freshly initialized optimizer, is a different, legitimate mode and should be named as such.
**Record a step identifier on every artifact**
1) Persist, beside the resume, the step or update count and a digest of the weights, of the optimizer, and of the EMA, and whether they were required to match. A path to a checkpoint directory cannot be audited later if the directory can be assembled by hand.
2) If the trainer writes these artifacts asynchronously, test a crash window in which one file is newer than the others. A loader that picks “the newest file in the folder” will create the same crossed set without anyone mixing paths by hand.
3) If evaluation prefers the EMA, run the same match check before publishing an EMA score. A table that reports “step S2” for weights that are S2 and an average that is still S1 is a mixed claim.
There are limits. Some recipes deliberately start a new optimizer on old weights, and some EMA decays make a one-step lag small. Those cases are valid when disclosed. The test does not forbid weights-only loads. It asks whether a full-state resume is allowed to combine artifacts that do not share a step.
What step identifiers would you require on weights, optimizer, and EMA before a resume may start quietly? How do you test a directory that contains a newer weight file and an older optimizer file?
A training resume often loads three things that are supposed to belong to one step: the model weights, an optimizer state, and sometimes an exponential moving average. If those files were copied from different checkpoints—or if a script uses the latest weights with an older optimizer directory—the job can still start. Gradients then update a network with moments that belong to another iterate, or evaluation reads an EMA that is not the average of the loaded weights. This is not mixed-precision overflow that skips an optimizer update while the learning-rate schedule still advances during a single run. It is also not a sharded checkpoint loaded at a different world size, not a non-strict load that ignores mismatched keys, and not a leftover adapter that remains mounted after a base swap. Each file can be well-formed. They were never a matched set.
**Build a known crossed resume, and require a refusal or a disclosed mix**
Take a small, locally checkable run that has written at least two complete checkpoints, S1 and S2, each containing weights, optimizer state, and an EMA if the trainer uses one. Resume four ways under the same settings the production entry point uses: the matched S2 set, the matched S1 set, S2 weights with S1 optimizer or EMA, and S1 weights with S2 optimizer or EMA. Record a short training step and, if applicable, an eval forward on the EMA.
The matched resumes should reproduce a recorded loss or a recorded tensor from that step, within a declared numeric tolerance. The crossed resumes should be rejected, or should start only with an explicit, logged warning that names the disagreeing step identifiers. If a crossed resume starts quietly and the first step or the EMA eval disagrees with both matched controls, a “resumed from S2” line was already false. A control that loads weights only, with a freshly initialized optimizer, is a different, legitimate mode and should be named as such.
**Record a step identifier on every artifact**
1) Persist, beside the resume, the step or update count and a digest of the weights, of the optimizer, and of the EMA, and whether they were required to match. A path to a checkpoint directory cannot be audited later if the directory can be assembled by hand.
2) If the trainer writes these artifacts asynchronously, test a crash window in which one file is newer than the others. A loader that picks “the newest file in the folder” will create the same crossed set without anyone mixing paths by hand.
3) If evaluation prefers the EMA, run the same match check before publishing an EMA score. A table that reports “step S2” for weights that are S2 and an average that is still S1 is a mixed claim.
There are limits. Some recipes deliberately start a new optimizer on old weights, and some EMA decays make a one-step lag small. Those cases are valid when disclosed. The test does not forbid weights-only loads. It asks whether a full-state resume is allowed to combine artifacts that do not share a step.
What step identifiers would you require on weights, optimizer, and EMA before a resume may start quietly? How do you test a directory that contains a newer weight file and an older optimizer file?

