---
id: pr-flashinfer-1525
repo: flashinfer-ai/flashinfer
pr: 1525
title: Add GeGLU support to trtllm-gen NVFP4 Fused MoE Kernel
author: stslxg-nv
date: '2025-08-21'
url: https://github.com/flashinfer-ai/flashinfer/pull/1525
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- gemm
- kernel-fusion
- moe
- nvfp4
techniques:
- kernel-fusion
hardware_features:
- fp4
- nvfp4
kernel_types:
- gemm
- moe
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 0d4e26b0d8091d7f232b78286d8a03c6354042a0
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/README.md
- benchmarks/bench_trtllm_gen_fused_moe_autotuner.py
- benchmarks/routines/flashinfer_benchmark_utils.py
- benchmarks/routines/moe.py
- csrc/trtllm_batched_gemm_runner.cu
- csrc/trtllm_fused_moe_kernel_launcher.cu
- csrc/trtllm_fused_moe_routing_renormalize.cu
- csrc/trtllm_fused_moe_runner.cu
- flashinfer/__init__.py
- flashinfer/artifacts.py
- flashinfer/fused_moe/__init__.py
- flashinfer/fused_moe/core.py
- include/flashinfer/trtllm/batched_gemm/KernelRunner.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/fused_moe/RoutingKernel.h
- include/flashinfer/trtllm/fused_moe/runner.h
- tests/test_trtllm_gen_fused_moe.py
head_ref_oid: a500c27378854bcb83a479144538f601f659a923
artifact_dir: evidence/pull-bundles/flashinfer/gh-1525
---
# Add GeGLU support to trtllm-gen NVFP4 Fused MoE Kernel

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

## Changed Paths

- `benchmarks/README.md`
- `benchmarks/bench_trtllm_gen_fused_moe_autotuner.py`
- `benchmarks/routines/flashinfer_benchmark_utils.py`
- `benchmarks/routines/moe.py`
- `csrc/trtllm_batched_gemm_runner.cu`
- `csrc/trtllm_fused_moe_kernel_launcher.cu`
- `csrc/trtllm_fused_moe_routing_renormalize.cu`
- `csrc/trtllm_fused_moe_runner.cu`
- `flashinfer/__init__.py`
- `flashinfer/artifacts.py`
- `flashinfer/fused_moe/__init__.py`
- `flashinfer/fused_moe/core.py`
- `include/flashinfer/trtllm/batched_gemm/KernelRunner.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/fused_moe/RoutingKernel.h`
- `include/flashinfer/trtllm/fused_moe/runner.h`
- `tests/test_trtllm_gen_fused_moe.py`

## Evidence Bundle

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