FlashAttention is a key innovation for large language models that uses kernel fusion to combine all attention operations into a single CUDA kernel, significantly reducing memory traffic between GPU high bandwidth memory (HBM) and on-chip SRAM.
Open the full topic