Skip to content

[Klaud Cold] Re-sweep Muse Spark Open H100 on the full trace corpus / [Klaud Cold] 在完整轨迹数据集上重新 sweep Muse Spark Open H100 - #4289

Closed
functionstackx wants to merge 17 commits into
mainfrom
klaud/musespark-h100-full-corpus-resweep
Closed

functionstackx wants to merge 17 commits into
mainfrom
klaud/musespark-h100-full-corpus-resweep

Conversation

@functionstackx

@functionstackx functionstackx commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Re-sweeps musespark-fp4-h100-sglang-agentic-dflash on the full, uncapped AgentX trace corpus (semianalysis_cc_traces_weka_062126).

#4287 removed the Muse Spark 256k exception, so every Muse Spark AgentX point now replays the full corpus. That PR merged without a sweep. This PR appends one changelog entry for the H100 config so the published curve is re-measured on the new corpus. The image is unchanged.

H100 changes after the first sweep:

  • The full corpus has 330k-480k-token inputs. One H100 node cannot hold them beside the weights and the DFlash2 draft: TP8 at 0.97 gave a ~311k-token GPU KV pool that rejected them, and 0.975 OOMed the MoE in warmup.
  • Serve on two H100 nodes as TP8 x PP2 (31 layers per stage). Each stage gets a 6.35M-token GPU KV pool, so the sweep runs concurrency 1-16 with max-running-requests and cuda-graph-max-bs-decode at 16.
  • The image's Muse Spark decoder and DFLASH worker support only one pipeline stage. musespark-pp.sh adds stage-local layers (the fp32 residual crosses stages as a bf16 hi/lo pair) and runs DFLASH under SGLANG_ENABLE_PP_SPEC: the last stage verifies the relayed 8-token block without drafting it again and tail-drafts the next one; earlier stages verify the same block and relay their target-layer taps.
  • New h100-dsxe multi-node sglang lane; stage traffic uses NCCL sockets on the primary ENI because the image lacks the EFA NCCL plugin.
  • HF_HUB_OFFLINE=1 (as on MI355X): ranks load the DFlash2 draft from the shared HF cache instead of hitting the Hub 429 API rate limit.

This is one of seven per-SKU re-sweep PRs (H100, H200, B200, B300, GB200, GB300 and MI355X).

AI model disclosure
  • Model/version: claude-opus-5-5[1m] (Claude Opus 5.5, via Claude Code)
  • Role: wrote the changelog entry and the PP patch, opened this PR and is monitoring the sweep.
PR checklist and change type

Type of Change

  • Configuration change

Checklist

  • I have completed the AI model disclosure and kept it current
  • One new perf-changelog entry is appended for the affected config key
  • One primary sweep label: full-sweep-fail-fast
中文

摘要

在完整、未截断的 AgentX 轨迹数据集(semianalysis_cc_traces_weka_062126)上重新 sweep musespark-fp4-h100-sglang-agentic-dflash。

#4287 移除了 Muse Spark 的 256k 例外,所有 Muse Spark AgentX 点现在都回放完整数据集。该 PR 合并时没有运行 sweep。本 PR 为 H100 配置追加一条 changelog 记录,以便在新数据集上重新测量公开曲线。镜像不变。

首次 sweep 后的 H100 修改:

  • 完整数据集包含 33 万至 48 万 token 的输入。单个 H100 节点无法在权重和 DFlash2 draft 之外容纳这些输入:TP8 在 0.97 时 GPU KV 池约为 311k token,会拒绝这些请求;0.975 则在 warmup 时 MoE 触发 OOM。
  • 改为在两个 H100 节点上以 TP8 x PP2 运行(每个 stage 31 层)。每个 stage 有 6.35M token 的 GPU KV 池,因此 sweep 覆盖并发 1-16,max-running-requests 与 cuda-graph-max-bs-decode 均为 16。
  • 镜像中的 Muse Spark decoder 和 DFLASH worker 只支持单个 pipeline stage。musespark-pp.sh 为每个 stage 只构建本地层(fp32 残差以 bf16 hi/lo 对跨 stage 传递),并在 SGLANG_ENABLE_PP_SPEC 下运行 DFLASH:最后一个 stage 直接验证中继过来的 8 token block(不再重复 draft),并为下一轮 tail-draft;前面的 stage 验证同一 block 并中继其目标层 tap。
  • 新增 h100-dsxe 多节点 sglang lane;由于镜像缺少 EFA NCCL 插件,stage 间通信走主 ENI 上的 NCCL socket。
  • HF_HUB_OFFLINE=1(与 MI355X 一致):各 rank 从共享 HF 缓存加载 DFlash2 draft,避免触发 Hub 429 API 限流。

