Skip to content

[AMD][MI35X] 0907 DSV4 sglang mtp 8k1k - #2910

Merged
Oseltamivir merged 5 commits into
mainfrom
thomas/dsv4-mi355x-sglang-8k1k-0909
Sep 9, 2026
Merged

Oseltamivir merged 5 commits into
mainfrom
thomas/dsv4-mi355x-sglang-8k1k-0909

Conversation

@1am9trash

@1am9trash 1am9trash commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

cc @chunfangamd, @HaiShaw

Due to the 8k1k deprecation, this is a update from v0.5.14 image to v0.5.19 image.

Summary:

  • Bump image to lmsysorg/sglang-rocm:v0.5.19-rocm720-mi35x-20260907.
  • Replace the unconditional --disable-shared-experts-fusion with --enforce-shared-experts-fusion, and move the disable to the EP > 1 branch only.
  • Add TORCH_BLAS_PREFER_HIPBLASLT=1 and SGLANG_OPT_USE_AITER_BATCHED_GEMM=1.
  • Set GPU_MAX_HW_QUEUES=5 on the DP-attention path, matching the spec-none sibling dsv4_fp4_mi355x_sglang.sh.
  • Add --enable-deepseek-v4-fp4-indexer.

Note

Low Risk
Benchmark launch script, image pin, and search-space tweaks only; no application auth or data-path changes.

Overview
Updates the DSv4 FP4 MI355X SGLang MTP 8K/1K benchmark to the v0.5.19-rocm720-mi35x-20260907 image and refreshes launch flags/env to match the non-MTP sibling recipe.

dsv4_fp4_mi355x_sglang_mtp.sh now enables shared-experts fusion by default (--enforce-shared-experts-fusion), only disabling it when EP_SIZE > 1, adds hipBLASLt/aiter batched GEMM env toggles, turns on --enable-deepseek-v4-fp4-indexer, and on the DP-attention path sets GPU_MAX_HW_QUEUES=5 and SGLANG_PREFILL_DELAYER_MAX_PREFILL_BS_WINDOW_SIZE=1.

configs/amd-master.yaml pins the new image for dsv4-fp4-mi355x-sglang-mtp and changes the TP8 no-DP-attention sweep from a continuous range to conc-list: [1, 2, 4, 16, 32] (dropping concurrency 8). perf-changelog.yaml records these changes for PR #2910.

Reviewed by Cursor Bugbot for commit 35daccd. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for the contribution! Please reach out to respective companies' CODEOWNER to fill in the latest PR_REVIEW_CHECKLIST.md before pinging core maintainer on Slack for review. In order for the signoff PR check bot to trigger, you must follow the PR_REVIEW_CHECKLIST.md template correctly, including the phrase As a PR reviewer and CODEOWNER, I have reviewed this and have.

For PR verification, add the full-sweep-fail-fast label (strongly recommended) to this PR — the benchmark sweep only runs on labeled PRs. Use full-sweep-enabled only if you need matrix jobs to keep running past a failure.

PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. See GitHub's docs on re-running failed jobs


感谢你的贡献!请联系相应公司的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,然后再在 Slack 上联系核心维护者进行审阅。为了触发 signoff PR 检查机器人,你必须正确遵循 PR_REVIEW_CHECKLIST.md 模板,包括保留英文语句 As a PR reviewer and CODEOWNER, I have reviewed this and have

如需进行 PR 验证,请为此 PR 添加 full-sweep-fail-fast 标签(强烈推荐)— 基准测试 sweep 仅在带有标签的 PR 上运行。仅当需要矩阵任务在失败后继续运行时才使用 full-sweep-enabled

PR 作者有责任确保合并后所有 GitHub Action 任务完全通过。 很多时候失败只是偶发抖动(flake),重新运行失败的任务即可解决。参见 GitHub 关于重新运行失败任务的文档

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 1am9trash — I reviewed this PR and didn't find any bugs. Because it touches a CODEOWNER-owned config file (configs/amd-master.yaml) and an AMD MI355X production recipe, a human/CODEOWNER look is still worthwhile per the repo's review process.

What was reviewed:

  • The image bump in configs/amd-master.yaml against the dated-nightly tag pattern other sglang-rocm entries follow
  • The SHARED_EXPERTS_ARGS rework (default enforce-fusion, disable only when EP_SIZE>1) and the two new exported env vars in dsv4_fp4_mi355x_sglang_mtp.sh
  • GPU_MAX_HW_QUEUES=5 placement on the DP-attention branch, confirmed to match the spec-none sibling dsv4_fp4_mi355x_sglang.sh
  • The perf-changelog.yaml diff, confirmed to only append at the tail with no existing bytes changed
Extended reasoning...

Overview

This PR touches three files for a single AMD MI355X recipe (dsv4-fp4-mi355x-sglang-mtp): a sglang-rocm image bump in configs/amd-master.yaml, several env-var/flag tweaks in the corresponding launch script (dsv4_fp4_mi355x_sglang_mtp.sh), and an append-only perf-changelog.yaml entry describing the change.

