7/31
Part 1 of 6 · Derive the two gradientsWatch
Watch · 16 min
Why a custom op has to supply its own backward, then this lesson's derivation on a 1 by 3 input and a 3 by 4 weight, where the Jacobian built entry by entry turns out to be W transposed. His X and W are this lesson's A and B.
Flash Attention derived and coded from first principles with Triton (Python) · Umar Jamil · Nov 2024YouTube