Skip to content

[AMD] Qwen3.5-FP8 MI355X SGLang disagg baseline: image bump to v0.5.16, TP4P+TP8D / Qwen3.5-FP8 MI355X SGLang disagg 基线优化:镜像升级至v0.5.16,TP4P+TP8D拓扑优化 - #2606

Merged
functionstackx merged 9 commits into
mainfrom
chang/qwen3.5-mi355-di-baseline
Aug 19, 2026
Merged

[AMD] Qwen3.5-FP8 MI355X SGLang disagg baseline: image bump to v0.5.16, TP4P+TP8D / Qwen3.5-FP8 MI355X SGLang disagg 基线优化:镜像升级至v0.5.16,TP4P+TP8D拓扑优化#2606
functionstackx merged 9 commits into
mainfrom
chang/qwen3.5-mi355-di-baseline

Conversation

@ChangLiu0709

@ChangLiu0709 ChangLiu0709 commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Changes

Baseline (qwen3.5-fp8-mi355x-sglang-disagg)

  • Docker image bump: lmsysorg/sglang:v0.5.14-rocm720-mi35xlmsysorg/sglang:v0.5.16-rocm720-mi35x (ROCm 7.2, SGLang v0.5.14 → v0.5.16, 3-5% throughput improvement across all concurrency levels).
  • TP topology optimization: TP8P+TP8D (16 GPU) → TP4P+TP8D (12 GPU). TP4 prefill delivers identical decode interactivity with 24-31% better throughput/GPU by saving 4 GPUs. Prefill TP does not affect decode TPOT.

Infra

  • docker_sg.sh: new wrapper that re-activates the docker supplementary group via sg docker -c for Slurm job steps where group credentials are not inherited.
  • job.slurm: update DOCKER_CMD_DETECT to try sg docker fallback before sudo docker; add pre-pull on all nodes; add kill -9 fallback for stuck containers.
  • submit.sh: update node exclude list.

Local benchmark results (v0.5.16, ISL=8K/OSL=1K)

Baseline (TP4P+TP8D, 12 GPU):

Conc Interactivity Tput/GPU TPOT (ms) TTFT (ms)
8 111.0 603 9.01 564
16 106.0 1,132 9.43 715
32 93.9 1,945 10.65 1,063
64 75.0 3,095 13.33 1,493
128 57.9 4,581 17.28 2,791

Split from #2557 — baseline only, no MTP/speculative decoding changes. MTP config in #2607.

Authors

@ChangLiu0709
@xiaohuguo2023
@chunfangamd

中文说明

Qwen3.5-FP8 MI355X SGLang 分离式推理基线优化:

  • 升级 Docker 镜像至 v0.5.16(性能提升 3-5%)
  • 基线配置从 TP8P+TP8D (16 GPU) 优化为 TP4P+TP8D (12 GPU),吞吐量/GPU 提升 24-31%
  • 基础设施:添加 docker_sg.sh 包装脚本,解决 Slurm 作业中 docker 组权限问题;job.slurm 增加镜像预拉取和容器清理增强

#2557 拆分 — 仅包含基线配置变更,不包含 MTP 投机解码。MTP 配置见 #2607

Made with Cursor

…TP4P+TP8D

- Bump qwen3.5-fp8-mi355x-sglang-disagg image from v0.5.14 to v0.5.16
  (3-5% throughput improvement).
- Switch prefill from TP8 to TP4: saves 4 GPUs (12 vs 16 total) while
  delivering identical decode interactivity and 24-31% better
  throughput/GPU.
- Infra: add docker_sg.sh wrapper for nodes where Slurm doesn't activate
  the docker supplementary group; update job.slurm with pre-pull and
  kill -9 fallback for stuck containers; update submit.sh node excludes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

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 关于重新运行失败任务的文档

2 similar comments
@github-actions

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 关于重新运行失败任务的文档

@github-actions

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.

