---
id: pr-flashinfer-2803
repo: flashinfer-ai/flashinfer
pr: 2803
title: Refactor the routing part
author: ChristinaZ
date: '2026-04-05'
url: https://github.com/flashinfer-ai/flashinfer/pull/2803
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: c26953fb7ca68f3f3a2bfe2b3b22af268bcb0901
inclusion_reason: defer
changed_paths:
- csrc/fused_moe/trtllm_backend/routingDeepSeek/RoutingDeepSeekCommon.cuh
- csrc/fused_moe/trtllm_backend/routingDeepSeek/launchClusterKernel.cu
- csrc/fused_moe/trtllm_backend/routingDeepSeek/launchCoopKernel.cu
- csrc/fused_moe/trtllm_backend/routingDeepSeek/launchHistogramKernel.cu
- csrc/fused_moe/trtllm_backend/routingDeepSeek/launchInitExpertCounts.cu
- csrc/fused_moe/trtllm_backend/routingDeepSeek/launchMainKernel.cu
- csrc/fused_moe/trtllm_backend/routingDeepSeek/launchOffsetsKernel.cu
- csrc/fused_moe/trtllm_backend/routingRenormalize/RoutingRenormalizeCommon.cuh
- csrc/fused_moe/trtllm_backend/routingRenormalize/launchBlockKernel.cu
- csrc/fused_moe/trtllm_backend/routingRenormalize/launchClusterKernel.cu
- csrc/fused_moe/trtllm_backend/routingRenormalize/launchHistogramKernel.cu
- csrc/fused_moe/trtllm_backend/routingRenormalize/launchHistogramScoresKernel.cu
- csrc/fused_moe/trtllm_backend/routingRenormalize/launchInitExpertCounts.cu
- csrc/fused_moe/trtllm_backend/routingRenormalize/launchOffsetsKernel.cu
- csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_common.cu
- csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_custom.cu
- csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_deepseek.cu
- csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_llama4.cu
- csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_renormalize.cu
- csrc/moe_utils_binding.cu
- csrc/trtllm_fused_moe_kernel_launcher.cu
- csrc/trtllm_fused_moe_runner.cu
- flashinfer/fused_moe/core.py
- flashinfer/jit/fused_moe.py
- flashinfer/jit/moe_utils.py
- flashinfer/tllm_enums.py
- include/flashinfer/trtllm/common/cudaUtils.h
- include/flashinfer/trtllm/fused_moe/DevKernel.h
- include/flashinfer/trtllm/fused_moe/RoutingCustomPolicy.cuh
- include/flashinfer/trtllm/fused_moe/RoutingDevKernel.h
- include/flashinfer/trtllm/fused_moe/RoutingKernel.cuh
- include/flashinfer/trtllm/fused_moe/RoutingKernel.h
- include/flashinfer/trtllm/fused_moe/RoutingKernelTopK.cuh
- include/flashinfer/trtllm/fused_moe/runner.h
- tests/moe/test_trtllm_gen_fused_moe.py
- tests/moe/utils.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2803
head_ref_oid: e0372e700c96ac4e7ce4d078bc214466bcee61f6
---
# Refactor the routing part

- Repository: `flashinfer-ai/flashinfer`
- PR: [2803](https://github.com/flashinfer-ai/flashinfer/pull/2803)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `csrc/fused_moe/trtllm_backend/routingDeepSeek/RoutingDeepSeekCommon.cuh`
- `csrc/fused_moe/trtllm_backend/routingDeepSeek/launchClusterKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingDeepSeek/launchCoopKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingDeepSeek/launchHistogramKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingDeepSeek/launchInitExpertCounts.cu`
- `csrc/fused_moe/trtllm_backend/routingDeepSeek/launchMainKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingDeepSeek/launchOffsetsKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/RoutingRenormalizeCommon.cuh`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/launchBlockKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/launchClusterKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/launchHistogramKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/launchHistogramScoresKernel.cu`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/launchInitExpertCounts.cu`
- `csrc/fused_moe/trtllm_backend/routingRenormalize/launchOffsetsKernel.cu`
- `csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_common.cu`
- `csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_custom.cu`
- `csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_deepseek.cu`
- `csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_llama4.cu`
- `csrc/fused_moe/trtllm_backend/trtllm_fused_moe_routing_renormalize.cu`
- `csrc/moe_utils_binding.cu`
- `csrc/trtllm_fused_moe_kernel_launcher.cu`
- `csrc/trtllm_fused_moe_runner.cu`
- `flashinfer/fused_moe/core.py`
- `flashinfer/jit/fused_moe.py`
- `flashinfer/jit/moe_utils.py`
- `flashinfer/tllm_enums.py`
- `include/flashinfer/trtllm/common/cudaUtils.h`
- `include/flashinfer/trtllm/fused_moe/DevKernel.h`
- `include/flashinfer/trtllm/fused_moe/RoutingCustomPolicy.cuh`
- `include/flashinfer/trtllm/fused_moe/RoutingDevKernel.h`
- `include/flashinfer/trtllm/fused_moe/RoutingKernel.cuh`
- `include/flashinfer/trtllm/fused_moe/RoutingKernel.h`
- `include/flashinfer/trtllm/fused_moe/RoutingKernelTopK.cuh`
- `include/flashinfer/trtllm/fused_moe/runner.h`
- `tests/moe/test_trtllm_gen_fused_moe.py`
- `tests/moe/utils.py`

## Evidence Bundle

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