This commit is contained in:
JettHu 2026-01-25 04:05:21 +08:00 committed by GitHub
commit f9f8d6d208
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -378,7 +378,7 @@ except:
pass
if ENABLE_PYTORCH_ATTENTION:
if ENABLE_PYTORCH_ATTENTION and cpu_state != CPUState.CPU:
torch.backends.cuda.enable_math_sdp(True)
torch.backends.cuda.enable_flash_sdp(True)
torch.backends.cuda.enable_mem_efficient_sdp(True)