---
id: pr-vllm-37695
repo: vllm-project/vllm
pr: 37695
title: '[Perf] Use torch compile to fuse pack topk in trtllm moe'
author: wzhao18
date: '2026-03-27'
url: https://github.com/vllm-project/vllm/pull/37695
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- fp8
- kernel-fusion
- moe
- nvfp4
techniques:
- kernel-fusion
hardware_features:
- fp4
- fp8
- nvfp4
kernel_types:
- moe
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: b69bf2f0b170ac5b43f72f4dd4139c5388fa5de8
inclusion_reason: kernel file changes
changed_paths:
- vllm/model_executor/layers/fused_moe/experts/trtllm_fp8_moe.py
- vllm/model_executor/layers/fused_moe/experts/trtllm_nvfp4_moe.py
- vllm/model_executor/layers/fused_moe/utils.py
head_ref_oid: 3b5fd4f3144514786abf2ea25bff7b58132c69ab
artifact_dir: evidence/pull-bundles/vllm/gh-37695
---
# [Perf] Use torch compile to fuse pack topk in trtllm moe

- Repository: `vllm-project/vllm`
- PR: [37695](https://github.com/vllm-project/vllm/pull/37695)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `vllm/model_executor/layers/fused_moe/experts/trtllm_fp8_moe.py`
- `vllm/model_executor/layers/fused_moe/experts/trtllm_nvfp4_moe.py`
- `vllm/model_executor/layers/fused_moe/utils.py`

## Evidence Bundle

`evidence/pull-bundles/vllm/gh-37695`
