Update model_management.py

This commit is contained in:
patientx 2025-02-28 16:37:55 +03:00 committed by GitHub
parent 1871a594ba
commit af43425ab5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,8 +273,8 @@ except:
pass
# if ENABLE_PYTORCH_ATTENTION:
# torch.backends.cuda.enable_math_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)