You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: comfy/ldm/modules/attention.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@
22
22
try:
23
23
fromsageattentionimportsageattn
24
24
SAGE_ATTENTION_IS_AVAILABLE=True
25
-
exceptModuleNotFoundErrorase:
25
+
exceptImportErrorase:
26
26
ifmodel_management.sage_attention_enabled():
27
27
ife.name=="sageattention":
28
28
logging.error(f"\n\nTo use the `--use-sage-attention` feature, the `sageattention` package must be installed first.\ncommand:\n\t{sys.executable} -m pip install sageattention")
@@ -34,7 +34,7 @@
34
34
try:
35
35
fromflash_attnimportflash_attn_func
36
36
FLASH_ATTENTION_IS_AVAILABLE=True
37
-
exceptModuleNotFoundError:
37
+
exceptImportError:
38
38
ifmodel_management.flash_attention_enabled():
39
39
logging.error(f"\n\nTo use the `--use-flash-attention` feature, the `flash-attn` package must be installed first.\ncommand:\n\t{sys.executable} -m pip install flash-attn")
0 commit comments