Repository navigation
[Klaud Cold] Re-sweep Muse Spark Open H100 on the full trace corpus / [Klaud Cold] 在完整轨迹数据集上重新 sweep Muse Spark Open H100 - #4289
functionstackx wants to merge 17 commits into
Conversation
…sweep Muse Spark Open H100 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Thanks for the contribution!
中文感谢你的贡献!
|
| - 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." |
There was a problem hiding this comment.
🔴 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.
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.
|
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.
…full-corpus-resweep
|
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. |
Summary
Re-sweeps
musespark-fp4-h100-sglang-agentic-dflashon 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:
max-running-requestsandcuda-graph-max-bs-decodeat 16.musespark-pp.shadds stage-local layers (the fp32 residual crosses stages as a bf16 hi/lo pair) and runs DFLASH underSGLANG_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.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
PR checklist and change type
Type of Change
Checklist
full-sweep-fail-fast中文
摘要
在完整、未截断的 AgentX 轨迹数据集(
semianalysis_cc_traces_weka_062126)上重新 sweepmusespark-fp4-h100-sglang-agentic-dflash。#4287 移除了 Muse Spark 的 256k 例外,所有 Muse Spark AgentX 点现在都回放完整数据集。该 PR 合并时没有运行 sweep。本 PR 为 H100 配置追加一条 changelog 记录,以便在新数据集上重新测量公开曲线。镜像不变。
首次 sweep 后的 H100 修改:
max-running-requests与cuda-graph-max-bs-decode均为 16。musespark-pp.sh为每个 stage 只构建本地层(fp32 残差以 bf16 hi/lo 对跨 stage 传递),并在SGLANG_ENABLE_PP_SPEC下运行 DFLASH:最后一个 stage 直接验证中继过来的 8 token block(不再重复 draft),并为下一轮 tail-draft;前面的 stage 验证同一 block 并中继其目标层 tap。HF_HUB_OFFLINE=1(与 MI355X 一致):各 rank 从共享 HF 缓存加载 DFlash2 draft,避免触发 Hub 429 API 限流。这是七个按 SKU 拆分的重新 sweep PR 之一(H100、H200、B200、B300、GB200、GB300 和 MI355X)。
AI 模型使用说明
🤖 Generated with Claude Code