We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4e048 commit fe1ffc4Copy full SHA for fe1ffc4
src/transformers/trainer.py
@@ -2410,6 +2410,9 @@ def _inner_training_loop(
2410
if epoch == epochs_trained and resume_from_checkpoint is not None:
2411
if steps_trained_in_current_epoch > 0 and not args.ignore_data_skip:
2412
epoch_dataloader = skip_first_batches(epoch_dataloader, steps_trained_in_current_epoch)
2413
+ if hasattr(epoch_dataloader, "set_epoch"):
2414
+ epoch_dataloader.set_epoch(epoch)
2415
+
2416
step = steps_trained_in_current_epoch - 1
2417
rng_to_sync = True
2418
elif steps_trained_in_current_epoch == 0:
0 commit comments