Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
990540b7
Unverified
Commit
990540b7
authored
Jun 29, 2021
by
Stas Bekman
Committed by
GitHub
Jun 29, 2021
Browse files
[modelcard] fix (#12422)
this PR is fixing an incorrect attribute - probably some tests are needed?
parent
dc42e770
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modelcard.py
src/transformers/modelcard.py
+1
-1
No files found.
src/transformers/modelcard.py
View file @
990540b7
...
...
@@ -737,7 +737,7 @@ def extract_hyperparameters_from_trainer(trainer):
if
trainer
.
args
.
fp16
:
if
trainer
.
use_amp
:
hyperparameters
[
"mixed_precision_training"
]
=
"Native AMP"
elif
trainer
.
_
use_apex
:
elif
trainer
.
use_apex
:
hyperparameters
[
"mixed_precision_training"
]
=
f
"Apex, opt level
{
trainer
.
args
.
fp16_opt_level
}
"
if
trainer
.
args
.
label_smoothing_factor
!=
0.0
:
...
...
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