-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flash Attention 2 for audio/musicgen #27552
Comments
Would indeed be cool having FA2 support for MusicGen! Since MusicGen copies the attention mechanism from Bart, you can copy the changes from this PR: #27203 Would you like to have a go at this integration @yoinked-h? It should be quite a fun PR where you get quite big speed-ups for not too much additional effort! |
I've tried to implement the Bart flash attention as best as i could, but i get some error ( |
I would like to help if possible |
Hey @yoinked-h and @staghado, as @sanchit-gandhi pointed it should be fun to add! |
we can close this due to #29939 |
amazing! |
Feature request
Add flash attention 2 to musicgen models (and or audio gen)
Motivation
Musicgen is a really large model, and its very hard to run on consumer GPUs, adding flash attention could make the model much lighter and possibly faster.
Your contribution
I can test on both WSL and windows 11 on a 3060
The text was updated successfully, but these errors were encountered: