Skip to content

Commit f7a5107

Browse files
Fix crash.
1 parent 91be9c2 commit f7a5107

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

comfy/model_management.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -928,10 +928,7 @@ def should_use_bf16(device=None, model_params=0, prioritize_performance=True, ma
928928
if is_intel_xpu():
929929
return True
930930

931-
if device is None:
932-
device = torch.device("cuda")
933-
934-
props = torch.cuda.get_device_properties(device)
931+
props = torch.cuda.get_device_properties("cuda")
935932
if props.major >= 8:
936933
return True
937934

0 commit comments

Comments
 (0)