---
id: pr-sglang-4643
repo: sgl-project/sglang
pr: 4643
title: Optimize Permute Kernel in DeepEP
author: xutizhou
date: '2025-03-22'
url: https://github.com/sgl-project/sglang/pull/4643
source_category: upstream-code
architectures:
- sm100
tags:
- moe
techniques: []
hardware_features: []
kernel_types:
- moe
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: c2bd094d6eb621a51a19d6595ddb3ddcc9030970
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/moe/ep_moe/kernels.py
- python/sglang/srt/layers/moe/ep_moe/layer.py
- python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
- python/sglang/srt/models/deepseek_v2.py
head_ref_oid: 4b39584df862ffc54d30432d6384dbb31af5473c
artifact_dir: evidence/pull-bundles/sglang/gh-4643
---
# Optimize Permute Kernel in DeepEP

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

## Changed Paths

- `python/sglang/srt/layers/moe/ep_moe/kernels.py`
- `python/sglang/srt/layers/moe/ep_moe/layer.py`
- `python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py`
- `python/sglang/srt/models/deepseek_v2.py`

## Evidence Bundle

`evidence/pull-bundles/sglang/gh-4643`
