Asked about Checkpoints and reproducibility

What do you need to save to resume a training run exactly?

An answer that works

Model weights, optimiser state, scheduler state, the step or epoch counter, random number generator states, and the position in the data. Missing the optimiser state is the common mistake: Adam restarts with empty moment estimates and training behaves differently.

Reading an answer is not being able to give one. The section that teaches this is Checkpoints and reproducibility, 3 hours of PyTorch.

Learn this properly