What FlashAttention Does Instead of Storing S and P
FlashAttention never writes the score matrix to HBM during the forward pass. The backward pass still needs (the scores) and (the softmax probabilities) to compute gradients.
For one attention layer with , 32 heads, fp16, what would storing and cost, and what does FlashAttention do instead?
Sign in to answer questions and track your progress
Sign In