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

Animations for Flash Attention, Flash Attention2, and Standard Attention #736

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

LuisAVasquez
Copy link

@LuisAVasquez LuisAVasquez commented Dec 24, 2023

I made a series of manim animations illustrating how the implementations of Standard Attention, Flash Attention, and Flash Attention 2 work. They show how, asymptotically, Flash Attention and Flash Attention 2 perform better than Standard Attention with respect to the number of Input/Output accesses between HMB and SRAM.

Note that the animations only show the Forward Pass for each algorithm.

Find them all in this playlist

@FSSRepo
Copy link

FSSRepo commented Feb 6, 2024

Thank you very much, I find this topic very interesting.

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.

2 participants