mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-05-24 22:46:41 +08:00
Update zluda.py
This commit is contained in:
parent
dba9d20791
commit
c92a07594b
@ -652,7 +652,8 @@ def do_hijack():
|
|||||||
print(" :: Configuring PyTorch backends...")
|
print(" :: Configuring PyTorch backends...")
|
||||||
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
torch.backends.cuda.enable_mem_efficient_sdp(False)
|
||||||
torch.backends.cuda.enable_mem_efficient_sdp = do_nothing
|
torch.backends.cuda.enable_mem_efficient_sdp = do_nothing
|
||||||
# torch.backends.cudnn.enabled = True #this was here from the early days , always assumed this was required for other stuff, disabling it.
|
torch.backends.cudnn.enabled = False
|
||||||
|
torch.backends.cudnn.benchmark = False
|
||||||
if hasattr(torch.backends.cuda, "enable_flash_sdp"):
|
if hasattr(torch.backends.cuda, "enable_flash_sdp"):
|
||||||
torch.backends.cuda.enable_flash_sdp(True)
|
torch.backends.cuda.enable_flash_sdp(True)
|
||||||
print(" :: Disabled CUDA flash attention")
|
print(" :: Disabled CUDA flash attention")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user