Repository navigation
[AMD][MI35X] DSv4 SGLang MTP agentic: 1028 image, monokernel at c1 / [AMD][MI35X] DSv4 SGLang MTP agentic:1028 镜像,c1 启用 monokernel - #4596
Conversation
There was a problem hiding this comment.
I reviewed this PR and didn't find any bugs. The changed paths have CODEOWNERS (the AMD config and recipe owners, plus core for the changelog), and the run still needs an accepted /use <run_id>, so a human look would still be worthwhile.
What was reviewed:
- The image bump for
dsv4-fp4-mi355x-sglang-agentic-mtpinconfigs/amd-master.yaml. The newrocm10tag uses the same naming as another MI355X sglang entry already in that file. - The
enable-amd-monokernel: trueline, which is added only tooverride_tp8_c1and sits alongside that override's other sglang serving flags. - The new
perf-changelog.yamlblock, which is appended at the tail with existing bytes untouched and has one entry for the affected key. Itspr-linkis still thepull/XXXplaceholder, as several earlier entries also are.
Extended reasoning...
This changes three YAML config lines for one benchmark key: a container image bump (rocm720 to rocm10), a new sglang monokernel flag at TP8/C1, and an appended perf-changelog entry. It touches no auth, injection or data-exposure surface. I deferred instead of approving because CODEOWNERS covers amd-master.yaml, the mi355x-* srt-slurm recipes and the changelog. The changelog entry also triggers result collection, which needs a human-accepted run before merge.
This review covers commit 6757fb8, which is no longer the latest commit on this pull request; later commits are not covered by it.
This comment was marked as outdated.
This comment was marked as outdated.
|
/reuse-sweep-run 40671566429 |
…m the diff - Image: lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019 -> v0.5.22-rocm720-mi35x-20261028 (SGLang 5d9c956f8e -> e0df901d68, AITER 2bb549102b -> 285579b621; ROCm 7.2 and torch 2.9.1 unchanged). - Points: unchanged (TP8 c1/4/16 no offload; c32/48 HiCache; c128 DP-attention HiCache; c128/256/384 DP-attention EP8 MegaMoE HiCache). - TP8 c1 (max-running-requests 2, decode graphs up to batch 2): add --enable-amd-monokernel. The sgl-amd-mono DeepSeek-V4 TP8 spec runs a whole target layer in one launch for steps of up to 8 rows, so the batch-1 DSpark verify (7 tokens) uses it and the batch-2 verify (14 rows) and prefill keep SGLang's standard forward. Other points are unchanged. - Upstream SGLang: mono-kernel specs are registered by architecture and model type (sgl-project/sglang#46036) on the new plugin kernel backend (#45389); the DSpark draft MoE is kept out of the target's expert placement (#45299); attn_sink is refreshed after weight loading (#41630); the draft and final mHC streams are combined from BF16 without an FP32 copy (#45964, #45940). - Draft model data type: no change. The DSpark draft (mtp.0-2 in DeepSeek-V4-Pro-0813) runs as shipped, like the target layers: FP8 E4M3 attention, shared-expert and main_proj weights with 128x128 UE8M0 block scales, MXFP4 routed experts, BF16 norms, router gate and Markov head, and wo_a dequantized to BF16 at load. Its KV stays a BF16 ring under SGLANG_DSV4_UNIFIED_KV_FP8, and no sgl-amd-mono spec covers the DeepSeek-V4 DSpark draft, so the draft keeps SGLang's forward. - 镜像:lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261019 -> v0.5.22-rocm720-mi35x-20261028(SGLang 5d9c956f8e -> e0df901d68,AITER 2bb549102b -> 285579b621;ROCm 7.2 与 torch 2.9.1 不变)。 - 测试点:不变(TP8 c1/4/16 无卸载;c32/48 HiCache;c128 DP-attention HiCache;c128/256/384 DP-attention EP8 MegaMoE HiCache)。 - TP8 c1(max-running-requests 2,decode 图最大 batch 2):新增 --enable-amd-monokernel。sgl-amd-mono 的 DeepSeek-V4 TP8 spec 对不超过 8 行的步骤用一次 launch 跑完整个目标层,因此 batch 1 的 DSpark verify(7 个 token)走 monokernel,batch 2 的 verify(14 行)和 prefill 仍走 SGLang 标准 forward。其他测试点不变。 - 上游 SGLang:mono-kernel spec 改为按架构和 model type 注册(sgl-project/sglang#46036),基于新的插件 kernel 后端(#45389);DSpark draft 的 MoE 不再参与目标模型的专家放置(#45299);加载权重后刷新 attn_sink(#41630);draft 与最终 mHC 流直接从 BF16 合并,不再拷贝 FP32(#45964、#45940)。 - Draft 模型数据类型:不变。DSpark draft(DeepSeek-V4-Pro-0813 中的 mtp.0-2)按出厂精度运行,与目标层一致:注意力、共享专家和 main_proj 权重为 FP8 E4M3(128x128 UE8M0 块缩放),路由专家为 MXFP4,norm、路由门控和 Markov head 为 BF16,wo_a 在加载时反量化为 BF16。在 SGLANG_DSV4_UNIFIED_KV_FP8 下其 KV 仍为 BF16 环形缓存;sgl-amd-mono 没有覆盖 DeepSeek-V4 DSpark draft 的 spec,因此 draft 仍走 SGLang forward。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Draft data types: no change. The DSpark draft (
At SGLang
中文Draft 数据类型:不变。 DSpark draft(
在 SGLang
|
There was a problem hiding this comment.
As a PR reviewer and CODEOWNER, I have reviewed this and have:
- Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
- Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
- Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this.
- Verified that this PR passes evals. Please link to GitHub Action workflow that shows this.
- Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
- Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that
SGLANG_NVFP4_CKPT_FP8_NEXTN_MOEis not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison. - For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
- Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
- Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
- Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting
ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md. - For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
- If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
- For official InferenceX (non-preview), verified that established models use upstream engine images built from
master(or the equivalent default development branch), with new models transitioning within a reasonable time after release. See MODELS.md. - If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
- Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
- I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
- Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/
<PR_NUMBER>.md— named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section. - If this PR uses
append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it. - If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
- Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details.
Additional detail section:
- insert any additional info here
- recipe at https://lmsysorg.mintlify.app/cookbook/autoregressive/DeepSeek/DeepSeek-V4#hw=mi355x&variant=pro&quant=fp4&strategy=high-throughput&nodes=single&pdMode=prefill
- #4596
Signed: seungrokj
❌❌❌ REJECTED ❌❌❌@seungrokj Two blockers remain at ❌ Check 2 (Evals pass): FAIL — No eval exercised the changed kernel path. The recipe sets ❌ Check 3 (Upstream recipe): FAIL — The additional detail section links only a Passed and not applicable checks✅ Check 0 (CODEOWNER): PASS — @seungrokj is a named owner of ✅ Check 1 (Sweep on in-PR commit): PASS — All 9 ✅ Check 4 (Reuse command): PASS — COLLABORATOR @1am9trash posted ✅ Check 5 (Checklist template): PASS — All 20 current-template items are present and checked. ✅ Check 6 (Upstream images): PASS — The image is upstream ✅ Check 7 (Deprecated models): PASS — ✅ Check 8 (No arch hacks): PASS — There are no architecture overrides or new accuracy-trading levers; the monokernel fuses the same layer computation. ✅ Check 9 (Chat template): PASS — AgentX replays chat traces against the SGLang server using the model's built-in template, with no chat-template override. ✅ Check 10 (No engine patches): PASS — The recipe has no setup script, patch, overlay or wheel install, and no reachable runtime patching of the serving stack. ✅ Check 11 (Golden AL): PASS — The harness injects ➖ Check 12 (Append-only): N/A — The new changelog entry has no ✅ Check 13 (Draft precision): PASS — The DSpark draft ( ✅ Check 14 (Pareto coverage): PASS — The curve dsv4 / agentic-coding / mi355x_sglang / fp4 / p90_e2el has 6 of 9 measured points on the frontier (c16, c32, c48, c128 EP8, c256, c384). This comes from the ✅ Check 15 (PR description): PASS — The PR body's claims match the pinned code and evidence: the image and SGLang revisions, the c1-only monokernel scope, the draft data types, sweep run 40671566429 on in-PR commit ➖ Check 16 (NVIDIA overview): N/A — Only AMD MI355X configurations are affected. ➖ Check 17 (Metrics publication): N/A — This is direct SGLang serving, not Dynamo TRT-LLM. ✅ Check 18 (Recipe/image/sweep consistency): PASS — The config generates with no errors, and master TP/EP/DPA and concurrency agree with the recipe overrides. The 1028 image resolves, srt-slurm is pinned to a commit, and the changelog correctly describes the CLI flag, the image bump and the unchanged draft. No point was removed: all 9 are re-tuned, with tput/GPU deltas from -3.9% (c256) to +6.5% (c1). Assessed commit: |
|
@1am9trash can you share the recipe link when it is ready ? |
|
Admin override authorized by Oren in the AMD engineering Slack thread: merge this PR without an additional c1 monokernel eval; recipe documentation fixes may follow after merge. Authorization: https://semianalysis.slack.com/archives/C09AKPG7N31/p1793312952519059 and https://semianalysis.slack.com/archives/C09AKPG7N31/p1793312960923539 . Executing the explicit request to merge both #4526 and #4596 with admin override. |
|
Ingest report — ✅ Results ingested into the Ingest workflow · Merge Ingest run · Benchmark source run
benchmarkFiles 9, rawBenchmarkRows 9, coveredByPerJobFiles 0, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 6595, gpuMetricSamplesNew 377112, powerPublicationPoints 9, changelogEntriesWritten 1 Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun. 中文Ingest 报告 — ✅ 结果已写入 上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。 |
Resolve the perf-changelog conflict with main's new entries (#4647, #4627, #4596, #4526, #4664) using prepare_perf_changelog_merge resolve-conflict: main's bytes are kept and this PR's entry is re-appended unchanged. The recipe, the master entry and the changelog entry are byte-identical to the swept commit dd7a1f1 (run 40782441830, pinned by /reuse-sweep-run). 用 prepare_perf_changelog_merge resolve-conflict 解决与 main 新条目 (#4647、#4627、#4596、#4526、#4664)的 perf-changelog 冲突:保留 main 的原始字节,本 PR 的条目原样追加在末尾。recipe、master 条目和 changelog 条目与 sweep 所用提交 dd7a1f1(run 40782441830,已由 /reuse-sweep-run 固定)逐字节一致。 [skip-sweep] Co-Authored-By: Claude Opus 5.5 <[email protected]>
- perf-changelog: resolve the conflict with main's new entries (#4524, #4599, #4647, #4627, #4596, #4526, #4664) using prepare_perf_changelog_merge resolve-conflict; main's bytes are kept and this PR's entry is re-appended unchanged. - amd-master.yaml: #4664 deleted dsv4-fp4-mi355x-sglang-agentic-mtp right after this PR's glm5.2-fp4-mi355x-atom-disagg-agentic-mtp block. Keep the GLM-5.2 block byte-for-byte and take main's deletion. - main's srt-slurm pin moves to v2.65.2 (#4601); 573 and 604-atom-tp-from-pp.patch still apply in order on 59920ea1. All six files this PR changes are byte-identical to the previous head 1a2707f. - perf-changelog:用 prepare_perf_changelog_merge resolve-conflict 解决与 main 新条目(#4524、#4599、#4647、#4627、#4596、#4526、#4664)的冲突; 保留 main 的原始字节,本 PR 的条目原样追加在末尾。 - amd-master.yaml:#4664 删除了紧跟在本 PR 的 glm5.2-fp4-mi355x-atom-disagg-agentic-mtp 之后的 dsv4-fp4-mi355x-sglang-agentic-mtp。GLM-5.2 条目逐字节保留,同时采纳 main 的删除。 - main 的 srt-slurm 固定版本升到 v2.65.2(#4601);573 和 604-atom-tp-from-pp.patch 仍能在 59920ea1 上按顺序打上。 本 PR 修改的六个文件与上一个 head 1a2707f 逐字节一致。 [skip-sweep] Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The recipe is merged before approval ci check. |

Summary:
lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261028(from-20261019; SGLang5d9c956f8e→e0df901d68, AITER2bb549102b→285579b621).--enable-amd-monokernelat TP8 concurrency 1. The sgl-amd-mono DeepSeek-V4 TP8 spec serves steps of up to 8 rows, so the batch-1 DSpark verify (7 tokens) runs one launch per target layer; the batch-2 verify (14 rows) and prefill keep SGLang's standard forward. Other points are unchanged.mtp.0-2) runs as shipped (FP8 E4M3 block-scaled attention/shared experts, MXFP4 routed experts, BF16 norms/gate/Markov head, BF16 KV ring) and keeps SGLang's forward, because no sgl-amd-mono spec covers the DeepSeek-V4 DSpark draft. Evidence in the PR comment.Sweep-run: https://github.com/SemiAnalysisAI/InferenceX/actions/runs/40671566429?pr=4596
Cookbook: sgl-project/sglang#47006
中文
摘要:
lmsysorg/sglang-rocm:v0.5.22-rocm720-mi35x-20261028(原为-20261019;SGLang5d9c956f8e→e0df901d68,AITER2bb549102b→285579b621)。--enable-amd-monokernel。sgl-amd-mono 的 DeepSeek-V4 TP8 spec 处理不超过 8 行的步骤,因此 batch 1 的 DSpark verify(7 个 token)每个目标层只需一次 launch;batch 2 的 verify(14 行)和 prefill 仍走 SGLang 标准 forward。其他测试点不变。mtp.0-2)按出厂精度运行(注意力/共享专家为块缩放 FP8 E4M3,路由专家为 MXFP4,norm/门控/Markov head 为 BF16,KV 为 BF16 环形缓存),并仍走 SGLang forward,因为 sgl-amd-mono 没有覆盖 DeepSeek-V4 DSpark draft 的 spec。证据见 PR 评论。Sweep 运行:https://github.com/SemiAnalysisAI/InferenceX/actions/runs/40671566429?pr=4596
Cookbook:sgl-project/sglang#47006
AI model disclosure
claude-opus-5-5(Claude Code).