Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix crash.

comfyanonymousf7a5107784cd
diff --git a/comfy/model_management.py b/comfy/model_management.py
index b280b149d..fb2747015 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -928,10 +928,7 @@ def should_use_bf16(device=None, model_params=0, prioritize_performance=True, ma
if is_intel_xpu():
return True
- if device is None:
- device = torch.device("cuda")
-
- props = torch.cuda.get_device_properties(device)
+ props = torch.cuda.get_device_properties("cuda")
if props.major >= 8:
return True