Unverified Commit ef23fae5 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix test for BF16 detection (#17803)

parent 7cced021
...@@ -1042,7 +1042,7 @@ class TrainingArguments: ...@@ -1042,7 +1042,7 @@ class TrainingArguments:
if self.no_cuda and not is_torch_bf16_cpu_available(): if self.no_cuda and not is_torch_bf16_cpu_available():
# cpu # cpu
raise ValueError("Your setup doesn't support bf16/cpu. You need torch>=1.10") 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 # gpu
raise ValueError( raise ValueError(
"Your setup doesn't support bf16/gpu. You need torch>=1.10, using Ampere GPU with cuda>=11.0" "Your setup doesn't support bf16/gpu. You need torch>=1.10, using Ampere GPU with cuda>=11.0"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment