We released jax-linear-attention (jla), an Apache-2.0 JAX library of Pallas Mosaic GPU kernels for linear-attention and state-space layers (Mamba-2/3, Gated DeltaNet, KDA, RWKV-7, GLA), forward and backward, plus a training stack.
On H100 (bf16, forward + backward, against the latest upstream code on each row):
- 10 of 12 kernels are faster than the strongest upstream code at the median: Mamba-3 MIMO 2.70-5.37x the official TileLang kernels, Mamba-3 SISO 1.58-2.32x, Mamba-2 scan 1.20-1.96x.
- Slower: Gated DeltaNet against FlashQLA on long single sequences, and causal attention against FA3 (0.77-0.92x).
- End to end, a 1.3B transformer trains at 72.3% MFU in FP8 on one H100, and 68.2% per GPU on 8.
Question for anyone who has moved Hopper wgmma kernels to Blackwell (tcgen05, tensor memory): for chunked recurrent scans with small per-chunk matmuls, what limited you most: TMEM allocation, 2-CTA MMA, or pipeline depth? We’d like to plan the B200/B300 port around what actually matters for these shapes.
Repo, shapes and method: GitHub - jla-org/jax-linear-attention: Fast linear-attention, SSM and attention kernels (Pallas Mosaic GPU) and a training stack for JAX on NVIDIA Hopper · GitHub