Skip to content

Commit

Permalink
correct typo (huggingface#11393)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored and Iwontbecreative committed Jul 15, 2021
1 parent 431a373 commit 4973b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/flax/language-modeling/run_mlm_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def tokenize_function(examples):
# Create learning rate scheduler
# warmup_steps = 0 causes the Flax optimizer to return NaNs; warmup_steps = 1 is functionally equivalent.
lr_scheduler_fn = create_learning_rate_scheduler(
base_learning_rate=training_args.learning_rate, warmup_steps=min(training_args.warmup_steps, 1)
base_learning_rate=training_args.learning_rate, warmup_steps=max(training_args.warmup_steps, 1)
)

# Create parallel version of the training and evaluation steps
Expand Down

0 comments on commit 4973b94

Please sign in to comment.