mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-12 19:17:04 +08:00
fix(model_management.py): enabled enable_math_sdp instead of enable_flash_sdp
This commit is contained in:
parent
0cd6f8a0f0
commit
05b6b36bb0
@ -263,8 +263,8 @@ try:
|
|||||||
torch.backends.cudnn.enabled = False
|
torch.backends.cudnn.enabled = False
|
||||||
print("Disabling cuDNN because ZLUDA does currently not support it.")
|
print("Disabling cuDNN because ZLUDA does currently not support it.")
|
||||||
|
|
||||||
torch.backends.cuda.enable_flash_sdp(True)
|
torch.backends.cuda.enable_flash_sdp(False)
|
||||||
torch.backends.cuda.enable_math_sdp(False)
|
torch.backends.cuda.enable_math_sdp(True)
|
||||||
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
||||||
|
|
||||||
if ENABLE_PYTORCH_ATTENTION:
|
if ENABLE_PYTORCH_ATTENTION:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user