Skip to content

Commit

Permalink
Should make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Jan 8, 2025
1 parent d9f8f46 commit 9a4bbbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,7 @@ def _inner_training_loop(
if args.max_steps < 1:
max_steps = math.ceil(args.num_train_epochs * num_update_steps_per_epoch)

num_train_tokens = None
if self.args.include_tokens_per_second:
num_train_tokens = self.num_tokens(train_dataloader, max_steps)
if has_length(train_dataloader) and args.max_steps < 1:
Expand Down

0 comments on commit 9a4bbbd

Please sign in to comment.