cuDNN Frontend v1.34.0 Release Notes
cuDNN Frontend v1.34.0 adds batch-invariant attention, RMSNorm, GEMM and quantization paths. Hopper gains a Gated DeltaNet engine and paged MLA decode. Blackwell gains CuTe MoK expert-parallel training, pooled DeepSeek sparse attention and wider FP8 attention coverage. JAX users gain linear attention and experimental SDPA operations. Python and PyTorch users gain two graph neural network operations.
SDPA forward and decode ๐
- Ampere and Ada. FROST forward and backward engines now serve eligible compute capability 8.6 and 8.9 configurations within the device's shared-memory budget. SM80 forward accepts dense cumulative sequence lengths. Plan selection on A100 now covers additional absorbed-MLA decode, ragged training prefill, sliding-window and paged decode shapes. Compute capability 11.0 gains eligible SM100-family engines. (#2686, #2701, #2636, #2969, #2958)
- Hopper. Native forward supports additive bias on the three-warpgroup and dedicated D128 kernels. The D128 kernel accepts device sequence lengths and ignores NaNs in padded values. Packed THD queries can attend over paged KV with grouped query heads and split-KV. D64 GQA decode can also pack heads and split KV. (#2872, #2882, #2687, #2983, #2976)
- Hopper MLA and batch invariance. D576/V512 MLA decode supports dense and paged KV across head counts. Eligible D128 prefill and three-warpgroup forward plans can request batch-invariant execution. For packed queries over paged KV, fixed chunk boundaries and an ordered reduction preserve results as batch composition changes. (#2979, #3044, #3017, #3019, #3022, #3025)
- Blackwell SM100/SM103. Per-tensor FP8 forward adds paged D192/V128 attention and absorbed MLA with dense or paged KV. Single-query half-precision and FP8 D64/D128/D256 decode can pack whole GQA groups when the group count does not divide the tile. Eligible single-query graphs can request a batch-invariant plan. (#2802, #2805, #3104, #3093, #3151, #3027)
- Rubin SM107 and SM120. Per-tensor FP8 decode gains paged KV paths. On Rubin, packed THD queries can use paged KV at wide head dimensions, including D512. D192/V128 supports packed split-KV. Head packing expands for D128 and D192/V128 multi-query workloads. (#2987, #3035, #3039, #3098, #3036, #3004, #3103)
- Plan selection. FROST can combine split-decode partials within one launch. Updated selection accounts for the active window, cache length, KV splits, GPU size and query-head grouping. This affects short speculative decode, sink attention and paged or chunked prefill across multiple GPU families. Supported paged THD prefill configurations on Blackwell and Rubin can split over declared caches up to 131,072 keys. (#2780, #2806, #2803, #2928, #2936, #2954, #2961, #3073, #3080)
SDPA backward and numerical fixes
- Blackwell SM100/SM103 gains per-tensor FP8 D256 backward. Deterministic FP8 backward expands to supported D64 and D128 configurations, including a D64 sliding window. Rubin adds deterministic half-precision D64/D128 and dense D256 paths, plus FP8/MXFP8 backward options. D512 half-precision backward on Rubin accepts packed and padded ragged offsets. (#3012, #3127, #3042, #3041, #3145)
- More FP8, MXFP8, wide-head and Hopper backward plans are available through default engine selection. FP8 D64/D128 plans can take the lead on measured SM100/SM103 shapes. Supported FROST forward and backward paths accept a runtime attention scale, including D512 on SM103. (#2637, #2972, #3028, #3060, #3144, #3157)
- FP8 forward preserves the E4M3 probability tail and applies both probability scale factors to the output. SM100 D256 MXFP8 backward widens the output and its gradient before computing their dot product. The frontend filters affected backend FP8 plans on older cuDNN versions. (#3014, #2801, #2645, #2700)
- Large packed batches and wide heads get corrected launch bounds and 64-bit split-combine indexing. Plan selection now checks which kernels actually consume ragged offsets and leaves unsupported capacity-shaped THD declarations to the backend. It also avoids incorrect paged single-token and dense-query/ragged-KV plans. (#2659, #2670, #2668, #2658, #2671, #2656, #3010, #3087, #3146, #3076, #3121, #3136)
- Conflicting causal-mask alignments are rejected consistently. Unused ragged batch strides no longer disqualify an otherwise aligned graph. Forward honors virtual Stats, and plan selection checks packed Stats strides. (#2643, #2782, #2831, #2832)
Sparse and linear attention ๐
- Qwen sparse attention. QSA adds FP16 inputs on SM100/SM103/SM107. Indexed forward and backward add the 24-query-head, two-KV-head configuration. Dense forward vectorizes output stores, and backward speeds up the index scan and fill as well as deterministic execution on dense prefixes. (#2911, #2903, #3149, #3007, #2849)
- DeepSeek sparse attention. Blackwell gains pooled cache updates, paged scoring, top-k token expansion, and separate decode and prefill kernels. The indexer accepts per-row start offsets. H64 forward gains persistent scheduling, and H16 paths fix synchronization during backward. The sparse forward API also validates packed quantized KV formats and a second pool. Execution for these new declarations is still unimplemented in 1.34.0. (#1847, #2817, #2750, #2808, #2814, #2815, #2816, #2650)
- Block and simplified sparse attention. SM120 BSA fixes input handling in shared SDPA helpers. For simplified sparse attention on SM100/SM103, the documented guarantee is forward replay only. Backward and the dense KL indexer have measured determinism limits. (#2744, #2838)
- Gated DeltaNet, GDP and KDA. Hopper gains a native CUDA GDN engine with scalar gates. GDP exposes
qk_l2norm_epsfor in-kernel Q/K normalization across forward, backward and summaries. Hopper KDA improves backward precision and uses compact gate-only summaries. In-place GDN prefill also refines when to split work across value width. (#2539, #2819, #2473, #2510, #2482, #2787, #2852) - Repeated calls. Eligible GDN-2, GDP, Mamba-2 and summary calls replay launches from C++ and avoid custom-op dispatch in eager execution. (#2769, #2847)
Normalization โจ
- Batch-invariant RMSNorm forward is available on SM100, SM103 and SM107. Select
cudnn.numerical_note.BATCH_INVARIANTon both training and inference graphs to get the same normalized output for a row across batch sizes and positions. Wide rows can distribute their reduction across a cluster while preserving its order. (#2940, #2970) - RMSNorm also accepts rows sliced from a wider buffer and strided per-head Q/K views into fused QKV projections. These layouts can reach the batch-invariant engine directly through graph validation. (#3016)
GEMM and grouped GEMM โจ
- Batch-invariant matmul. Python graphs can select the batch-invariant engine on SM100/SM103/SM107 for BF16 and supported FP8/FP4 recipes. These include per-tensor and groupwise FP8, MXFP8, NVFP4, MXFP4 and mixed MXFP8 ร MXFP4. The documented graph recipes pair with FlashInfer rollout operations. Fixes cover the quantized split-K barrier, CuTe DSL 4.9 compilation, and architecture-specific packed-weight alignment. (#2899, #3056, #2935, #2998, #3152)
- GLU layouts and activations.
cudnn.ops.gemm_glu_forwardsupports SwiGLU and GeGLU and retains the SwiGLU entry point. Grouped BF16, MXFP8 and NVFP4 kernels accept gate-then-up weights on supported paths. Blackwell adds 128-row pairing for canonical GLU operands. BF16 dSwiGLU can recompute activations, and supported MXFP8 GLU/dGLU calls can omit unneeded outputs. (#2918, #2455, #3086, #2874, #2925, #3051) - Training and scheduling. Grouped dGLU adds deterministic probability gradients for SM100-family BF16 and Rubin block-scaled kernels. Experimental streaming signals let eligible forward kernels start as expert inputs become ready. BF16 weight gradients can use a caller-owned scheduler counter, including readiness waits on wide tiles. MXFP8 and BF16 weight-gradient paths also improve tile scheduling and descriptor reuse. (#2875, #3141, #2810, #2898, #2990, #3049, #2948)
- Inputs and repeated execution. Grouped GEMM accepts INT64 padded offsets. Weight gradients handle zero-token K-major inputs and reject misaligned block-scale expert starts. Per-call workspace and C++ launch replay improve repeated grouped calls. Fixes cover large dGLU output offsets, Rubin shared-memory sizing and grouped GLU-Hadamard amax synchronization. (#3050, #2915, #3008, #2883, #2280, #2930, #2685, #2677, #3059, #2917, #2968)
Expert-parallel MoE ๐
- CuTe MoK adds an experimental expert-parallel training layer on SM100/SM103. It overlaps cross-rank token dispatch and combine with routed SwiGLU expert GEMMs. It supports BF16 or MXFP8 routed weights, an optional shared expert, forward and backward calls, and reusable plans for CUDA Graph execution. It requires CUDA 13, CuTe DSL 4.8 or newer, and PyTorch 2.9 or newer with NCCL symmetric memory. (#2767)
- Rubin MoeEp adds
training_wgradwith BF16 or FP32 weight gradients and explicit output layouts. Forward tuning exposes scheduling, FC2 bulk stores and mixed cluster shapes. Callers using the formerMoeEpTuningConfig.reduce_topk_in_kernelfield should update their configuration. (#2523)
Quantization, convolutions and decode operations
- Batch-invariant quantization. Direct
cudnn.opsfunctions quantize rows to MXFP8, MXFP4 or NVFP4 independently of batch size and row position. NVFP4 supports per-tensor and per-token scaling. (#2933) - Conv3D. CuTe DSL fused Conv3D adds Wan 2.1 encoder and decoder shapes, FP32 post-operations and explicit TF32 convolution. The prepared path uses caller-owned input-rounding workspace. Experimental FROST convolution weight gradients support ungrouped rank-5 channels-last graphs with CuTe DSL 4.9 or newer. The engine admits SM100 and SM103, with execution verified on SM100. (#2788, #2892)
- Packed causal Conv1D reuses its forward and backward plans when the sequence count changes. Packed training can vary the number of sequences without recompiling for each count. (#2784)
- Decode building blocks. SM100-class GPUs gain
cudnn.AttentionPrepareDecode, NVFP4 and E4M3 row quantization throughRowQuantizeFp4DecodeandRowQuantizeFp8Decode, andRowArgmaxDecodewith an ID-table lookup. These experimental operations serve small inference steps of up to 1,024 tokens or rows, subject to each operation's shape requirements. (#2766, #2772, #2866, #2867)
Framework and graph APIs โจ
- JAX SDPA. Experimental
cudnn.ops.sdpa_forward_jaxandsdpa_backward_jaxexecute dense FP16/BF16 attention through XLA FFI and supportjax.jit. Forward returns FP32 statistics for the explicit backward call. Supported graphs include grouped heads, causal and local masks, additive bias, and padding lengths. (#2710) - JAX linear attention. Native GDN, GDN2, GDP and Mamba-2 bindings join KDA. They support packed sequences, recurrent state,
jax.jitand first-order reverse-mode differentiation without importing PyTorch. Forward, backward and state-summary entry points are available incudnn.ops. (#2537) - PyTorch variable-length attention accepts paged KV and
num_splits=1for batch-invariant execution. The provider also handles schema variants that place the backend argument at a different position. (#3074, #3063) - Graph neural networks.
cudnn.gnn.mha_simpleadds attention on graph edges, andcudnn.gnn.agg_hg_basis_postadds heterogeneous basis aggregation. Both expose forward and backward operations with PyTorch autograd. They require an Ampere-class or newer GPU and cuDNN 9.29 or newer on a supported non-Windows platform. (#1588, #1954) - Graph execution. Engines use the graph's device and stream, including indexed execution after deserialization. Graph execution validates overrides and workspace, honors caller overrides for runtime scalar defaults, and protects graph-owned internal scalars. Plan selection skips candidates whose workspace exceeds device memory. Raw DLPack FP8 inputs also retain their dtype in
tensor_like. (#2844, #2667, #2855, #2706, #2991, #2965, #2722) - Direct-call kernels order launches after initialization of their owned outputs. The C++ launcher can fall back to the Python function where PyTorch cannot be imported. (#2822, #2858, #3047)
Compatibility and integration
- NVFP4 conversion names changed. Use
cudnn.ops.nvfp4_block_scale_quantize_forwardandnvfp4_block_scale_dequantize_forward. The old names and the public quantizer/dequantizer plan-class exports have been removed. (#2693) - AOT attention. The library is now
libcudnn_frontend_aot_attention. Update C++ callers to theexperimental/aot_attention*.hheaders,experimental::aotnamespace andCUDNN_FRONTEND_BUILD_AOT_ATTENTIONCMake option. The library adds an SM120 decode tile, targets SM120/SM121, and offers quantized-KV decode on Ampere and Ada. (#2487, #2833) - The frontend searches Python's module paths for the installed cuDNN wheel. The JAX SDPA bridge also searches the standard AArch64 Linux library directory. Decode kernel imports and selected GEMM compilation paths were fixed for CuTe DSL 4.9 and CUDA 12. (#2775, #2773, #2763, #2736)
Samples and benchmarks ๐
- The model sample adds checkpoint-driven speculative decoding with draft and verify passes, paged KV state, and native decode blocks. Its performance mode reports request timings, GPU clock and limit information, and device time per kernel family. (#2774, #2795, #2807, #2826, #2845, #2856, #2785, #2827, #2834)
- Attention inference benchmarks can plot FlashInfer results and regenerate plots from CSV. Training benchmarks add packed per-tensor FP8 cases, including context-parallel all-to-all. Custom-reduction argmax samples generate indices inside the graph, eliminating the host-created index tensor. (#2771, #3130, #2768)
Source
Release source ยท Changes since the v1.33.0 source
Acknowledgements ๐
Thanks to everyone who contributed commits to this release.
@0z5a, @Abhayrkhot, @adnios, @Anerudhan, @Aneureka, @brandonfzhang, @Connor-XY, @dinodeep, @dongxiao92, @egilliam-nv, @GarlGuo, @hwanseoc, @icavan, @itsKeDeng, @jhjpark, @liujane-dev, @Mellonta, @mgoldfarb-nvidia, @msalasooNV, @phu0ngng, @pkuwangh, @RomanAnders90, @smoothsmooth, @sraman-rgb, @tingyu66, @TorinLi, @vikramchandrashekar, @xiufanl, @YangXu1990uiuc, @yanqinz2, @yanzhuo607, @YellowBicycleee, @yihuawei, @zach-ye0, @zhibinz-nv, @zhongbozhu.