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
12298cb6
Unverified
Commit
12298cb6
authored
Jun 07, 2023
by
Sourab Mangrulkar
Committed by
GitHub
Jun 07, 2023
Browse files
fix executable batch size issue (#24067)
* fix executable batch size issue * fix * undo
parent
ef010071
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/trainer.py
src/transformers/trainer.py
+1
-0
No files found.
src/transformers/trainer.py
View file @
12298cb6
...
...
@@ -1650,6 +1650,7 @@ class Trainer:
def
_inner_training_loop
(
self
,
batch_size
=
None
,
args
=
None
,
resume_from_checkpoint
=
None
,
trial
=
None
,
ignore_keys_for_eval
=
None
):
self
.
accelerator
.
free_memory
()
self
.
_train_batch_size
=
batch_size
logger
.
debug
(
f
"Currently training with a batch size of:
{
self
.
_train_batch_size
}
"
)
# Data loader and number of training steps
...
...
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