这是七个按 SKU 拆分的重新 sweep PR 之一(H100、H200、B200、B300、GB200、GB300 和 MI355X)。

AI 模型使用说明

  • 模型/版本:claude-opus-5-5[1m](Claude Opus 5.5,通过 Claude Code)
  • 工作内容:编写 changelog 记录与 PP patch,创建本 PR 并监控 sweep。

🤖 Generated with Claude Code

…sweep Muse Spark Open H100

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@functionstackx
functionstackx requested a review from a team October 18, 2026 23:57
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@functionstackx functionstackx added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 18, 2026
Comment thread inferencex-e2e/perf-changelog.yaml Outdated
Comment on lines +10116 to +10121
- config-keys:
- musespark-fp4-h100-sglang-agentic-dflash
scenario-type:
- agentic-coding
description:
- "Re-sweep Muse Spark Open H100 AgentX on the full uncapped trace corpus (semianalysis_cc_traces_weka_062126) after #4287 dropped the Muse Spark 256k exception; image, recipe and search space are unchanged."

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.

🔴 The H100 re-sweep is likely to fail or publish a skewed curve. Its recipe is still sized for 256k prompts, but the full corpus replays longer requests. The entry says the recipe is unchanged. Yet h100-fp4-mtp/agentic.yaml:36 says "Full-attention KV must fit 256k prompts". Lines 81-84 size the GPU KV pool at about 250k tokens, versus the capped trace's ~196k-token inputs. Fix: before triggering the sweep, re-size the H100 recipe so the longest uncapped request fits, or pin WEKA_LOADER_OVERRIDE to the 256k corpus and say so in the description.

Why this was flagged

This entry triggers a new sweep of musespark-fp4-h100-sglang-agentic-dflash (configs/nvidia-master.yaml:9796). Since #4287, traces.resolve (infx/bench/agentic/traces.py:18) picks UNCAPPED for the musespark prefix. The uncapped corpus keeps every request the 256k variant drops for in + out > cap (build_weka_hf_dataset.py:562-563). The H100 recipe has not changed. It still uses swa-full-tokens-ratio: 0.1 with the comment "Full-attention KV must fit 256k prompts" (agentic.yaml:36-37). HiCache stores in host DRAM do not let one request's live KV exceed the GPU pool. So requests longer than the pool are rejected or aborted by the server. The run then either fails validate_agentic_result (validate_agentic_result.py:73-74), wasting the sweep, or publishes a curve that silently leaves out the long requests. The base branch still holds the H100 curve measured on the 256k corpus, which this recipe was sized for.

Verification: Pre-existing. Trigger: the sweep this entry starts replays uncapped-corpus requests longer than about 250k tokens on H100. The H100 recipe the new entry calls "unchanged" is still sized for capped traces (musespark/sglang/h100-fp4-mtp/agentic.yaml:36-37). The defective state was already merged by #4287. This diff changes no config.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The uncapped corpus has 330k-480k-token inputs that exceed the 258k
GPU KV pool and aborted 10% of c4 requests. Drop c4/c8 so smaller
decode graphs and HiCache buffers leave room for mem-fraction-static
0.975, and serve the DFlash2 draft offline like MI355X.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…adroom

0.975 grew the KV pool to ~364k tokens but left ~0.29 GiB free at serve
start; a long warmup prefill then hit CUDA OOM in the fused MoE on all
ranks. 0.97 restores headroom with a ~310k-token pool.
One H100 node cannot hold the full corpus's 330k-480k-token inputs beside the
weights and the DFlash2 draft. Split the decoder into two pipeline stages, one
TP8 stage per node.

