-
Notifications
You must be signed in to change notification settings - Fork 1.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
Question of the equation in Flash Attention 2 Paper #1349
Comments
The formula for |
@SimpleTheoryOfTypes So these are typos in the paper? |
Yes, I believe so. It would be best for the original authors to confirm. |
I noticed the same issue while reading the paper. Additionally, since |
Hi Tri,
@tridao
I have a question about the equation in chapter 3.1.1 Forward pass of Flash attention 2 paper.
As you mentioned "Only at the every end of the loop do we scale the final$$\tilde{O}^{(last)}$$ by $$diag(l^{(last)} )^{−1}$$ to get the right output."
Suppose 2 is the last one, I can use$$diag(\ell^{(2)} )^{−1}$$ to scale $$\tilde{O}^{(2)}$$ , then we get the following formula:
The expected result should be
The right-hand side of the plus sign in equation 1 is equal to that in equation 2, but the left-hand sides of the plus sign do not match. Could you provide some clarification or guidance on this matter?
The text was updated successfully, but these errors were encountered: