---
id: pr-tensorrt-llm-9087
repo: NVIDIA/TensorRT-LLM
pr: 9087
title: '[None][fix] support topk autotuner input for expert slot per group larger than 32'
author: dongxuy04
date: '2025-11-14'
url: https://github.com/NVIDIA/TensorRT-LLM/pull/9087
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark_test
- blockScaleMoe
- moe_routing
- scheduler_autotune
techniques:
- autotuning
- tile-scheduling
hardware_features: []
kernel_types:
- moe
- scheduler
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: a370643b26f4c307f0e2e88a8ad282b5c6a69222
inclusion_reason: Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.
changed_paths:
- cpp/tensorrt_llm/kernels/trtllmGenKernels/blockScaleMoe/RoutingDeepSeek.cu
- tensorrt_llm/_torch/autotuner.py
- tensorrt_llm/_torch/custom_ops/trtllm_gen_custom_ops.py
- tests/unittest/_torch/thop/parallel/test_moe.py
artifact_dir: evidence/pull-bundles/tensorrt-llm/gh-9087
head_ref_oid: 008c6c43e05c7b706b8b425e4da5962e06015d7a
---
# [None][fix] support topk autotuner input for expert slot per group larger than 32

- Repository: `NVIDIA/TensorRT-LLM`
- PR: [9087](https://github.com/NVIDIA/TensorRT-LLM/pull/9087)
- Decision: `Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.`
- Reason: Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.

## Changed Paths

- `cpp/tensorrt_llm/kernels/trtllmGenKernels/blockScaleMoe/RoutingDeepSeek.cu`
- `tensorrt_llm/_torch/autotuner.py`
- `tensorrt_llm/_torch/custom_ops/trtllm_gen_custom_ops.py`
- `tests/unittest/_torch/thop/parallel/test_moe.py`

## Evidence Bundle

`evidence/pull-bundles/tensorrt-llm/gh-9087`
