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