Motivation.
FlexAttention is no longer selected by default on ROCm and ranks behind TritonAttention on CUDA.
It has a lot of test coverage and is not used in practice, and sometimes breaks CI like #46531
TritonAttention now covers the standard FlexAttention use cases, including FP32, encoder-only, non-causal, sliding window, multimodal prefix, batch invariance, and Unlimited-OCR R-SWA.
Removing FlexAttention would eliminate roughly 1,900 lines of backend-specific implementation and tests, while reducing reliance on private PyTorch FlexAttention APIs.
Proposed Change.
- Now: Mark
FLEX_ATTENTION as deprecated.
- v0.29.0/v0.30.0: Remove the backend implementation, enum entry, Flex-specific configuration fields, and tests.
Feedback Period.
No response
CC List.
@liangel-02 @Isotr0py @MatthewBonanni @mgoin @LucasWilkinson @andakai
Any Other Things.
No response
Before submitting a new issue...
Motivation.
FlexAttention is no longer selected by default on ROCm and ranks behind TritonAttention on CUDA.
It has a lot of test coverage and is not used in practice, and sometimes breaks CI like #46531
TritonAttention now covers the standard FlexAttention use cases, including FP32, encoder-only, non-causal, sliding window, multimodal prefix, batch invariance, and Unlimited-OCR R-SWA.
Removing FlexAttention would eliminate roughly 1,900 lines of backend-specific implementation and tests, while reducing reliance on private PyTorch FlexAttention APIs.
Proposed Change.
FLEX_ATTENTIONas deprecated.Feedback Period.
No response
CC List.
@liangel-02 @Isotr0py @MatthewBonanni @mgoin @LucasWilkinson @andakai
Any Other Things.
No response
Before submitting a new issue...