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
ef23fae5
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ffbcfc0166a5413176dc9401dbe5d3892c36fff6"
Unverified
Commit
ef23fae5
authored
Jun 21, 2022
by
Sylvain Gugger
Committed by
GitHub
Jun 21, 2022
Browse files
Fix test for BF16 detection (#17803)
parent
7cced021
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/training_args.py
src/transformers/training_args.py
+1
-1
No files found.
src/transformers/training_args.py
View file @
ef23fae5
...
...
@@ -1042,7 +1042,7 @@ class TrainingArguments:
if
self
.
no_cuda
and
not
is_torch_bf16_cpu_available
():
# cpu
raise
ValueError
(
"Your setup doesn't support bf16/cpu. You need torch>=1.10"
)
elif
not
is_torch_bf16_gpu_available
():
elif
not
self
.
no_cuda
and
not
is_torch_bf16_gpu_available
():
# gpu
raise
ValueError
(
"Your setup doesn't support bf16/gpu. You need torch>=1.10, using Ampere GPU with cuda>=11.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