Attention 加速模块负责整理 FlashAttention、FlashDecoding、attention kernel 和长序列 attention 的系统优化。
Notes
Related Papers
- FlashAttention:IO-aware exact attention 的原始论文。
- FlashAttention-2:并行划分和 warp 工作分配改进。
- FlashAttention-3:Hopper 异步执行与 FP8 attention。
- DoSA: Dots Sparse Attention:利用合法 score bounds 跳过不可能入选的完整多头评分,保持原始稀疏 indexer 的 Top-K 选择。