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 afdc40d commit 7f1a6daCopy full SHA for 7f1a6da
src/transformers/trainer.py
@@ -2414,6 +2414,9 @@ def _inner_training_loop(
2414
if epoch == epochs_trained and resume_from_checkpoint is not None:
2415
if steps_trained_in_current_epoch > 0 and not args.ignore_data_skip:
2416
epoch_dataloader = skip_first_batches(epoch_dataloader, steps_trained_in_current_epoch)
2417
+ if hasattr(epoch_dataloader, "set_epoch"):
2418
+ epoch_dataloader.set_epoch(epoch)
2419
+
2420
step = steps_trained_in_current_epoch - 1
2421
rng_to_sync = True
2422
elif steps_trained_in_current_epoch == 0:
0 commit comments