Skip to content
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

add flash attn 2 #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

williamberman
Copy link
Contributor

Marginal improvements over xformers, note that xformers itself isn't a tremendous improvement over vanilla attention.

We have relatively small sequence lengths of 256 for self attention and 256x77 for cross attention. Our head dimensions of 16 heads of 64 inner dim as well are on the smaller side.

Only linking f8 runs, measurements are same for f16 as we have the same attention block configs/sequence lengths
https://wandb.ai/williamberman/muse/runs/9heg02rd?workspace=user-williamberman
https://wandb.ai/williamberman/muse/runs/2tc3ueir?workspace=user-williamberman
https://wandb.ai/williamberman/muse/runs/f4e8r72x/workspace?workspace=user-williamberman

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.

None yet

1 participant