Beyond the two inline findings, a few other candidate issues were checked and ruled out: docker_sg.sh's base64 round-trip through sg docker -c (the ${__A[@]} expansion is correctly scoped to the inner bash -c, not the outer shell); the pre-clean fallback's sudo kill -9 on docker ps -aq output (scoped to this job's own containers, not arbitrary host PIDs); and whether TP4 prefill actually shrinks the Slurm reservation (it doesn't — Slurm allocates whole 8-GPU nodes regardless of TP size, so the 12-vs-16-GPU savings is a utilization claim about the workload, not the job's node/GPU request).

Extended reasoning...

This is an informational note, not a full review. This PR is not being approved because it modifies configs/amd-master.yaml, which is CODEOWNER-protected (per .github/CODEOWNERS, that file requires sign-off from the listed AMD owners), and because the bug hunting system already found two nit-level issues that are posted as inline comments. Beyond those, I checked three additional candidate concerns raised by finder agents and confirmed they don't hold up: the docker_sg.sh base64/sg-docker argv relay is correctly scoped so ${__A[@]} expands inside the inner bash -c rather than the outer shell; the stuck-container SIGKILL fallback in job.slurm operates on docker ps -aq output which is already scoped to containers on the Docker daemon reachable via $DOCKER_CMD (this job's own containers), not arbitrary host PIDs; and the TP4-prefill GPU savings described in the PR is a compute-utilization claim, not a change to the Slurm node/GPU reservation (which is fixed per-node at --gres=gpu:8 regardless of TP size) -- expected behavior, not a bug.

Comment thread benchmarks/multi_node/amd_utils/job.slurm
Comment thread perf-changelog.yaml Outdated
@ChangLiu0709 ChangLiu0709 changed the title [AMD] Qwen3.5-FP8 MI355X SGLang disagg baseline: image bump v0.5.16, TP4P+TP8D [AMD] Qwen3.5-FP8 MI355X SGLang disagg baseline: image bump to v0.5.16, TP4P+TP8D / Qwen3.5-FP8 MI355X SGLang disagg 基线优化:镜像升级至v0.5.16,TP4P+TP8D拓扑优化 Aug 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@chunfangamd
chunfangamd marked this pull request as draft August 17, 2026 17:38
@chunfangamd
chunfangamd marked this pull request as ready for review August 18, 2026 00:02
@claude

claude Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Claude finished @chunfangamd's task in 2m 5s —— View job


Review: PR #2606

  • Gather PR diff against origin/main
  • Validate configs/amd-master.yaml changes (image accessibility, config consistency)
  • Validate perf-changelog.yaml entry (appended at end, pr-link, description accuracy)
  • Post review summary

LGTM - no blocking issues found.

The PR is now cleanly scoped to just the two files (the earlier job.slurm/docker_sg.sh/submit.sh infra changes have been reverted out of this branch):

  • configs/amd-master.yaml: Image bump to lmsysorg/sglang:v0.5.16-rocm720-mi35x (valid public Docker Hub reference, and the labeled sweep on this PR already pulled and ran it successfully — see the unofficial run visualizer link above). Prefill tp: 8 → 4 is fully supported by the existing launch path: server_sglang.sh computes PREFILL_NODES_PER_WORKER via ceiling division (line 303) and clamps prefill_ranks_per_node to min(TP, GPUS_PER_NODE) (line 560), and the GPU count reported to bench.sh is PREFILL_TP_SIZE*xP + DECODE_TP_SIZE*yD = 12 (line 960), so the throughput/GPU numbers are counted consistently with the config.
  • perf-changelog.yaml: Entry is appended at the very end of the file, pr-link now correctly points to [AMD] Qwen3.5-FP8 MI355X SGLang disagg baseline: image bump to v0.5.16, TP4P+TP8D / Qwen3.5-FP8 MI355X SGLang disagg 基线优化:镜像升级至v0.5.16,TP4P+TP8D拓扑优化 #2606 (the issue flagged in the previous review is fixed), and the description matches the actual diff (the reverted infra changes are no longer mentioned).

Note: since mi355x-disagg Slurm jobs still reserve whole 8-GPU nodes, the 12-vs-16-GPU savings is a per-GPU-throughput accounting improvement, not a smaller cluster reservation — consistent with how the harness computes tput/GPU, so no issue there.

@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.

LGTM — approving this baseline config change.

What was reviewed: the SGLang disagg TP topology change (TP8P+TP8D → TP4P+TP8D) and image bump in configs/amd-master.yaml, plus the new perf-changelog.yaml entry. The two nits I raised on the prior revision are resolved: the pr-link now correctly points to #2606 (was #2557), and the job.slurm/docker_sg.sh infra changes I flagged for duplication are no longer part of this PR's diff (only the two config files remain). The GPU-savings claim for TP4 prefill under exclusive SLURM allocation was also checked and holds.

Extended reasoning...

