Skip to content

Release v0.7.3

Choose a tag to compare

@github-actions github-actions released this 04 Nov 05:57
· 1463 commits to main since this release
v0.7.3
775207d

These highlights are also published at flashinfer.ai/releases.

v0.7.3 Highlights

FlashInfer v0.7.3 brings MTP and NVFP4 MLA decode to Rubin, and speeds up expert-parallel MoE decode steps on Blackwell while Hopper gains MXFP4 and NVFP4 experts. Hybrid Gated DeltaNet models gain paged recurrent state for prefix caching, DeepSeek Sparse Attention models get token-sparse decode, and MoELayer adds a low-latency small-batch path from Ampere to Blackwell.

DeepSeek-class MTP decode, Qwen3.5 deterministic MoE and Mamba2 prefill run on Rubin

BatchMLAPagedAttentionWrapper adds a cute-dsl-rubin-mtp backend for FP8 absorbed-MLA multi-token-prediction decode on SM107, and an experimental CAKE backend decodes dense MLA from an NVFP4 paged latent cache in the Kimi K3 and DeepSeek-V3 geometry. The deterministic unfused finalize of the CuTe DSL fused MoE works on Rubin for Qwen3.5 NVFP4 on Vera Rubin NVL72, and knobs="auto" tunes Rubin MegaMoE through autotune_v2(). Rubin also gets an SM107-native blockwise FP8 GEMM behind gemm_fp8_nt_groupwise(backend="auto"), Mamba2 prefill through SSDCombined(backend="cake"), and CAKE programs for DeepSeek routing, BGMV LoRA MoE, GDN and packed KDA decode.

  • #6177 feat(mla): add Rubin MTP backend to the planned wrapper
  • #6931 feat(cake_rubin_mla_nvfp4_decode): NVFP4 MLA paged decode for Rubin (sm_107a) from cake
  • #6950 feat(moe): unfused (deterministic) finalize path for the Rubin CuTe DSL fused MoE
  • #6535 feat(moe_ep): integrate Rubin automatic tuning with autotune v2
  • #6508 feat(gemm): SM107 CuTe-DSL blockwise FP8 GEMM backend for gemm_fp8_nt_groupwise
  • #6746 feat(cake_ssd_combined): Rubin sm_107a programs for the Mamba2 SSD combined prefill
  • #6238 feat(cake_kernel_rubin): Cake backends on Rubin (sm_107a / CC 10.7) — routing, BGMV MoE, concat-MLA-K, GDN decode/prefill, packed KDA T=1

Expert-parallel MoE decode steps run faster on Blackwell, and Hopper adds MXFP4 and NVFP4 experts

NVLinkOneSidedAlltoAll adds a Lamport transport for decode-sized steps on B200, B300, GB200 and GB300 (NVLinkOneSidedConfig(lamport=...)), which lowers dispatch and combine time for DeepSeek-V3, Kimi K3 and Qwen3 MoE decode steps, measured end to end on Kimi K3 in vLLM; the backend now shares its kernels with TensorRT-LLM and scales to 256 ranks. Blackwell MegaMoE adds an opt-in GenPhase decode pipeline, and knobs="auto" tunes the Blackwell backends through autotune_v2(). On Hopper, MoEEpLayer runs FP8-activation experts with MXFP4 or NVFP4 weights, and the new flashinfer.megamoe package adds fused NVFP4 and MXFP4 expert-parallel MoE on H100 and H200 for DeepSeek-V4-Flash-class models such as DeepSeek-V4-Flash-NVFP4.

  • #7498 feat(moe_ep): Lamport transport for small steps in NVLinkOneSidedAlltoAll
  • #6047 feat(moe_ep)!: sync NVLinkOneSidedAlltoAll with TensorRT-LLM's kernels; remove the deprecated MoeAlltoAll/MnnvlMoe
  • #6565 add-new-decoding-pipeline-for-blackwell-megamoe
  • #7523 feat(moe_ep): integrate Blackwell standard and GenPhase autotuning with v2
  • #4843 feat(moe_ep): add fused Hopper MXFP4 MegaMoE with autotuning
  • #6999 feat(moe_ep): add SM90 NVFP4 x FP8 CuTe DSL MegaMoE backend
  • #6343 [SM90] Add W4A8 MegaMoE support

MoELayer adds a low-latency small-batch path from Ampere to Blackwell and MXFP8 experts for Nemotron 3.5 Super

FrostLowLatencyConfig selects an opt-in cuDNN Frost backend of the unified MoELayer for routed MoE at one to eight tokens, covering BF16, FP16, FP8 (per-tensor and DeepSeek block), MXFP8 and NVFP4 experts and weight-only NVFP4, MXFP4, MXINT4 and E4M3 formats on SM80 (BF16 and FP16 only), SM90, SM100, SM103, SM107 and SM120. cuDNN grouped-GEMM backends (CudnnGroupedGemm*Config) join the same API as a further opt-in, and the cuDNN Frost grouped-GEMM backend covers BF16, MXFP8, NVFP4 and MXFP8-activation/MXFP4-weight experts on SM120, where auto-selection admits it. The CuTe DSL fused MoE adds MXFP8 activations with MXFP8 weights for Nemotron 3.5 Super's non-gated ReLU² experts on B200 and B300, raising serving throughput at high concurrency over BF16 experts.

  • #6626 feat(moe): add unified Frost low-latency MoE backend
  • #7184 feat(moe): extend Frost low-latency to four-bit weight-only formats
  • #7162 feat(moe): add per-tensor FP8 and Hopper FMA to Frost
  • #7153 feat(moe): extend Frost low-latency FMA to FP16 and SM120
  • #5453 feat(moe): add cuDNN grouped-GEMM backends to the unified MoE API
  • #6504 Add SM120 Frost Moe Grouped Gemm Support for Swap-AB, MXFP8, NVFP4 and MXFP8×MXFP4
  • #6793 feat(moe): MXFP8 x MXFP8 mode for the CuTe-DSL fused MoE (for Nemotron models)

Hybrid Gated DeltaNet models serve with prefix caching, and Gated DeltaProduct gets decode and prefill kernels

flashinfer.gdn_paged keeps Gated DeltaNet recurrent state in a paged pool with a CSR page table, so a serving engine's prefix cache can share and resume GDN state like paged KV: chunk_gated_delta_rule_paged writes a state at every page boundary and never touches prefix pages, gated_delta_rule_decode_paged updates pages per token, and gdn_prefix_materialize reconstructs a state at a fixed boundary from the decode checkpoint ring. GDN prefill also runs on Ampere. Gated DeltaProduct, the multi-step DeltaNet recurrence, gets cake_gated_delta_product_mtp for decode and MTP decode on H100, B200 and B300 and a backend="cake" chunked varlen prefill on H100. fused_kda_decode covers GLM-5.3-Flash's 64 Kimi Delta Attention heads at TP1 to TP4 and a dimension-first conv-state layout for disaggregated serving.

  • #7785 feat(gdn): paged recurrent state for GDN prefill and decode
  • #5073 feat(gdn): prefix-cache state materialization kernel
  • #5109 feat(gdn): add SM8x prefill for the gated delta rule, fused and chunk-parallel
  • #6883 feat(cake_gdp): add Gated DeltaProduct decode backend (sm_100a, sm_103a)
  • #6942 feat(cake_gdp): Gated DeltaProduct decode on SM90 (sm_90a programs)
  • #6983 feat(cake_gdp): Gated DeltaProduct chunked varlen prefill on SM90 (sm_90a programs)
  • #7132 feat(kda): fused KDA decode for 16/64 heads and the DS conv-state layout

Token-sparse decode serves DeepSeek Sparse Attention models, and sparse MLA reads NVFP4 and FP8 caches

