Merge 3988f373866daafbf0df49480c27a199fcb08646 into 807538fe6c66bca8c91edbad14414fb4e109cbde

This commit is contained in:
DELUXA 2025-12-21 23:43:17 +01:00 committed by GitHub
commit 36fab442bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1225,7 +1225,7 @@ def pytorch_attention_enabled():
return ENABLE_PYTORCH_ATTENTION return ENABLE_PYTORCH_ATTENTION
def pytorch_attention_enabled_vae(): def pytorch_attention_enabled_vae():
if is_amd(): if is_amd() and not amd_min_version(device=None, min_rdna_version=4):
return False # enabling pytorch attention on AMD currently causes crash when doing high res return False # enabling pytorch attention on AMD currently causes crash when doing high res
return pytorch_attention_enabled() return pytorch_attention_enabled()