mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Update model_management.py
This commit is contained in:
parent
97146c99c6
commit
f125a37bdf
@ -25,6 +25,7 @@ import sys
|
||||
import platform
|
||||
import weakref
|
||||
import gc
|
||||
import zluda
|
||||
|
||||
class VRAMState(Enum):
|
||||
DISABLED = 0 #No vram present: no need to move models to vram
|
||||
@ -249,10 +250,10 @@ 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