FlashInfer合并RTX Blackwell注意力优化
NVIDIA称,面向RTX Blackwell SM120的FlashInfer NVFP4注意力优化已合并至主分支,该方案通过复用评分寄存器和改进调度,让矩阵乘法与剩余softmax工作并行执行。Reactor已将该内核集成至生产服务栈,其分享的测试显示,在NVIDIA RTX PRO 6000 Blackwell运行的多种世界模型工作负载中,端到端延迟降低1.32%至15.34%。
这项已合并的内核无需额外的完整评分缓冲区,即可改进RTX Blackwell上的低延迟世界模型推理。
Attention can be a major bottleneck when serving world foundation models, where long sequences make inference computationally demanding. On NVIDIA Hopper and NVIDIA Blackwell data center GPUs, FlashAttention3 and FlashAttention4 improve attention performance by overlapping matrix multiply-accumulate (MMA) operations through softmax within a thread block.
However, these hardware-specific pipelines cannot be applied directly to the NVIDIA RTX PRO 6000 Blackwell Series (SM120), which uses a different Tensor Core architecture. For video generation models using BF16 inference, attention remains primarily MMA-bound on NVIDIA Blackwell RTX GPUs, while softmax is a major bottleneck in forward attention on Blackwell data center GPUs.
Introduced with NVIDIA Blackwell architecture, NVFP4 offers hardware-accelerated 4-bit matrix multiplication, enabling higher Tensor Core throughput and creating an opportunity to accelerate attention beyond BF16. But sustaining high throughput requires careful coordination of softmax, data movement, and intermediate storage. Dependencies between these stages can leave Tensor Cores idle, limiting how effectively the kernel uses the available compute.
This post explains how to accelerate NVFP4 attention on the SM120 architecture through register recycling and improved scheduling. By reclaiming score registers after the softmax outputs have been packed into NVFP4, the next tile’s matrix multiplication can overlap with remaining softmax work on the current tile. This creates a more efficient pipeline that reduces Tensor Core idle time and improves utilization without requiring a second full score buffer.
#NVIDIA#Reactor#FlashInfer#NVIDIA RTX PRO 6000 Blackwell#SageAttention3#FlashAttention3#FlashAttention4#NVFP4