Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
fb6a6276
Unverified
Commit
fb6a6276
authored
Jun 27, 2023
by
Zach Mueller
Committed by
GitHub
Jun 27, 2023
Browse files
Fix LR scheduler based on bs from auto bs finder (#24521)
* One solution * args -> self
parent
38db04ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/trainer.py
src/transformers/trainer.py
+1
-1
No files found.
src/transformers/trainer.py
View file @
fb6a6276
...
...
@@ -1553,7 +1553,7 @@ class Trainer:
# number of training epochs: num_train_epochs
# number of training steps per epoch: num_update_steps_per_epoch
# total number of training steps to execute: max_steps
total_train_batch_size
=
args
.
train_batch_size
*
args
.
gradient_accumulation_steps
*
args
.
world_size
total_train_batch_size
=
self
.
_
train_batch_size
*
args
.
gradient_accumulation_steps
*
args
.
world_size
len_dataloader
=
None
if
has_length
(
train_dataloader
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment