---
id: pr-sglang-6736
repo: sgl-project/sglang
pr: 6736
title: Set `num_fused_shared_experts` as `num_shared_experts` when shared_experts fusion is not disabled
author: ch-wan
date: '2025-06-04'
url: https://github.com/sgl-project/sglang/pull/6736
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- kernel-fusion
- moe
- quantization
techniques:
- kernel-fusion
hardware_features:
- fp8
kernel_types:
- moe
- quantization
languages:
- cuda-cpp
- python
- triton
captured_at: '2026-04-27'
status: merged
merge_sha: 81964328b7ed9f12bcc5ce171fe87795fd202de3
inclusion_reason: kernel file changes
changed_paths:
- benchmark/kernels/fused_moe_triton/tuning_fused_moe_triton.py
- python/sglang/srt/layers/moe/ep_moe/layer.py
- python/sglang/srt/layers/moe/fused_moe_native.py
- python/sglang/srt/layers/moe/fused_moe_triton/configs/E=257,N=128,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128, 128].json
- python/sglang/srt/layers/moe/fused_moe_triton/configs/E=257,N=256,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128, 128].json
- python/sglang/srt/layers/moe/fused_moe_triton/fused_moe.py
- python/sglang/srt/layers/moe/fused_moe_triton/layer.py
- python/sglang/srt/layers/moe/topk.py
- python/sglang/srt/layers/quantization/__init__.py
- python/sglang/srt/layers/quantization/blockwise_int8.py
- python/sglang/srt/layers/quantization/compressed_tensors/compressed_tensors_moe.py
- python/sglang/srt/layers/quantization/fp8.py
- python/sglang/srt/layers/quantization/moe_wna16.py
- python/sglang/srt/layers/quantization/w8a8_fp8.py
- python/sglang/srt/layers/quantization/w8a8_int8.py
- python/sglang/srt/managers/schedule_batch.py
- python/sglang/srt/model_executor/model_runner.py
- python/sglang/srt/models/deepseek_v2.py
- python/sglang/srt/server_args.py
- sgl-kernel/csrc/moe/moe_fused_gate.cu
- sgl-kernel/python/sgl_kernel/moe.py
- sgl-kernel/tests/test_moe_fused_gate.py
head_ref_oid: 657829edbdb6e496ed12b4c340fd74de8668e272
artifact_dir: evidence/pull-bundles/sglang/gh-6736
---
# Set `num_fused_shared_experts` as `num_shared_experts` when shared_experts fusion is not disabled

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

## Changed Paths

- `benchmark/kernels/fused_moe_triton/tuning_fused_moe_triton.py`
- `python/sglang/srt/layers/moe/ep_moe/layer.py`
- `python/sglang/srt/layers/moe/fused_moe_native.py`
- `python/sglang/srt/layers/moe/fused_moe_triton/configs/E=257,N=128,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128, 128].json`
- `python/sglang/srt/layers/moe/fused_moe_triton/configs/E=257,N=256,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128, 128].json`
- `python/sglang/srt/layers/moe/fused_moe_triton/fused_moe.py`
- `python/sglang/srt/layers/moe/fused_moe_triton/layer.py`
- `python/sglang/srt/layers/moe/topk.py`
- `python/sglang/srt/layers/quantization/__init__.py`
- `python/sglang/srt/layers/quantization/blockwise_int8.py`
- `python/sglang/srt/layers/quantization/compressed_tensors/compressed_tensors_moe.py`
- `python/sglang/srt/layers/quantization/fp8.py`
- `python/sglang/srt/layers/quantization/moe_wna16.py`
- `python/sglang/srt/layers/quantization/w8a8_fp8.py`
- `python/sglang/srt/layers/quantization/w8a8_int8.py`
- `python/sglang/srt/managers/schedule_batch.py`
- `python/sglang/srt/model_executor/model_runner.py`
- `python/sglang/srt/models/deepseek_v2.py`
- `python/sglang/srt/server_args.py`
- `sgl-kernel/csrc/moe/moe_fused_gate.cu`
- `sgl-kernel/python/sgl_kernel/moe.py`
- `sgl-kernel/tests/test_moe_fused_gate.py`

## Evidence Bundle

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