From FlashAttention-3 to FlashAttention-4: tcgen05, TMEM, 2CTA, and Lazy Rescaling on Blackwell
FlashAttention-3 reorganized attention around Hopper’s TMA and asynchronous WGMMA. FlashAttention-4 keeps the same mathematical recurrence but reorganizes the kernel again for Blackwell: QK and...