"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ffbcfc0166a5413176dc9401dbe5d3892c36fff6"
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:
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"
......
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