diff --git a/comfy/model_management.py b/comfy/model_management.py index ef36a2c48..4e7e9b992 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -630,6 +630,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 + if directml_enabled: + return False #fix for AMD devices on Windows. return True def device_should_use_non_blocking(device):