---
id: pr-flashinfer-1696
repo: flashinfer-ai/flashinfer
pr: 1696
title: 'Support Kimi-K2 for TRT: templatize number of experts'
author: GordonGustafson
date: '2025-09-17'
url: https://github.com/flashinfer-ai/flashinfer/pull/1696
source_category: upstream-code
architectures:
- sm100
tags:
- kernel-fusion
- moe
techniques:
- kernel-fusion
hardware_features: []
kernel_types:
- moe
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 64f2adbcaadc3d1bcbf196767db7e28b5c005122
inclusion_reason: kernel file changes
changed_paths:
- 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
- include/flashinfer/trtllm/fused_moe/DevKernel.h
- include/flashinfer/trtllm/fused_moe/RoutingKernel.h
- include/flashinfer/trtllm/fused_moe/RoutingKernelTopK.cuh
head_ref_oid: d2b092b5e5054f6a2d1c553305e2ad9a2338f658
artifact_dir: evidence/pull-bundles/flashinfer/gh-1696
---
# Support Kimi-K2 for TRT: templatize number of experts

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

## Changed Paths

- `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`
- `include/flashinfer/trtllm/fused_moe/DevKernel.h`
- `include/flashinfer/trtllm/fused_moe/RoutingKernel.h`
- `include/flashinfer/trtllm/fused_moe/RoutingKernelTopK.cuh`

## Evidence Bundle

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