A training job on spot instances keeps getting interrupted and restarting from zero. What do you fix?
IntermediateScenarioTraining pipelines & orchestration
Answer
Add checkpointing: save model and optimiser state to object storage every N steps or minutes, and make the job resume from the latest checkpoint on start. Also handle the termination notice to save a final checkpoint, and consider a mix of spot and on-demand nodes.