NVIDIA adds open-source linear-attention kernels to cuDNN
The kernels support five model variants on Blackwell GPUs and cover training’s forward and backward passes. NVIDIA’s paper reports speedups on a GB200 against several existing implementations.
NVIDIA has added open-source kernels for five linear-attention variants to cuDNN, covering Mamba-2, Gated DeltaNet, Gated DeltaProduct, Kimi Delta Attention and Gated DeltaNet-2. The kernels support Blackwell GPUs and both the forward and backward passes used in training.
Linear attention uses a fixed-size recurrent state instead of Transformer softmax attention. The paper says this makes prefill runtime grow linearly, rather than quadratically, with sequence length, while each decode step takes constant time relative to sequence length.
On a GB200, NVIDIA reports that the four delta-rule kernels run up to 7.1 times faster in the forward pass and 8.1 times faster in the backward pass than reference Triton implementations. The paper also reports gains over other baselines; results vary by comparison and workload.