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

Check out FMHA #8

Open
justheuristic opened this issue Mar 15, 2022 · 1 comment
Open

Check out FMHA #8

justheuristic opened this issue Mar 15, 2022 · 1 comment

Comments

@justheuristic
Copy link
Member

justheuristic commented Mar 15, 2022

@krunt encountered a fused monolithic implementation of multi-head attention:
https://github.com/NVIDIA/apex/tree/master/apex/contrib/csrc/fmha
main stuff: ./apex/contrib/fmha/fmha.py / ./apex/contrib/csrc/fmha

Let'c compare how it performs v.s. vanilla pytorch MHA on sequence length 512 & hid size 4096; 64 heads

@krunt
Copy link
Contributor

krunt commented Mar 21, 2022

image

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

No branches or pull requests

2 participants