I traced each edit against the PR description and the sibling non-MTP script (dsv4_fp4_mi355x_sglang.sh): the new SHARED_EXPERTS_ARGS array correctly defaults to --enforce-shared-experts-fusion and only switches to --disable-shared-experts-fusion when EP_SIZE>1 (a deliberate divergence from the sibling script, which still disables fusion unconditionally — this matches the PR's stated intent, not a leftover bug). GPU_MAX_HW_QUEUES=5 is set only inside the DP_ATTENTION branch, matching the sibling script's placement as claimed. The two new exported env vars and the new --enable-deepseek-v4-fp4-indexer flag are simple additive changes with no control-flow risk. The perf-changelog.yaml diff adds exactly one entry at the tail; a diff of removed lines confirmed no historical bytes were touched.

Security risks

None. This is a benchmark-recipe/config change with no auth, crypto, or data-handling code involved.

Level of scrutiny

Moderate. The change is mechanical (version bump, flag reorganization, env vars) and follows established patterns in the file, but configs/amd-master.yaml is CODEOWNER-owned (per .github/CODEOWNERS: billishyahao, chunfangamd, seungrokj, yctseng0211, 1am9trash) and the repo's own CONTRIBUTING.md mandates a CODEOWNER sign-off with a specific checklist before merge — the PR author here is one of that file's own codeowners, so an independent codeowner/human look matters for this specific PR regardless of the automated review outcome.

Other factors

I was unable to reach the network from this sandboxed environment to independently confirm the new image tag (lmsysorg/sglang-rocm:v0.5.19-rocm720-mi35x-20260907) actually exists on Docker Hub, per the known image-tag pitfall documented in KLAUD_DEBUG.md section 6. No other recipe in amd-master.yaml currently references this exact tag, though the version/date progression (v0.5.18-...-20260902 is the latest pre-existing tag, this one is dated 20260907, five days later and two days before the PR was opened 2026-09-09) is consistent with a legitimate new nightly rather than an invented one. I could not conclusively verify this either way, which is an additional reason a human look is warranted.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@1am9trash

Copy link
Copy Markdown
Collaborator Author
image

@1am9trash

Copy link
Copy Markdown
Collaborator Author

/reuse-sweep-run 34336290295

@seungrokj

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run

@seungrokj seungrokj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
  • 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 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; FLOPs at lower precisions is fine, given that the config passes private evals. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • 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
  • 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 single-node vLLM/SGLang recipe in this PR is documented in the official vLLM recipes and/or the SGLang cookbook:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang 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.

Additional detail section:

Signed: seungrokj

@Klaud-Cold

Copy link
Copy Markdown
Collaborator

❌❌❌ REJECTED ❌❌❌

@seungrokj Two blockers: (1) this PR updates the dsv4 Single-turn 8k1k scenario, which MODELS.md deprecates after 2026-09-08 (review date: 2026-09-09), and (2) the launch command's --enable-deepseek-v4-fp4-indexer is a major kernel/precision flag missing from the linked published cookbook recipe.

✅ Check 0 (CODEOWNER): PASS — @seungrokj is a listed owner of configs/amd-master.yaml; the other changed paths are catch-all-only.
✅ Check 1 (sweep on in-PR commit): PASS — head 35daccd has all-green executed single-node 8k1k / and eval / check-runs in run 34336290295.
✅ Check 2 (eval accuracy): PASS — GSM8K em_strict 0.959 (DPA c512), 0.961 (DPA c2048), 0.964 (TP8 c32), all above the 0.950 bar, run on this PR's image lmsysorg/sglang-rocm:v0.5.19-rocm720-mi35x-20260907.
❌ Check 3 (recipe): FAIL — the major flag --enable-deepseek-v4-fp4-indexer (experimental FP4 C4 indexer path, default off in SGLang) is missing from the linked published recipe (SGLang cookbook DeepSeek-V4 — MI355X/Pro/FP4/high-throughput), which keeps the default indexer. All other major args match (TP8, DP-attention, EAGLE MTP steps 3 / topk 1 / draft 4, --attention-backend dsv4, kv-cache fp8_e4m3, --enforce-shared-experts-fusion, env toggles); image-tag drift (recipe pins v0.5.18) is informational only.
✅ Check 4 (reuse command): PASS — /reuse-sweep-run 34336290295 posted by @1am9trash (COLLABORATOR) and /reuse-sweep-run by @seungrokj (COLLABORATOR).
✅ Check 5 (latest checklist): PASS — every item of the current docs/PR_REVIEW_CHECKLIST.md template is present and checked.
✅ Check 6 (upstream image / ordering): PASS — lmsysorg/sglang-rocm:v0.5.19-rocm720-mi35x-20260907 is an upstream lmsysorg image on MI355X; no non-vLLM/SGLang entries added.
❌ Check 7 (deprecated models/scenarios): FAIL — MODELS.md sets Tuesday 2026-09-08 as the last day for Single-turn 8k1k on DeepSeek-V4-Pro (dsv4); this PR changes dsv4-fp4-mi355x-sglang-mtp (fixed-seq-len 8192/1024) on 2026-09-09, after the effective date. "Not yet enacted" covers archival of existing configs, not new submissions to the deprecated combination.
✅ Check 8 (no architecture hacks): PASS — no --hf-overrides or config edits; the FP4 indexer runs the same computation at lower precision and evals pass.
✅ Check 9 (spec-decode chat template): PASS — the MTP benchmark drives prompts through --dsv4 chat framing (encoding_dsv4.py) and the server loads deepseek_v4_thinking.jinja.
✅ Check 10 (no engine patches): PASS — env vars and launch flags only; no build- or run-time engine modification.
➖ Check 11 (agentic golden AL): N/A — fixed-seq-len config, no agentic spec-decode changes, and no synthetic-acceptance knobs on this non-agentic config.
➖ Check 12 (append-only): N/A — the new perf-changelog entry does not set append-only: true.

@Oseltamivir Oseltamivir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Oseltamivir
Oseltamivir merged commit 7fa1d14 into main Sep 9, 2026
45 of 46 checks passed
@Oseltamivir
Oseltamivir deleted the thomas/dsv4-mi355x-sglang-8k1k-0909 branch September 9, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants