Skip to content

musespark mi355x: append TP4/EP4 concurrency 58 / musespark mi355x:追加 TP4/EP4 并发 58 - #5155

Closed
dorado269 wants to merge 3 commits into
SemiAnalysisAI:mainfrom
dorado269:muse-mi355x-c58-fooww
Closed

dorado269 wants to merge 3 commits into
SemiAnalysisAI:mainfrom
dorado269:muse-mi355x-c58-fooww

Conversation

@dorado269

@dorado269 dorado269 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Appends one point to musespark-fp4-mi355x-sglang-agentic-dflash: TP4/EP4 at concurrency 58, on the same pinned lmsysorg/sglang-rocm:muse-spark-open-mi355-1106 image. The existing six points and their recipes are unchanged (append-only: true; python -m infx.matrix.changed --base origin/main: 6 -> 7 points, 1 added, 0 removed).

Why this point. The published MI355X curve (run 42879019953, #4983) ends at TP4 concurrency 40, its highest throughput: 48,418 tok/s/GPU. Concurrency 40 is not where MI355X saturates; it is where the SWA KV pool saturates. With out-of-window SWA slots freed, the same TP4 instance keeps scaling to concurrency 58.

Expected gain. In our pre-submission runs (below) concurrency 58 reached 55,610 and 56,793 tok/s/GPU, mean 56,201: +17.8% over the same harness's concurrency 40 runs of the current recipe (mean 47,726), and +16.1% over the published concurrency 40 point (48,418). The official number is whatever the sweep on this PR measures.

The new override_tp4_c58 is the override_tp4_c40 recipe (stream interval 20) plus two environment variables:

  • SGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS=1 frees SWA KV slots that have left the sliding window. Without it the SWA pool saturates above concurrency 40 and prefix matches get truncated, so raising concurrency does not pay off. This is an existing SGLang option in the pinned image; no engine patch.
  • HSA_ENABLE_SCRATCH_ASYNC_RECLAIM=0: we hit HSA_STATUS_ERROR_OUT_OF_RESOURCES on TP4 ranks under async scratch reclaim; we measured no throughput effect from it.

No engine patch, file overlay, or model change.

SGLang cookbook update for this point: sgl-project/sglang#51760 (open).

Validation details

Pre-submission runs with our own AgentX closed-loop harness on MI355X (crusoe), 1106 image, 3600 s scored window, a single 4-GPU instance, total tokens/s per GPU. These are not InferenceX workflow runs.

Config tok/s/GPU
Published: TP4 c40, run 42879019953 48,418
Ours: TP4 c40, override_tp4_c40 as on main (2 runs) 47,442 / 48,011
Ours: TP4 c40 + out-of-window free 50,634
Ours: TP4 c58, this recipe (2 nodes) 55,610 / 56,793

Both c58 runs completed without errors (about 6.1k requests each, TTFT p50 2.2 s / p95 11.8 s, ITL 15.6 ms).

AI model disclosure
  • Model/version: Claude-Opus-5.5[1m] (Claude Code)
  • Role: prepared the recipe, changelog entry and PR text from the author's benchmark runs; the runs were driven by the same model under the author's supervision.
PR checklist and change type

Type of Change

  • Bug fix
  • New feature
  • Configuration change
  • Documentation update
  • Other (please describe)

Checklist

  • I have completed the AI model disclosure and kept it current
  • I have tested my changes locally
  • I have updated documentation if necessary
  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries
  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast (recommended), full-sweep-enabled, or non-canary-full-sweep-enabled. Optional modifiers all-evals, evals-only, and agentx-fast require a primary label; the last two block reuse while applied.
  • Before merging via reuse, a maintainer with write access to the repository has commented /use <run_id> (or the legacy /reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
中文

为 musespark-fp4-mi355x-sglang-agentic-dflash 追加一个点:TP4/EP4 并发 58,镜像不变(lmsysorg/sglang-rocm:muse-spark-open-mi355-1106)。原有 6 个点及其配方不变(append-only: true;infx.matrix.changed:6 -> 7 个点,新增 1,删除 0)。

为什么加这个点。 当前公开的 MI355X 曲线(run 42879019953,#4983)止于 TP4 并发 40,这也是它的最高吞吐:48,418 tok/s/GPU。并发 40 并不是 MI355X 的上限,而是 SWA KV 池饱和的位置;释放滑出窗口的 SWA 槽位后,同一个 TP4 实例可以继续扩展到并发 58。

预期收益。 提交前实测并发 58 为 55,610 / 56,793 tok/s/GPU,均值 56,201:比同一压测工具下当前配方的并发 40(均值 47,726)高 +17.8%,比公开的并发 40 点(48,418)高 +16.1%。正式数字以本 PR 的 sweep 为准。

override_tp4_c58 = override_tp4_c40 配方(stream interval 20)加两个环境变量:

  • SGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS=1:释放已滑出窗口的 SWA KV 槽位。不开时并发超过 40 后 SWA 池饱和、前缀匹配被截断,加并发没有收益。这是固定镜像中已有的 SGLang 选项,不修改引擎。
  • HSA_ENABLE_SCRATCH_ASYNC_RECLAIM=0:TP4 rank 在异步 scratch 回收下出现过 HSA_STATUS_ERROR_OUT_OF_RESOURCES;实测对吞吐无影响。

无引擎补丁、无文件覆盖、不改模型。对应的 SGLang cookbook 更新:sgl-project/sglang#51760(未合入)。提交前数据来自我们自己的 AgentX 闭环压测(MI355X,1106 镜像,3600 s 计分窗口,单个 4 卡实例),不是 InferenceX workflow 的结果,见上方 Validation details。

AI 使用说明:Claude-Opus-5.5[1m](Claude Code)编写配方、changelog 和 PR 文本;压测也由该模型在作者监督下执行。

🤖 Generated with Claude Code

…w free / musespark mi355x:追加 TP4/EP4 并发 58(SWA 窗口外槽位释放)

Signed-off-by: yihou <yihou@amd.com>

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

Signed-off-by: yihou <yihou@amd.com>

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
@dorado269 dorado269 added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dispatched trusted sweep run for approved external revision dcfae545a91b62d56893f8568cf78c5b2563cadf.
New commits are not trusted automatically; remove and re-add the primary sweep label to approve a new SHA.

已为获批的外部提交 dcfae545a91b62d56893f8568cf78c5b2563cadf 调度trusted sweep run。
后续新提交不会自动获得信任;如需批准新的 SHA,请移除并重新添加主扫描标签。

@dorado269 dorado269 removed the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Nov 23, 2026
@dorado269

Copy link
Copy Markdown
Collaborator Author

Moved to a same-repository branch; superseded by a new PR (link follows).

@dorado269

Copy link
Copy Markdown
Collaborator Author

Superseded by #5193.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant