You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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:
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: