mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 03:50:03 +08:00
Better memory estimation for ROCm that support mem efficient attention.
There is no way to check if the card actually supports it so it assumes that it does if you use --use-pytorch-cross-attention with yours.
This commit is contained in:
parent
66d579cd19
commit
1f657be9a7
@ -909,6 +909,8 @@ def pytorch_attention_flash_attention():
|
||||
return True
|
||||
if is_ascend_npu():
|
||||
return True
|
||||
if is_amd():
|
||||
return True #if you have pytorch attention enabled on AMD it probably supports at least mem efficient attention
|
||||
return False
|
||||
|
||||
def mac_version():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user