mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-09-09 02:26:31 +08:00
Fix --use-flash-attention ignored when xformers installed. (#14083)
This commit is contained in:
@@ -741,12 +741,12 @@ optimized_attention = attention_basic
|
|||||||
if model_management.sage_attention_enabled():
|
if model_management.sage_attention_enabled():
|
||||||
logging.info("Using sage attention")
|
logging.info("Using sage attention")
|
||||||
optimized_attention = attention_sage
|
optimized_attention = attention_sage
|
||||||
elif model_management.xformers_enabled():
|
|
||||||
logging.info("Using xformers attention")
|
|
||||||
optimized_attention = attention_xformers
|
|
||||||
elif model_management.flash_attention_enabled():
|
elif model_management.flash_attention_enabled():
|
||||||
logging.info("Using Flash Attention")
|
logging.info("Using Flash Attention")
|
||||||
optimized_attention = attention_flash
|
optimized_attention = attention_flash
|
||||||
|
elif model_management.xformers_enabled():
|
||||||
|
logging.info("Using xformers attention")
|
||||||
|
optimized_attention = attention_xformers
|
||||||
elif model_management.pytorch_attention_enabled():
|
elif model_management.pytorch_attention_enabled():
|
||||||
logging.info("Using pytorch attention")
|
logging.info("Using pytorch attention")
|
||||||
optimized_attention = attention_pytorch
|
optimized_attention = attention_pytorch
|
||||||
|
|||||||
Reference in New Issue
Block a user