---
id: pr-sglang-7762
repo: sgl-project/sglang
pr: 7762
title: 'feat: support DeepSeek-R1-W4AFP8 model with ep-moe mode'
author: yangsijia-celina
date: '2025-07-07'
url: https://github.com/sgl-project/sglang/pull/7762
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- moe
- quantization
techniques: []
hardware_features:
- fp8
kernel_types:
- moe
- quantization
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: cb9d91ea8a710f45a587ef062aa3007dedd6c1cd
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/configs/model_config.py
- python/sglang/srt/layers/moe/cutlass_w4a8_moe.py
- python/sglang/srt/layers/moe/ep_moe/kernels.py
- python/sglang/srt/layers/moe/ep_moe/layer.py
- python/sglang/srt/layers/quantization/__init__.py
- python/sglang/srt/layers/quantization/fp8.py
- python/sglang/srt/layers/quantization/w4afp8.py
- python/sglang/srt/models/deepseek_v2.py
- python/sglang/srt/server_args.py
- python/sglang/test/test_cutlass_w4a8_moe.py
head_ref_oid: c3ee838e5fac72e7ddb0f259b3a59e08d0b389eb
artifact_dir: evidence/pull-bundles/sglang/gh-7762
---
# feat: support DeepSeek-R1-W4AFP8 model with ep-moe mode

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

## Changed Paths

- `python/sglang/srt/configs/model_config.py`
- `python/sglang/srt/layers/moe/cutlass_w4a8_moe.py`
- `python/sglang/srt/layers/moe/ep_moe/kernels.py`
- `python/sglang/srt/layers/moe/ep_moe/layer.py`
- `python/sglang/srt/layers/quantization/__init__.py`
- `python/sglang/srt/layers/quantization/fp8.py`
- `python/sglang/srt/layers/quantization/w4afp8.py`
- `python/sglang/srt/models/deepseek_v2.py`
- `python/sglang/srt/server_args.py`
- `python/sglang/test/test_cutlass_w4a8_moe.py`

## Evidence Bundle

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