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
9fd5e6bb
Unverified
Commit
9fd5e6bb
authored
Apr 05, 2022
by
Stas Bekman
Committed by
GitHub
Apr 05, 2022
Browse files
[deepspeed] fix typo, adjust config name (#16597)
parent
367558b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/deepspeed.py
src/transformers/deepspeed.py
+1
-1
No files found.
src/transformers/deepspeed.py
View file @
9fd5e6bb
...
...
@@ -250,7 +250,7 @@ class HfTrainerDeepSpeedConfig(HfDeepSpeedConfig):
self
.
fill_match
(
"bf16.enabled"
,
(
args
.
bf16
or
args
.
bf16_full_eval
),
"bf16|bf16_full_eval"
)
# deepspeed's default mode is fp16 unless there is a config that says differently
if
self
.
is_true
(
"bf
oat
16.enabled"
):
if
self
.
is_true
(
"bf16.enabled"
):
self
.
_dtype
=
torch
.
bfloat16
elif
self
.
is_false
(
"fp16.enabled"
):
self
.
_dtype
=
torch
.
float32
...
...
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