---
id: pr-sglang-4530
repo: sgl-project/sglang
pr: 4530
title: Add deepseek style fused moe group gate selection kernel
author: qingquansong
date: '2025-03-29'
url: https://github.com/sgl-project/sglang/pull/4530
source_category: upstream-code
architectures:
- sm100
tags:
- kernel-fusion
- moe
techniques:
- kernel-fusion
hardware_features: []
kernel_types:
- moe
languages:
- cuda-cpp
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 45dcfc2e762d3ff197de9e84945298a6eeb134a3
inclusion_reason: kernel file changes
changed_paths:
- sgl-kernel/CMakeLists.txt
- sgl-kernel/benchmark/bench_moe_fused_gate.py
- sgl-kernel/csrc/moe/moe_fused_gate.cu
- sgl-kernel/csrc/torch_extension.cc
- sgl-kernel/include/sgl_kernel_ops.h
- sgl-kernel/python/sgl_kernel/__init__.py
- sgl-kernel/python/sgl_kernel/moe.py
- sgl-kernel/setup.py
- sgl-kernel/tests/test_moe_fused_gate.py
head_ref_oid: a72c405bd069287ea630b920db68f84d3eaf670d
artifact_dir: evidence/pull-bundles/sglang/gh-4530
---
# Add deepseek style fused moe group gate selection kernel

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

## Changed Paths

- `sgl-kernel/CMakeLists.txt`
- `sgl-kernel/benchmark/bench_moe_fused_gate.py`
- `sgl-kernel/csrc/moe/moe_fused_gate.cu`
- `sgl-kernel/csrc/torch_extension.cc`
- `sgl-kernel/include/sgl_kernel_ops.h`
- `sgl-kernel/python/sgl_kernel/__init__.py`
- `sgl-kernel/python/sgl_kernel/moe.py`
- `sgl-kernel/setup.py`
- `sgl-kernel/tests/test_moe_fused_gate.py`

## Evidence Bundle

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