---
id: pr-sglang-6970
repo: sgl-project/sglang
pr: 6970
title: Fuse routed scaling factor in deepseek
author: BBuf
date: '2025-06-08'
url: https://github.com/sgl-project/sglang/pull/6970
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- kernel-fusion
- moe
- quantization
techniques:
- kernel-fusion
hardware_features:
- fp8
kernel_types:
- moe
- quantization
languages:
- python
- triton
captured_at: '2026-04-27'
status: merged
merge_sha: 3712abfaf92083bbfdd78848997a1daa90ab9145
inclusion_reason: kernel file changes
changed_paths:
- benchmark/kernels/fused_moe_triton/benchmark_sum_scale.py
- 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/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/models/deepseek_v2.py
head_ref_oid: 9e1432bada947bfca0c34b061d2577229631e264
artifact_dir: evidence/pull-bundles/sglang/gh-6970
---
# Fuse routed scaling factor in deepseek

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

## Changed Paths

- `benchmark/kernels/fused_moe_triton/benchmark_sum_scale.py`
- `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/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/models/deepseek_v2.py`

## Evidence Bundle

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