The dev-muse-spark-open image supports neither Muse Spark PP nor DFLASH PP, so
musespark-pp.sh patches it at startup: stage-local layers with the fp32
residual relayed as a bf16 hi/lo pair, and DFLASH under SGLANG_ENABLE_PP_SPEC
(the last stage verifies the relayed block and tail-drafts the next; earlier
stages verify the same block and relay their target-layer taps).

Add the h100-dsxe multi-node sglang lane; stage traffic uses NCCL sockets.
@github-actions

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +8 -0

Generally most InferenceX submissions don't need to add changes to the infx package. On the off chance they do, generally the diff is small. Please prompt your agent to clean your PR to keep your diff to only necessary & minimal changes too. We have an increased code quality bar for changes to the infx package.

中文

大多数 InferenceX 提交通常不需要修改 infx 包。即使确实需要,改动通常也很小。请让你的 agent 清理 PR,使改动只包含必要且最小的内容。infx 包的改动有更高的代码质量要求。

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
srtctl requires a top-level name; the canary failed config validation.
The workers resolve the DFlash2 draft offline but only the client received
HF_HUB_CACHE, so the draft config lookup missed the mounted cache.
draft_pp_context hides pp_size from TpModelWorker, so the last-stage draft
skipped the PP+spec seed path and entered a WORLD broadcast that stage 0 never
joins; stage 0 waited in the KV pool all_reduce and startup deadlocked. Pass
the target's already-broadcast seed so no draft-only collective runs.
Without --exclusive h100-dsxe gives each multi-node task 2 CPUs. The 16
server ranks started slowly and the AgentX client rebuilt the full corpus
on 2 cores, missing its 1800 s dataset timeout.
…ency 16

Under PP the last stage drafted each relayed block twice: once as the
previous round's tail draft, which earlier stages verify, and again at
the start of the round, whose tokens were then overwritten by the relay.
Skip that second draft forward when the block arrives on the relay; the
tail draft already ran from the same state and the 2x block KV reserve
covers its window. Selector and LiLiCorr heads keep the draft because
their accept reads its samples.

The TP8 x PP2 stages each hold a 6.35M-token KV pool, about 13 of the
corpus's longest contexts, so the c<=2 cap from the single-node recipe
no longer applies. Sweep concurrency 1-16 with max-running-requests and
decode CUDA graphs at 16; extra graph sizes cost ~9 s each to capture.
Replace the 725-line string-substitution script with
configs/patches/musespark-pp.patch, a unified diff cut against the
dev-muse-spark-open image's fork (layer sha256:9de6b717). It covers the
decoder's stage-local layers and the DFLASH relay under
SGLANG_ENABLE_PP_SPEC; the patched files are byte-identical to what the
#4289 sweep ran, minus the marker line.

musespark-pp.sh now applies it with fuzz 0, so any drift in a new image
rejects the hunk instead of applying it silently, and skips a tree that
already carries it.
Re-cut the patch against the image's fork with the cleanups from
sgl-project/sglang#45756:

- Drop the model-side draft-config read (_resolve_pp_dflash_layer_ids and
  its SGLANG_MUSE_PP_DFLASH_TARGET_LAYERS override). The target runner
  already calls set_dflash_layers_to_capture on every PP stage before CUDA
  graph capture, so the relayed tap width now comes from layers_to_capture.
- Filter other stages' layer weights with the shared get_layer_id instead
  of a module-level regex, and sort the new imports into place.
- Name the relayed-block reuse condition, overwrite the drafted block with
  the relayed one only when selector heads redrafted it, and rename the
  private forward_batch_generation flag to _draft_only so it no longer
  shadows the _pp_tail_draft method.
- Mention DFLASH in the PP validation message and document the relayed
  decode KV reservation and the tail draft.
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has had no activity (commits, comments, reviews or other updates) for more than 30 days, so it is being closed automatically. Reopen it if it is still needed.

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

Labels

full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants