---
id: pr-tensorrt-llm-10042
repo: NVIDIA/TensorRT-LLM
pr: 10042
title: '[None][perf] Add more optimization options for MOE CuteDSL finalized kernel'
author: sherry-1001
date: '2025-12-18'
url: https://github.com/NVIDIA/TensorRT-LLM/pull/10042
source_category: upstream-code
architectures:
- sm100
tags:
- arch_pipeline
- benchmark_test
- compiler_runtime
- cute dsl
- gemm_quant
- moe_routing
techniques:
- async-copy
- fine-grained-quantization
- kernel-fusion
- pipeline-stages
- tile-scheduling
hardware_features:
- blackwell
- tma
- tmem
kernel_types:
- compiler
- gemm
- moe
- runtime
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 4e55b8310199b28ce2cc7b7997f8a9d9c3c62662
inclusion_reason: Separate routing, permutation, top-k, and expert GEMM costs; keep tail-token and expert-layout tests attached to the idea.
changed_paths:
- tensorrt_llm/_torch/custom_ops/cute_dsl_custom_ops.py
- tensorrt_llm/_torch/cute_dsl_kernels/blackwell/blockscaled_contiguous_grouped_gemm_finalize_fusion.py
- tests/scripts/cute_dsl_kernels/run_blockscaled_contiguous_grouped_gemm_finalize_fusion.py
- tests/unittest/_torch/thop/parallel/test_cute_dsl_moe.py
artifact_dir: evidence/pull-bundles/tensorrt-llm/gh-10042
head_ref_oid: e03bd9f7a316f241e44aa1238c0d0bd3c794b12d
---
# [None][perf] Add more optimization options for MOE CuteDSL finalized kernel

- Repository: `NVIDIA/TensorRT-LLM`
- PR: [10042](https://github.com/NVIDIA/TensorRT-LLM/pull/10042)
- 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

- `tensorrt_llm/_torch/custom_ops/cute_dsl_custom_ops.py`
- `tensorrt_llm/_torch/cute_dsl_kernels/blackwell/blockscaled_contiguous_grouped_gemm_finalize_fusion.py`
- `tests/scripts/cute_dsl_kernels/run_blockscaled_contiguous_grouped_gemm_finalize_fusion.py`
- `tests/unittest/_torch/thop/parallel/test_cute_dsl_moe.py`

## Evidence Bundle

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