Nodes/ComfyUI-DN_PatchFlashAttention/Patch Flash Attention DN
ComfyUI Node

Patch Flash Attention DN

Patches ComfyUI attention to use Flash Attention 2 (flash_attn). Requires the flash_attn package. Wire the output MODEL into your sampler.

By 0xDELUXA·Created 6 months ago·Updated 4 months ago· 6
Patch Flash Attention DN
  • model
  • MODEL
enabledtrue
CategoryDN/FlashAttention

Inputs (2)

NameTypeDefaultDescription
modelMODEL
enabledBOOLEANtrueEnable Flash Attention 2 patch. Set to False to pass the model through unchanged.

Outputs (1)

NameTypeDescription
MODELMODEL