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 potential mps issue of supports_fp64 called with None. (#16136)

comfyanonymousd1c5e6411998
diff --git a/comfy/model_management.py b/comfy/model_management.py
index def0af364..1eead636e 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -2008,7 +2008,7 @@ def supports_mxfp8_compute(device=None):
return True
def supports_fp64(device=None):
- if is_device_mps(device):
+ if (device is not None and is_device_mps(device)) or mps_mode():
return False
if is_intel_xpu():