---
id: pr-flashinfer-1212
repo: flashinfer-ai/flashinfer
pr: 1212
title: 'feat: trtllm-gen fp8 moe kernels'
author: aleozlx
date: '2025-07-10'
url: https://github.com/flashinfer-ai/flashinfer/pull/1212
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- gemm
- kernel-fusion
- moe
- tma
techniques:
- kernel-fusion
hardware_features:
- fp8
- tma
kernel_types:
- gemm
- moe
languages:
- cuda-cpp
captured_at: '2026-04-17'
status: merged
merge_sha: bd74e15cce564c36adc5a49800f338b269759961
inclusion_reason: kernel file changes
changed_paths:
- csrc/trtllm_batched_gemm_runner.cu
- csrc/trtllm_fused_moe_dev_kernel.cu
- csrc/trtllm_fused_moe_kernel_launcher.cu
- csrc/trtllm_fused_moe_routing_kernel.cu
- csrc/trtllm_fused_moe_runner.cu
- flashinfer/fused_moe.py
- include/flashinfer/trtllm/batched_gemm/KernelRunner.h
- 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/Enums.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/KernelMetaInfo.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelParams.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/CudaKernelLauncher.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/DtypeDecl.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/MmaDecl.h
- include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/SfLayoutDecl.h
- include/flashinfer/trtllm/common/cudaBf16Fallbacks.cuh
- include/flashinfer/trtllm/common/cudaBf16Wrapper.h
- include/flashinfer/trtllm/common/cudaFp8Utils.h
- include/flashinfer/trtllm/common/cudaTypeUtils.cuh
- include/flashinfer/trtllm/common/cudaUtils.h
- include/flashinfer/trtllm/fused_moe/DevKernel.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: 161de1ea9133414974ad5c509318a6dd3aa26e82
artifact_dir: evidence/pull-bundles/flashinfer/gh-1212
---
# feat: trtllm-gen fp8 moe kernels

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

## Changed Paths

- `csrc/trtllm_batched_gemm_runner.cu`
- `csrc/trtllm_fused_moe_dev_kernel.cu`
- `csrc/trtllm_fused_moe_kernel_launcher.cu`
- `csrc/trtllm_fused_moe_routing_kernel.cu`
- `csrc/trtllm_fused_moe_runner.cu`
- `flashinfer/fused_moe.py`
- `include/flashinfer/trtllm/batched_gemm/KernelRunner.h`
- `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/Enums.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/KernelMetaInfo.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/KernelParams.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/CudaKernelLauncher.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/DtypeDecl.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/MmaDecl.h`
- `include/flashinfer/trtllm/batched_gemm/trtllmGen_bmm_export/trtllm/gen/SfLayoutDecl.h`
- `include/flashinfer/trtllm/common/cudaBf16Fallbacks.cuh`
- `include/flashinfer/trtllm/common/cudaBf16Wrapper.h`
- `include/flashinfer/trtllm/common/cudaFp8Utils.h`
- `include/flashinfer/trtllm/common/cudaTypeUtils.cuh`
- `include/flashinfer/trtllm/common/cudaUtils.h`
- `include/flashinfer/trtllm/fused_moe/DevKernel.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-1212`
