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 mps miss import

KarryCharon3e2309f149c4
diff --git a/comfy/model_management.py b/comfy/model_management.py
index e148408b8..fc2c572e2 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -49,6 +49,7 @@ except:
try:
if torch.backends.mps.is_available():
cpu_state = CPUState.MPS
+ import torch.mps
except:
pass