Overview

This revision of the PR is now scoped to exactly two files: configs/amd-master.yaml (SGLang image bump v0.5.14→v0.5.16, and prefill TP8→TP4 for the qwen3.5-fp8-mi355x-sglang-disagg baseline) and perf-changelog.yaml (one new append-only changelog entry documenting the change). The previously-reviewed job.slurm/docker_sg.sh/submit.sh infra changes are no longer present in this diff — they appear to have been split out, so my earlier duplication nit on job.slurm no longer applies to this PR.

Security risks

None. This is a YAML config change to benchmark topology parameters and a changelog entry; no code execution paths, credentials, or user input are touched.

Level of scrutiny

Low. This is a mechanical, low-blast-radius change: a pinned image tag bump and a numeric TP parameter change in a benchmark config, backed by the author's own local benchmark table in the PR description. It doesn't touch shared infra, security-sensitive code, or CODEOWNER-restricted paths beyond the standard config review process already noted by the recipe-reminder bot.

Other factors

Both nits I raised on the earlier revision are now resolved: the pr-link field was corrected from pull/2557 to pull/2606 (matching this PR's number, consistent with sibling changelog entries), and the job.slurm duplication concern is moot since that file isn't part of this PR's diff anymore. The bug-hunting system found no bugs this run, and separately ruled out a candidate concern about whether the TP4 prefill GPU savings claim holds under exclusive whole-node SLURM allocation.

@github-actions

Copy link
Copy Markdown
Contributor

@chunfangamd

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run

@chunfangamd chunfangamd 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. Link: https://github.com/SemiAnalysisAI/InferenceX/actions/runs/32082978745
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this. Value: 97.35%; Link: https://github.com/SemiAnalysisAI/InferenceX/actions/runs/32082978745
  • 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:

  • insert any additional info here

Signed: @chunfangamd

@Klaud-Cold

Copy link
Copy Markdown
Collaborator

✅✅✅ Verdict: PASS ✅✅✅

✅ Check 0 (CODEOWNER): PASS — @chunfangamd is a listed owner of configs/amd-master.yaml; perf-changelog.yaml falls under the catch-all, covered by a recognized CODEOWNER.
✅ Check 1 (Sweep on in-PR commit): PASS — commit c5398fb (in this PR) has green executed multi-node 8k1k / + multi-node eval / check-runs from run 32082978745; single-node jobs skipped because this PR selects only a multi-node config.
✅ Check 2 (Evals pass): PASS — gsm8k em_strict 97.35% (n=1319) from that run's eval artifact, on lmsysorg/sglang:v0.5.16-rocm720-mi35x with TP4 prefill / TP8 decode, matching this PR's config.
➖ Check 3 (Recipe link): N/A — disaggregated/multi-node submission (multinode: true, disagg: true, framework: sglang-disagg); the recipe-link requirement applies to single-node recipes only.
✅ Check 4 (Reuse command): PASS — /reuse-sweep-run posted by @chunfangamd (COLLABORATOR).
✅ Check 5 (Latest checklist): PASS — sign-off contains every item of the current docs/PR_REVIEW_CHECKLIST.md template, all checked.
✅ Check 6 (Upstream image / engine-first): PASS — lmsysorg/sglang:v0.5.16-rocm720-mi35x is the upstream SGLang org image on established MI355X; framework is SGLang, so no engine-first ordering issue.
✅ Check 7 (Deprecated models): PASS — qwen3.5 single-turn 8k1k fp8 is active per MODELS.md as of 2026-08-18.
✅ Check 8 (No architecture hacks): PASS — diff only bumps the image tag and changes prefill TP 8→4; no --hf-overrides or FLOPs-reducing knobs.
➖ Check 9 (Spec-decode chat template): N/A — config is spec-decoding: "none"; no speculative-decoding changes.
✅ Check 10 (No engine patches): PASS — PR touches only configs/amd-master.yaml and perf-changelog.yaml; no patching of the pinned image.
➖ Check 11 (Agentic golden AL): N/A — no agentic speculative-decoding changes.
➖ Check 12 (Append-only): N/A — the new perf-changelog entry does not use append-only: true.

@functionstackx

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run

@functionstackx
functionstackx merged commit 2ddf104 into main Aug 19, 2026
27 checks passed
@functionstackx
functionstackx deleted the chang/qwen3.5-mi355-di-baseline branch August 19, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants