---
id: pr-flashinfer-1955
repo: flashinfer-ai/flashinfer
pr: 1955
title: Update trtllm-gen fused moe routing kernel and add more kernels
author: jiahanc
date: '2025-11-06'
url: https://github.com/flashinfer-ai/flashinfer/pull/1955
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
- kernel-fusion
- moe
- tma
techniques:
- kernel-fusion
hardware_features:
- tma
kernel_types:
- gemm
- moe
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: b211926710c1ee8024b8383257b6b9ea71a5caa2
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/bench_trtllm_gen_fused_moe_autotuner.py
- csrc/trtllm_batched_gemm_runner.cu
- csrc/trtllm_fused_moe_kernel_launcher.cu
- csrc/trtllm_fused_moe_routing_deepseek.cu
- csrc/trtllm_fused_moe_routing_llama4.cu
- csrc/trtllm_fused_moe_routing_renormalize.cu
- csrc/trtllm_fused_moe_runner.cu
- flashinfer/artifacts.py
- flashinfer/autotuner.py
- flashinfer/fused_moe/core.py
- flashinfer/jit/fused_moe.py
- flashinfer/jit/gemm/core.py
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/BatchedGemmEnums.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/BatchedGemmInterface.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/BatchedGemmOptions.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/GemmGatedActOptions.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/GemmOptions.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelParams.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelParamsDecl.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelTraits.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/TmaDescriptor.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/CommonUtils.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/SfLayoutDecl.h
- include/flashinfer/trtllm/fused_moe/DevKernel.h
- include/flashinfer/trtllm/fused_moe/RoutingKernel.cuh
- include/flashinfer/trtllm/fused_moe/RoutingKernel.h
- tests/moe/test_trtllm_gen_fused_moe.py
head_ref_oid: 67a5ffbb52159ea40afa7530bc01d7af85e92c87
artifact_dir: evidence/pull-bundles/flashinfer/gh-1955
---
# Update trtllm-gen fused moe routing kernel and add more kernels

- Repository: `flashinfer-ai/flashinfer`
- PR: [1955](https://github.com/flashinfer-ai/flashinfer/pull/1955)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `benchmarks/bench_trtllm_gen_fused_moe_autotuner.py`
- `csrc/trtllm_batched_gemm_runner.cu`
- `csrc/trtllm_fused_moe_kernel_launcher.cu`
- `csrc/trtllm_fused_moe_routing_deepseek.cu`
- `csrc/trtllm_fused_moe_routing_llama4.cu`
- `csrc/trtllm_fused_moe_routing_renormalize.cu`
- `csrc/trtllm_fused_moe_runner.cu`
- `flashinfer/artifacts.py`
- `flashinfer/autotuner.py`
- `flashinfer/fused_moe/core.py`
- `flashinfer/jit/fused_moe.py`
- `flashinfer/jit/gemm/core.py`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/BatchedGemmEnums.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/BatchedGemmInterface.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/BatchedGemmOptions.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/GemmGatedActOptions.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/GemmOptions.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelParams.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelParamsDecl.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelTraits.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/TmaDescriptor.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/CommonUtils.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/SfLayoutDecl.h`
- `include/flashinfer/trtllm/fused_moe/DevKernel.h`
- `include/flashinfer/trtllm/fused_moe/RoutingKernel.cuh`
- `include/flashinfer/trtllm/fused_moe/RoutingKernel.h`
- `tests/moe/test_trtllm_gen_fused_moe.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-1955`
