diff --git a/comfy/model_management.py b/comfy/model_management.py index 761ff699f..b99cbf481 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -263,8 +263,8 @@ try: torch.backends.cudnn.enabled = False print("Disabling cuDNN because ZLUDA does currently not support it.") - torch.backends.cuda.enable_flash_sdp(True) - torch.backends.cuda.enable_math_sdp(False) + torch.backends.cuda.enable_flash_sdp(False) + torch.backends.cuda.enable_math_sdp(True) torch.backends.cuda.enable_mem_efficient_sdp(False) if ENABLE_PYTORCH_ATTENTION: