mirror of
https://github.com/kvcache-ai/sglang.git
synced 2026-11-05 01:07:39 +00:00
[PR #72] [MERGED] mxfp4 marlin kernel layerwise prefill #71
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/sglang#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/sglang/pull/72
Author: @yyj6666667
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @yyj6666667
Base:
main← Head:codex/mxfp4-marlin-layerwise-official📝 Commits (2)
8b741b2feat(marlin): add DeepSeek V4 MXFP4 MoE backend180c125feat(kt): pipeline MXFP4 layerwise prefill📊 Changes
12 files changed (+3484 additions, -162 deletions)
View changed files
📝
python/sglang/jit_kernel/csrc/gemm/marlin/gptq_marlin_repack.cuh(+93 -5)📝
python/sglang/jit_kernel/csrc/gemm/marlin_moe/marlin_template.h(+46 -61)📝
python/sglang/jit_kernel/gptq_marlin_repack.py(+46 -2)📝
python/sglang/jit_kernel/moe_wna16_marlin.py(+36 -9)➕
python/sglang/jit_kernel/tests/test_v4_marlin_moe.py(+154 -0)📝
python/sglang/srt/layers/moe/kt_ep_wrapper.py(+1070 -48)📝
python/sglang/srt/layers/quantization/mxfp4_deepseek.py(+146 -37)➕
python/sglang/srt/layers/quantization/v4_marlin_moe.py(+501 -0)📝
python/sglang/srt/model_executor/model_runner.py(+22 -0)➕
test/manual/quant/bench_v4_mxfp4_marlin.py(+104 -0)➕
test/manual/quant/run_v4_mxfp4_layerwise_e2e.py(+201 -0)➕
test/unit/test_mxfp4_layerwise_prefill.py(+1065 -0)📄 Description
GSM8K 200题 准确率96.5%, 与官方保持一致。
单卡layerwise prefill 800tps+, 已经更新到官网
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.