trtllm_batch_decode_with_kv_cache(sparse_top_k=K) runs token-sparse MQA decode on the trtllm-gen kernels, where each query token, MTP drafts included, attends only the keys its indexer selected; token_sparse_kv_indices builds the per-token page tables and group_union_masks lowers the same selection onto dense kernels. The experimental Prims-TS sparse-MLA decode wrapper serves DeepSeek Sparse Attention (DSA) decode for GLM-5.3 and DeepSeek-V3.2 from an E4M3 latent cache on B200 and B300, and adds NVFP4 and per-tensor FP8 cache recipes. Query sparse attention (QSA) gets cuDNN-backed qsa_forward and qsa_indexed_forward on B200, B300 and Rubin and an experimental qsa_sparse_paged_attention over NVFP4 paged caches on A100 and H100. MiniMax Sparse Attention ops (msa_*) for MiniMax M3 and MiniMax M3.1 Flash now run on H100.

  • #6420 [SDSA 1/6][Attention] Add token-sparse MQA decode to trtllm-gen
  • #6421 [SDSA 2/6][Attention] Add key unions and masks for token-sparse attention on dense kernels
  • #6536 feat(prims_ts): DSA (GLM-5.3 / DeepSeek-V3.2) sparse MLA decode with an E4M3 KV cache through the sparse MLA wrapper
  • #7410 feat(prims-ts): support NVFP4 and per-tensor FP8 sparse MLA caches
  • #7532 feat: add cuDNN 1.32 QSA forward APIs
  • #6804 feat(qsa_nvfp4): add NVFP4 QSA sparse paged attention
  • #7147 feat(qsa_sparse_paged_attention): backend="auto" default runs the Cake kernels on SM80 through SM90
  • #6140 SM90 MSA kernels for MiniMax M3

Sliding-window context attention reaches Blackwell and Rubin, and GLM-4.7 runs FP8 prefill on RTX PRO 6000

The TRTLLM-Gen context kernels accept a fixed sliding window and per-token VariableWindow bounds on B200, B300 and Rubin. backend="auto" routes more Blackwell shapes to cuDNN: single-token head-dim-256 paged decode in its measured CTA band, and causal BF16 paged prefill on B200 for both prefix-extension and full-sequence requests (cuDNN frontend 1.32 and cuDNN 9.27 or newer). FA2 takes a per-token, per-head FP8 KV scale for the dynamic fp8_per_token_head KV cache. On RTX PRO 6000, GLM-4.7 and GLM-4.7-Flash get FP8 prefill attention, and SM120 sparse MLA reads DeepSeek-V4.1 inline-scale KV records natively (kv_cache_format="fp8_dsv41_inline").

  • #4905 feat: integrate TRTLLM-Gen sliding-window FMHA
  • #6152 feat(cudnn): backend="auto" takes cuDNN for single-token d256 paged decode in the measured CTA band; CUDA-graph wrappers declare replay to cudnn-frontend 1.31+
  • #6231 [Attention] Reuse bounded cuDNN prefill plans and gate Blackwell paged auto
  • #7377 [Attention] Admit proven full paged prefill to Blackwell cuDNN auto
  • #5272 feat(attention): FA2 per-(token, head) FP8 KV scale
  • #6466 feat(attention): add SM12x FP8 prefill attention support for GLM-4.7 and GLM-4.7-Flash
  • #6616 feat(mla): read DeepSeek-V4.1 inline-scale KV records natively on SM120

⚠️ Upgrade notices

  • Install nvidia-cudnn-frontend>=1.32.0 and nvidia-cutlass-dsl>=4.8.0: pip install -U 'nvidia-cudnn-frontend>=1.32.0' 'nvidia-cutlass-dsl>=4.8.0'. Environments pinned to an older CuTe DSL must upgrade.
  • After upgrading flashinfer-python, run flashinfer download-kernels to replace mismatched flashinfer-cubin and flashinfer-jit-cache wheels; FlashInfer ignores wheels from another version and falls back to JIT compilation and on-demand cubin downloads.
  • Expert-parallel MoE: flashinfer.comm.MoeAlltoAll, MnnvlMoe and the flashinfer.comm.moe_a2a_* functions are removed together with the backend="trtllm" all-to-all kernels; use the flashinfer.moe_ep communication backends (NVLinkOneSidedAlltoAll, CakeAlltoAll, NVLinkTwoSidedAlltoAll, or SplitConfig(comm=...)), and rename dispatch(max_tokens_per_rank=...) to runtime_max_tokens_per_rank=....

⚠️ Upgrade notices (Experimental)

  • To use APIs under flashinfer.experimental, install from source with pip install --no-binary flashinfer-python flashinfer-python==0.7.3 or pip install git+https://github.com/flashinfer-ai/flashinfer.git@v0.7.3. The PyPI wheel carries every stable API and its JIT sources; the experimental kernel sources ship with the source install.

What's Changed

Auto-generated notes truncated to fit the GitHub release body limit. Full changelog: v0.7.2rc7...v0.7.3