Checkpointing with torch.save
Train a simple feedforward model for 1 epoch. Save:
- Model state dict.
- Optimizer state dict.
- Epoch number.
Then load the checkpoint and resume training seamlessly.
Train a simple feedforward model for 1 epoch. Save:
Then load the checkpoint and resume training seamlessly.