piper icon indicating copy to clipboard operation
piper copied to clipboard

Only two checkpoints are saved and then no more in Colab notebook

Open rikochet9 opened this issue 1 year ago • 0 comments

Training with checkpoint_epochs on.

Yesterday, I had it set to 500 and training saved epoch 2999 checkpoint and then an epoch 3499 checkpoint but then no more after that, despite continuing training past 5000 epochs.

Today, I set checkpoint_epochs to 250 and trained. It saved epoch 3749 and epoch 3999 but did not save any more after that despite an additional 500 more training epochs.

Wasting a lot of training time from this issue. Anyone know why this is happening?

Additional notes:

  • Plenty of free space on my Google Drive. Tested uploading other files to my Drive to confirm it wasn't a bandwidth quota issue.
  • I'm not relying on last.ckpt as it gets corrupted after ~1000 epochs in a single training run, seems to be a write limit to a single file in Google Drive.
  • From my file history, it doesn't look like I was having this problem when I was last training in December.
  • Training on an A100 with an epoch taking ~5 seconds.

UPDATES:

  • Since originally posting this, I've done two more training runs and found on those it only saved one checkpoint and then no more.
  • WORKAROUND: Setting num_ckpt to -1, which disables any limit on number of checkpoints to save. It then saves every checkpoint as per the intervals of checkpoint_epochs. This suggests to me that the issue may be in the handling of deleting & saving checkpoints when trying to maintain a limit?

rikochet9 avatar Mar 18 '25 00:03 rikochet9