---
id: pr-sglang-7667
repo: sgl-project/sglang
pr: 7667
title: Add fp4 quantize before all-gather for Flashinfer cutlass MoE DP (max throughput)
author: trevor-m
date: '2025-08-16'
url: https://github.com/sgl-project/sglang/pull/7667
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- fp4
- kernel-fusion
- moe
- quantization
techniques:
- kernel-fusion
hardware_features:
- fp4
kernel_types:
- attention
- moe
- quantization
languages:
- python
- triton
captured_at: '2026-04-27'
status: merged
merge_sha: eff4eb3fdd81a82ac76ae16250d06c48fd7ab03e
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/distributed/device_communicators/pynccl.py
- python/sglang/srt/distributed/device_communicators/pynccl_wrapper.py
- python/sglang/srt/distributed/parallel_state.py
- python/sglang/srt/layers/communicator.py
- python/sglang/srt/layers/dp_attention.py
- python/sglang/srt/layers/logits_processor.py
- python/sglang/srt/layers/moe/__init__.py
- python/sglang/srt/layers/moe/fused_moe_triton/layer.py
- python/sglang/srt/layers/moe/topk.py
- python/sglang/srt/layers/moe/utils.py
- python/sglang/srt/layers/quantization/modelopt_quant.py
- python/sglang/srt/managers/schedule_batch.py
- python/sglang/srt/model_executor/forward_batch_info.py
- python/sglang/srt/models/deepseek_v2.py
- python/sglang/srt/operations.py
- python/sglang/srt/server_args.py
head_ref_oid: e0fddb8079a1b1c849c8dedba978d588f0740f2a
artifact_dir: evidence/pull-bundles/sglang/gh-7667
---
# Add fp4 quantize before all-gather for Flashinfer cutlass MoE DP (max throughput)

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

## Changed Paths

- `python/sglang/srt/distributed/device_communicators/pynccl.py`
- `python/sglang/srt/distributed/device_communicators/pynccl_wrapper.py`
- `python/sglang/srt/distributed/parallel_state.py`
- `python/sglang/srt/layers/communicator.py`
- `python/sglang/srt/layers/dp_attention.py`
- `python/sglang/srt/layers/logits_processor.py`
- `python/sglang/srt/layers/moe/__init__.py`
- `python/sglang/srt/layers/moe/fused_moe_triton/layer.py`
- `python/sglang/srt/layers/moe/topk.py`
- `python/sglang/srt/layers/moe/utils.py`
- `python/sglang/srt/layers/quantization/modelopt_quant.py`
- `python/sglang/srt/managers/schedule_batch.py`
- `python/sglang/srt/model_executor/forward_batch_info.py`
- `python/sglang/srt/models/deepseek_v2.py`
- `python/sglang/srt/operations.py`
- `python/sglang/srt/server_args.py`

## Evidence Bundle

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