Skip to content

[FlexAttention] Reenable flex for encoder-decoder and make the test more robust - #38321

Merged
vasqu merged 5 commits into
mainfrom
vas-enable-flex-attention
May 23, 2025
Merged

vasqu merged 5 commits into
mainfrom
vas-enable-flex-attention

Conversation

@vasqu

@vasqu vasqu commented May 23, 2025 •

Copy link
Copy Markdown
Collaborator

The comment in the test describes pretty well what the issue is:

# Flex attention relies on triton on compilation
# However, triton cannot handle hidden dimensions of less than 16
# --> forcing at least a hidden dim of 16

Flex attention tests were failing because triton needs bigger hidden dimensions to work when compiling. This made a lot of models fail. There still are some models failing but it is at least way more reliable, robust, and manageable what is failing.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@vasqu
vasqu marked this pull request as ready for review May 23, 2025 13:10
@github-actions
github-actions Bot requested review from ArthurZucker and eustlb May 23, 2025 13:10
@vasqu
vasqu requested review from Cyrilvallez and removed request for eustlb May 23, 2025 13:18

@ArthurZucker ArthurZucker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow nice!

@vasqu

vasqu commented May 23, 2025

Copy link
Copy Markdown
Collaborator Author

Merging, when CI is green flaky tests :D

@vasqu
vasqu merged commit 1ed1936 into main May 23, 2025
@vasqu
vasqu deleted the vas-enable-flex-attention branch May 23, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants