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 some memory related issues.

comfyanonymous258dbc06c34e
diff --git a/comfy/model_management.py b/comfy/model_management.py
index 310ec2537..537df41ed 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -617,7 +617,8 @@ def supports_dtype(device, dtype): #TODO
def device_supports_non_blocking(device):
if is_device_mps(device):
return False #pytorch bug? mps doesn't support non blocking
- return True
+ return False
+ # return True #TODO: figure out why this causes issues
def cast_to_device(tensor, device, dtype, copy=False):
device_supports_cast = False