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
b151ddb9
Unverified
Commit
b151ddb9
authored
Apr 14, 2022
by
Sylvain Gugger
Committed by
GitHub
Apr 14, 2022
Browse files
Fix batch size in evaluation loop (#16763)
* Fix batch size in evaluation loop * remove debug statement
parent
d8269eb4
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 @
b151ddb9
...
...
@@ -2411,7 +2411,7 @@ class Trainer:
elif
args
.
bf16_full_eval
:
model
=
model
.
to
(
dtype
=
torch
.
bfloat16
,
device
=
args
.
device
)
batch_size
=
self
.
args
.
per_device_
eval_batch_size
batch_size
=
self
.
args
.
eval_batch_size
logger
.
info
(
f
"***** Running
{
description
}
*****"
)
if
has_length
(
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