mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-21 03:40:16 +08:00
fixes to use pytorch-attention
This commit is contained in:
parent
f9ee02080f
commit
bce4176d3d
@ -237,10 +237,10 @@ try:
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if ENABLE_PYTORCH_ATTENTION:
|
#if ENABLE_PYTORCH_ATTENTION:
|
||||||
torch.backends.cuda.enable_math_sdp(True)
|
# torch.backends.cuda.enable_math_sdp(True)
|
||||||
torch.backends.cuda.enable_flash_sdp(True)
|
# torch.backends.cuda.enable_flash_sdp(True)
|
||||||
torch.backends.cuda.enable_mem_efficient_sdp(True)
|
# torch.backends.cuda.enable_mem_efficient_sdp(True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if is_nvidia() and args.fast:
|
if is_nvidia() and args.fast:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user