---
id: pr-flashinfer-2247
repo: flashinfer-ai/flashinfer
pr: 2247
title: 'feat: Support numLocalTokens=0 for moe All-to-all'
author: trevor-m
date: '2025-12-23'
url: https://github.com/flashinfer-ai/flashinfer/pull/2247
source_category: upstream-code
architectures:
- sm100
tags:
- moe
techniques: []
hardware_features: []
kernel_types:
- moe
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 25de38e50542ee45885881d11edbde67124e8960
inclusion_reason: kernel file changes
changed_paths:
- csrc/nv_internal/tensorrt_llm/kernels/communicationKernels/moeAlltoAllKernels.cu
- csrc/trtllm_moe_alltoall.cu
head_ref_oid: 05a65ce0d32b2abb60b4c3e702dda40e7c699847
artifact_dir: evidence/pull-bundles/flashinfer/gh-2247
---
# feat: Support numLocalTokens=0 for moe All-to-all

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

## Changed Paths

- `csrc/nv_internal/tensorrt_llm/kernels/communicationKernels/moeAlltoAllKernels.cu`
- `csrc/trtllm_moe_alltoall.cu`

## Evidence Bundle

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