Skip to content

[AgentX] Update Muse Spark Open B300 SGLang image and retune per concurrency / [AgentX] 更新 Muse Spark Open B300 SGLang 镜像并按并发重新调优 - #4417

Merged
nvpohanh merged 6 commits into
mainfrom
musespark-fp4-b300-sglang-agentic-c1c287a4
Oct 28, 2026
Merged

nvpohanh merged 6 commits into
mainfrom
musespark-fp4-b300-sglang-agentic-c1c287a4

Conversation

@shyeh25

@shyeh25 shyeh25 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Update the Muse Spark Open B300 SGLang AgentX curve to lmsysorg/sglang:nightly-dev-20261021-c1c287a4, set SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=0 in the base serving environment, and retune the per-concurrency points:

  • TP8/EP8, GPU-resident KV: concurrency 1, 4, 8, 10, 14, 16, 20, 24
  • TP4/EP4 on 4 GPUs, DRAM HiCache: concurrency 16, 28, 32, 40, 44, 48

TP4 GPU-resident KV concurrency 4 and TP4 HiCache concurrency 10, 20, 36 are removed.

Per-point changes:

  • TP8 concurrency 4: stream interval 20
  • TP8 concurrency 10 (new), starting from the previous concurrency 8 settings: shortest-prefill-first scheduling
  • TP8 concurrency 14:
    • request admission and decode graph batch 14 → 3
    • shortest-prefill-first scheduling
  • TP8 concurrency 16, 20, 24 (new), starting from the previous concurrency 8 settings:
    • request admission and decode graph batch 4, 6, 8
    • shortest-prefill-first scheduling
    • stream interval 20 at concurrency 20 and 24
  • TP4 concurrency 28:
    • prefill-decode interval 80 → 128
    • stream interval 20
  • TP4 concurrency 32 (new), starting from the concurrency 40 settings:
    • request admission and decode graph batch 64
    • prefill-decode interval 128
    • stream interval 20
  • TP4 concurrency 40:
    • prefill-decode interval 64 → 96
    • SWA/full token ratio 0.1 → 0.2
    • stream interval 20
    • SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4
  • TP4 concurrency 44 and 48 (new), starting from the concurrency 40 settings:
    • request admission and decode graph batch 24 and 26
    • FCFS scheduling and no prefill-decode interval
    • HiCache write_back
    • SWA/full token ratio 0.1
    • stream interval 20
    • SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4

TP8 concurrency 1 and 8 and TP4 HiCache concurrency 16 keep their per-point settings; they only pick up the new image and the base environment variable. HiCache sizes, chunked prefill, memory fractions, the checkpoint, and the DFlash2 draft settings are unchanged.

AI model disclosure
  • Model/version: claude-opus-5-5 (the identifier exposed by the runtime).
  • Role: ran the tuning measurements, generated the recipe, master-config and perf-changelog changes from the measured runs, checked them locally against the measured server configurations, and drafted this PR description.
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, an authorized maintainer (OWNER/MEMBER/COLLABORATOR) 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.
中文

将 Muse Spark Open B300 SGLang AgentX 曲线更新到 lmsysorg/sglang:nightly-dev-20261021-c1c287a4,在 base 的服务环境变量中设置 SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=0,并按并发重新调优各点:

  • TP8/EP8,KV 留在 GPU:并发 1、4、8、10、14、16、20、24
  • TP4/EP4(4 张 GPU),DRAM HiCache:并发 16、28、32、40、44、48

移除 TP4 KV 留在 GPU 的并发 4,以及 TP4 HiCache 并发 10、20、36。

各点改动:

  • TP8 并发 4:stream interval 20
  • TP8 并发 10(新增),以原并发 8 的设置为基础:shortest-prefill-first 调度
  • TP8 并发 14:
    • 请求数上限与 decode graph batch 14 → 3
    • shortest-prefill-first 调度
  • TP8 并发 16、20、24(新增),以原并发 8 的设置为基础:
    • 请求数上限与 decode graph batch 分别为 4、6、8
    • shortest-prefill-first 调度
    • 并发 20 与 24 使用 stream interval 20
  • TP4 并发 28:
    • prefill-decode interval 80 → 128
    • stream interval 20
  • TP4 并发 32(新增),以并发 40 的设置为基础:
    • 请求数上限与 decode graph batch 64
    • prefill-decode interval 128
    • stream interval 20
  • TP4 并发 40:
    • prefill-decode interval 64 → 96
    • SWA/full token 比例 0.1 → 0.2
    • stream interval 20
    • SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4
  • TP4 并发 44 与 48(新增),以并发 40 的设置为基础:
    • 请求数上限与 decode graph batch 分别为 24、26
    • FCFS 调度,不设 prefill-decode interval
    • HiCache write_back
    • SWA/full token 比例 0.1
    • stream interval 20
    • SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4

TP8 并发 1、8 与 TP4 HiCache 并发 16 的各点设置不变,只随之更新镜像与 base 环境变量。HiCache 大小、chunked prefill、memory fraction、checkpoint 与 DFlash2 draft 设置不变。

AI 模型使用说明:运行环境提供的模型标识为 claude-opus-5-5。工作内容包括执行调优量测、根据实测结果生成配方、主配置和性能变更记录的改动、在本地与实测的服务配置逐项核对,以及起草本 PR 说明。

🤖 Generated with Claude Code

…urrency / [AgentX] 更新 Muse Spark Open B300 SGLang 镜像并按并发重新调优

Co-Authored-By: Claude Opus 5.5 <[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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

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

Code review found no issues

No high-confidence issues detected in this change.

@shyeh25 shyeh25 added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 23, 2026
@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook integration of this PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) will happen in sgl-project/sglang#46005, in the Agentic Long-Context Deployment section of the Muse Spark Open cookbook page.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (ecde73b01) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] sgl-project/sglang#46005 has been merged. This PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) is now in the Agentic Long-Context Deployment section of the SGLang Muse Spark Open cookbook: https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (ecde73b01) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

@shyeh25 shyeh25 removed the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 24, 2026
shyeh25 and others added 2 commits October 24, 2026 11:06
Resolve the perf-changelog.yaml conflict by keeping every main entry and appending this PR's entry at the end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 重新调优 Muse Spark Open B300 TP4 并发 40-48

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@shyeh25 shyeh25 added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 24, 2026
@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook update of this PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) will happen in sgl-project/sglang#46506, in the Agentic Long-Context Deployment section of the Muse Spark Open cookbook page. The config has been live in that section since sgl-project/sglang#46005; sgl-project/sglang#46506 refreshes it with the pin below.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (5422503f2) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] sgl-project/sglang#46506 has been merged. This PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) is now in the Agentic Long-Context Deployment section of the SGLang Muse Spark Open cookbook: https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (5422503f2) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

nvpohanh and others added 2 commits October 26, 2026 00:24
Add back the TP8/EP8 concurrency 8 and TP4/EP4 HiCache concurrency 16
points with their previous settings, so the retuned curve still measures
every point it replaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lang-agentic-c1c287a4

Resolve the perf-changelog.yaml conflict by keeping main's entries and
appending this PR's entry at the end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] Why TP8 c8 and TP4 HiCache c16 were added back (commit 02fb531):

The CODEOWNER sign-off verifier (Check 18(g)) allows a PR to remove a sweep point only when that point was not on the Pareto frontier, or when a single measured point in the new run beats it on both throughput per GPU (tput_per_gpu) and mean interactivity (mean_intvty). Two points removed by the earlier version of this PR failed that rule against run 40119895359. The baseline numbers come from run 39385088584.

Removed point Old tok/s/GPU Old tok/s/user Closest new points Why not dominated
TP8 c8 7546 434.8 TP8 c10: 8756 / 429.2 Interactivity is 1.3% lower
TP4 HiCache c16 24357 233.1 TP8 c24: 21617 / 308.6; TP4 c32: 33821 / 206.6 One has less throughput, the other less interactivity

Both old points sit below the line between the neighboring new points (about 453 and 286 tok/s/user at those throughputs). The rule counts only measured points, not interpolation, so the sign-off would have been rejected. Restoring both points with their previous settings removes the problem. They now run on the new image, so any new point that is better also stays on the dashboard.

To avoid this in future retune PRs:

  • Prefer keeping every previously published concurrency, and retune it in place. A point with the same shape and concurrency but a new recipe counts as re-tuned, not removed.
  • If you drop or move a concurrency, make sure one new measured point beats each dropped point on both tok/s/GPU and tok/s/user before you ask for sign-off.
  • To check, run uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts report --repo SemiAnalysisAI/InferenceX --pr <N> --sha <head> --out facts.json. Make sure check_18g_points.changes[].undominated_removed is empty. This is the same facts report the verifier reads.

The branch also merged main (63c4ad2), because new perf-changelog.yaml entries on main would otherwise fail check-changelog. The replacement sweep is 40285747600.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook update of this PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) will happen in sgl-project/sglang#46547, in the Agentic Long-Context Deployment section of the Muse Spark Open cookbook page. The config has been live in that section since sgl-project/sglang#46005; sgl-project/sglang#46547 refreshes it with the pin below.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (5422503f2) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] sgl-project/sglang#46547 has been merged. This PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) is now in the Agentic Long-Context Deployment section of the SGLang Muse Spark Open cookbook: https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (5422503f2) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook update of this PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) will happen in sgl-project/sglang#46807, in the Agentic Long-Context Deployment section of the Muse Spark Open cookbook page. The config has been live in that section since sgl-project/sglang#46005; sgl-project/sglang#46807 refreshes it with the pin below.

This PR has no authorized /use <run_id> comment yet, so the cookbook shows the recipe at this PR's head (63c4ad272) as "in progress". A later cookbook PR switches it to the measured run once a run is pinned or this PR merges.

@nvpohanh

Copy link
Copy Markdown
Collaborator

/use 40285747600

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

@nvpohanh staged run 40285747600.

This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] sgl-project/sglang#46807 has been merged. This PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) is now in the Agentic Long-Context Deployment section of the SGLang Muse Spark Open cookbook: https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment

This PR's /use 40285747600 comment came after this cookbook round was synced, so the cookbook shows the recipe at 63c4ad272 as "in progress". That is the commit run 40285747600 measured, so the commands are already the measured ones; a later cookbook PR marks them verified.

@nvpohanh

Copy link
Copy Markdown
Collaborator

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
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • 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 infx/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; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • 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 affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source 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.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details.

Additional detail section:

  • Scope: one config, musespark-fp4-b300-sglang-agentic-dflash (single-node aggregated SGLang on B300 with the DFlash2 draft), agentic-coding only. The changed files are musespark/sglang/b300-fp4-mtp/agentic.yaml, nvidia-master.yaml and one appended perf-changelog.yaml entry. nvidia-master.yaml changes the image to lmsysorg/sglang:nightly-dev-20261021-c1c287a4 and has two search-space rows: TP8/EP8 with no offload at c1, 4, 8, 10, 14, 16, 20 and 24, and TP4/EP4 with HiCache at c16, 28, 32, 40, 44 and 48. Assessed head: 63c4ad272bdbad2150417e9215d0be3409f1e8cb. No commit follows it.
  • PR validation: Run Sweep 40285747600 (attempt 2) ran on head 63c4ad27. All 14 points succeeded: the canary / job (TP8 c1) and 13 agentic / jobs. The agentic eval / job and check-changelog also succeeded. Fixed-sequence and multi-node lanes were skipped because this PR has no such configs. The run is pinned with /use 40285747600. Every point used the full semianalysis_cc_traces_weka_062126 corpus, with 0 to 1 error-dropped requests per point.
  • Evals: the agentic eval / job ran the TP4 c48 recipe on the same image, lmsysorg/sglang:nightly-dev-20261021-c1c287a4. gsm8k em_strict = 0.9757 (± 0.0042, n=1319). That is above the 0.90 default in infx/evals/thresholds.yaml, which has no musespark override. Against the closest same-topology cohort (TP4/EP4 gsm8k 0.9773, run 39385088584), the gap is 0.0015, well inside the 2-sigma threshold of 0.0118. Artifact: eval_results_all from run 40285747600.
  • Chat template: AgentX replays through agentx profile, and AIPerf posts to /v1/chat/completions. Every server runs with chat_template=/model/chat_template.jinja.
  • Draft precision (served as shipped): the draft is RadixArk/Muse-Spark-Open-DFlash2 (speculative_draft_model_revision=main, HF sha 46c90f41). It ships as BF16: the Hub safetensors metadata lists 4,887,479,552 parameters, all BF16, and there is no quantization config. No point sets a draft quantization, dtype, revision or draft-KV override. The server args of all 14 points show speculative_draft_kv_cache_dtype=None and json_model_override_args='{}'.
    • The server args show speculative_draft_model_quantization='modelopt_fp4'. This comes from the pinned image's default inheritance of the target's --quantization, not from a submission setting. At sglang c1c287a4, a draft checkpoint without quant metadata goes through ModelOptFp4Config.for_online_weight_quantization (weight_utils.py). That builds _ModelOptFp4OnlineConfig (nvfp4_online.py), whose get_quant_method returns UnquantizedLinearMethod for every non-FP8-serialized LinearBase and quantizes only FusedMoE. DFlash2DraftModel (models/dflash.py) has no FusedMoE; its MLP is the dense DFlashMLP.
    • The logs match: on all 14 points the draft loads as Load weight end … type=DFlash2DraftModel with no quant tag, at 2.60 GB per GPU on TP8 and 3.63 GB per GPU on TP4. The target logs quant=modelopt_fp4. Effective draft weight precision: BF16 = shipped precision, at every point.
    • Draft KV cache: TP8 c1 keeps speculative-draft-attention-backend: fa4, and the image forces BF16 draft KV there (DFLASH fa4 draft: overriding KV cache dtype …, draft KV cache allocated. dtype: torch.bfloat16). The other 13 points leave the draft backend at the pinned default (the target's trtllm_mha). Their draft inherits the target's upstream-supported fp8_e4m3 KV dtype (draft KV cache allocated. dtype: torch.float8_e4m3fn), which is framework-default handling applied consistently to target and draft.
    • SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=0, newly added to the base env, restates the pinned default EnvBool(False) (environ.py at c1c287a4). It applies only to serialized ModelOpt FP4 target layers (ModelOptFp4Config.__init__), not to the BF16 draft.
    • SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled. It does not appear in the recipe, the master config, the generated config.yaml/sbatch_script.sh, or the server logs of any of the 14 points. Its pinned default is EnvBool(False) (environ.py at c1c287a4), and DFlash2 is a dense draft with no NextN MoE.
  • Golden AL: the connector (infx/srt_slurm/synthetic_acceptance.py) maps DFlash speculative-num-draft-tokens: 8 to num_speculative_tokens = 7. musespark_dflash.yaml gives muse-spark-open-816b-a42b-nvfp4 / thinking_on / 7 = 4.05. All 14 points run with SGLANG_SIMULATE_ACC_LEN=4.05, SGLANG_SIMULATE_ACC_METHOD=match-expected and SGLANG_SIMULATE_ACC_TOKEN_MODE=real-draft-token (worker fingerprint env, config.yaml). Server logs show accept len 4.0 to 4.1. The recipe hard-codes none of them.
  • MODELS.md: musespark (Muse Spark Open 816B-A42B, added 2026-10-15) lists Agentic coding with the SGLang DFlash2 draft as active, with no deprecated scenarios (review date 2026-10-27).
  • No architecture hacks: there is no --hf-overrides or json-model-override-args (effective '{}'), and no layer, expert or indexer skipping. The changes cover the image, request admission and CUDA-graph batch, scheduling policy, prefill-decode interval, stream interval, SWA pool ratio, HiCache write policy, the TRT-LLM MHA decode split, and the NVFP4 activation-scale env (default value).
  • Dynamo TRT-LLM metrics: N/A. This is a direct SGLang deployment with no Dynamo TRT-LLM serving path.
  • Upstream image / engine order: lmsysorg/sglang:nightly-dev-20261021-c1c287a4 comes from the upstream lmsysorg org (sglang commit c1c287a4). Docker Hub resolved its manifest at review time (HTTP 200). This is an SGLang submission, so the engine-first ordering is satisfied.
  • Upstream recipe: sgl-project/sglang#46807 is MERGED (2026-10-27T11:53:32Z, merge commit 359bfc19). It is published at https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment (docs/src/snippets/agentx/meta-models/muse-spark-open.jsx, B300 entries #0 "Agg TP8·EP8" and #1 "Agg TP4·EP4", provenance sha 63c4ad27, pr 4417). The config has been in that section since sgl-project/sglang#46005; #46807 refreshes it to the assessed head.
    • The page documents the same image and the full python3 -m sglang.launch_server command for the TP8 base: TP8/EP8, modelopt_fp4, flashinfer_trtllm MoE, trtllm_mha attention, fp8_e4m3 KV, page size 128, breakable prefill CUDA graph, DFLASH with DFlash2, 8 draft tokens with block verification, fa4 draft attention, mm-feature-transport cpu, muse parsers, tokenizer-worker-num 4, enable-http2, watchdog-timeout 3600, mem 0.88 and SWA 0.3. It also lists the env vars SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=0, SGLANG_DFLASH_EAGER_DRAFT_SAMPLER=1, SGLANG_TIMEOUT_KEEP_ALIVE, OMP_NUM_THREADS, TVM_FFI_CUDA_ARCH_LIST=10.3a, SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN, SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python, SGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS=1 and PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True.
    • It documents every per-concurrency override in this PR line by line:
      • TP8 c4: batch 2, interval 64, stream interval 20.
      • TP8 c8: batch 2, interval 64.
      • TP8 c10, c14, c16: batch 2, 3, 4, interval 64, shortest-prefill-first.
      • TP8 c20, c24: batch 6, 8, interval 64, shortest-prefill-first, stream interval 20.
      • In every TP8 c4–c24 override, the draft attention backend is unset.
      • The TP4/EP4 diff: TP4/EP4, mem 0.95, chunked prefill and max-prefill 8192, batch 12, shortest-prefill-first, interval 96, SWA 0.1, layernorm SP + MegaMoE 2048, HiCache 120, draft attention backend unset.
      • TP4 c28 and c32: batch 56 and 64, chunked prefill 16384, interval 128, HiCache 170, MegaMoE 4096, stream interval 20.
      • TP4 c40: batch 80, SWA 0.2, stream interval 20, SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4.
      • TP4 c44 and c48: batch 24 and 26, schedule policy and prefill-decode interval unset (FCFS, interval 0), HiCache write_back, stream interval 20, SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4.
    • InferenceX-only settings excluded from upstream coverage:
      • enable-metrics, scraped by the AIPerf harness.
      • enable-cache-report, which adds cached-token counts to response usage for the harness's cache accounting, with no change to scheduling, caching or kernels.
      • PYTHONNOUSERSITE/PYTHONUNBUFFERED.
      • HF_HUB_OFFLINE, the staged /model checkpoint and the served-model-name plumbing.
      • Health-check polling.
      • All benchmark.env client settings (TOKENIZER, AIPERF_*, CONC, KV_OFFLOADING).
      • The synthetic-acceptance env injected by the harness.
  • No engine patches: the diff adds only YAML. The recipe and the generated config.yaml/sbatch_script.sh have no setup scripts, patches, pip install, file overwrites or monkey-patching, so no waiver is needed.
  • append-only: true: N/A. The appended changelog entry does not use append-only.
  • Removed and re-tuned points (Check 18(g)/(h)): signoff_facts reports no undominated_removed or unmeasured_removed points.
    • Dropped points and the measured head points that dominate them on both tok/s/GPU and mean tok/s/user:
      • TP4 no-offload c4, dominated by TP8 c10.
      • TP4 HiCache c10, dominated by TP8 c20.
      • TP4 HiCache c20, dominated by TP4 c28.
      • TP4 HiCache c36, dominated by TP4 c44.
    • Re-tuned points (tok/s/GPU, interactivity versus the prior run 39385088584):
      • TP8 c1: +1.3%, +2.0%.
      • TP8 c4: +7.5%, +8.7%.
      • TP8 c8: +1.1%, +0.9%.
      • TP4 c16: −0.7%, +1.9%.
      • TP4 c28: −5.5%, +22.4%.
      • TP4 c40: −2.4%, +12.1%.
      • TP8 c14: −70.2%, −82.5%. This point ran alone on node dsxe-sa-b300-prd0-gpu-17, where the server logs show only ~180 tok/s of generation throughput with 3 running requests at accept len ~4.1. The neighbouring TP8 points with the same shape and similar settings reach several hundred to ~1000 tok/s. It is off the frontier, and TP8 c16 dominates the old c14 point (13975 tok/s/GPU at 366 tok/s/user versus 10164 at 365).
    • The new TP4 c32 point (25374 tok/s/GPU, 137 tok/s/user) is also off the frontier.
  • PR description: its "removed" list predates commit 02fb531f, which restored TP8 c8 and TP4 HiCache c16. The recipe, master config, changelog entry and pinned run above, with 14 points, are the assessed configuration.
  • Pareto coverage: there is one affected curve: Muse-Spark-Open · agentic-coding · b300_sglang · FP4. TP8 and TP4 points share this series, and no other config maps to it. The counts come from the 14 bmk_agentic_musespark_* artifacts of run 40285747600 (attempt 2, head 63c4ad27, image lmsysorg/sglang:nightly-dev-20261021-c1c287a4), with x = E2EL (s) and y = throughput.per_gpu.total_tput_tps, computed with infx.workflows.pareto_coverage:
    • P90 E2EL: 8 frontier points / 14 measured (TP8 c16, c20, c24; TP4 c16, c28, c40, c44, c48).
    • P75 E2EL (reported separately): 8 frontier points / 14 measured (same points).
    • No invalid or missing points.
  • The PR branch currently conflicts with main only in the append-only inferencex-e2e/perf-changelog.yaml tail, which is resolved at merge. The new entry's pr-link uses the pull/XXX placeholder, which validate_perf_changelog.py accepts.

Signed: nvpohanh

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅✅✅ Verdict: PASS ✅✅✅

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — nvpohanh is a named owner of inferencex-e2e/configs/nvidia-master.yaml and of /inferencex-e2e/benchmarks/*_node/srt-slurm-recipes/**/b300-*/. perf-changelog.yaml falls only under the * catch-all, which any listed CODEOWNER covers.

✅ Check 1 (In-PR sweep + evals): PASS — Head 63c4ad27 was not moved. Run 40285747600 attempt 2 ran on the pinned SHA and finished success: the canary / TP8 c1 job, all 13 agentic / jobs and the agentic eval / TP4 c48 job each concluded success. No commit follows the pinned SHA. Attempt 3 is still re-running only TP8 c14 and was not assessed.

✅ Check 2 (Evals): PASS — eval_results_all from run 40285747600 holds the TP4/EP4 c48 eval on lmsysorg/sglang:nightly-dev-20261021-c1c287a4: gsm8k em_strict 0.9757 ± 0.0042 (n=1319). The same-topology cohort is 0.9773 ± 0.0041 (run 39385088584), a gap of 0.0015 against a 2σ threshold of 0.0118. The eval launch shows SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4, --hicache-write-policy write_back and --stream-interval 20 on trtllm_mha. At c1c287a4 the decode split applies to any decode batch with more than one request, so the eval exercised it.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#46807 is MERGED (2026-10-27T11:53:32Z, 359bfc19). At that commit, muse-spark-open.jsx entries musespark-fp4-b300-sglang-agentic-dflash#0 and #1 (provenance 63c4ad27) give the same image, the full TP8 launch command and env, the TP4/EP4 HiCache diff, and every per-concurrency override (c4–c24 and c16–c48). Exclusions are harness-only and justified (metrics, cache report, client env, synthetic-acceptance env).

✅ Check 4 (Reuse command): PASS — nvpohanh (COLLABORATOR) posted /use 40285747600 on its own line, naming the Check 1 run.

✅ Check 5 (Checklist template): PASS — All 18 items in the current inferencex-e2e/docs/PR_REVIEW_CHECKLIST.md are present and checked.

✅ Check 6 (Upstream image / engine order): PASS — The entry is framework: sglang on B300 with image lmsysorg/sglang:nightly-dev-20261021-c1c287a4 from the upstream lmsysorg org. It is an open-source engine entry, so the engine-first ordering is satisfied.

✅ Check 7 (Deprecated models): PASS — MODELS.md lists musespark agentic coding (SGLang, DFlash2 draft) as active with no deprecations as of 2026-10-27.

✅ Check 8 (No architecture hacks): PASS — No --hf-overrides, json-model-override-args or config edits are present, and no layers, experts or indexer are skipped. No accuracy-trading lever is added. The changes are scheduling, batching, HiCache, stream-interval and decode-split tuning, plus an env var that restates its default.

✅ Check 9 (Chat template): PASS — AgentX replay posts to /v1/chat/completions through AIPerf, so DFlash2 acceptance is driven by chat-templated traffic.

✅ Check 10 (No engine patches): PASS — The diff is YAML only. The recipe has no setup script, patch, pip install or file overwrite, and none of the base-branch merge changes reaches the serving path.

✅ Check 11 (Golden AL): PASS — The connector maps speculative-num-draft-tokens: 8 to 7 speculative tokens. musespark_dflash.yaml gives thinking_on / 7 = 4.05. The sweep logs show SGLANG_SIMULATE_ACC_LEN=4.05, match-expected and real-draft-token applied by the harness. The recipe hard-codes none of them.

➖ Check 12 (Append-only): N/A — The new changelog entry has no append-only: true.

✅ Check 13 (Draft precision): PASS — RadixArk/Muse-Spark-Open-DFlash2 ships with dtype: bfloat16 and no quantization_config. At sglang c1c287a4, a draft without quant metadata under modelopt_fp4 gets _ModelOptFp4OnlineConfig, which returns UnquantizedLinearMethod for non-FP8-serialized linear layers and quantizes only FusedMoE. DFlash2DraftModel (supports_quantization = False) has a dense MLP and no FusedMoE, so the effective draft precision is BF16, matching what ships. Draft KV is either BF16 (fa4 at TP8 c1) or follows the target's FP8 KV, which is allowed. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE defaults to EnvBool(False) and is not set anywhere in the effective recipe or eval launch env.

✅ Check 14 (Pareto coverage): PASS — One curve: Muse-Spark-Open / agentic-coding / b300_sglang / fp4, run 40285747600 attempt 2, all 14 bmk_agentic_musespark_* artifacts, y = throughput.per_gpu.total_tput_tps. P90 E2EL has 8/14 points on the frontier (TP8 c16, c20, c24; TP4 c16, c28, c40, c44, c48), and P75 has the same 8. I applied the app's upper_right rule by hand from the raw artifacts because the sandbox blocked running pareto_coverage. No point is invalid.

✅ Check 15 (PR description): PASS — The body's removed points (TP4 no-offload c4; HiCache c10, c20, c36), the per-point changes, the unchanged TP8 c1/c8 and TP4 c16, and the image all match the pinned recipe and master config.

✅ Check 16 (NVIDIA overview): PASS — The NVIDIA recipes overview Framework Recipes table lists Muse Spark Open with SGLang populated, covering the B300 SGLang pair.

➖ Check 17 (Metrics publication): N/A — This is a direct SGLang deployment with no Dynamo TRT-LLM serving path.

✅ Check 18 (Recipe/image/sweep consistency): PASS — (a) Every master conc has a matching override_tp{8,4}_c*, and there are no generation errors. (b) TP8 rows use 8 GPUs and TP4 rows use 4; KV_OFFLOADING none/dram matches the master rows. (c) docker manifest inspect lmsysorg/sglang:nightly-dev-20261021-c1c287a4 resolves. (d)/(e) No orchestration pins or dispatch changed. (f) The changelog accurately covers the image, the env var, the SPF/stream-interval/decode-split scopes and the c44/c48 settings, with no precision or model change. (g) Each removed point is dominated by a head point (TP4 c4→TP8 c10, TP4 c10→TP8 c20, TP4 c20→TP4 c28, TP4 c36→TP4 c44). (h) Re-tune deltas versus 39385088584 (tok/s/GPU, mean interactivity): TP8 c1 +1.3%/+1.9%, c4 +7.5%/+6.0%, c8 +1.0%/+0.7%, c14 −70.2%/−82.6% (off-frontier anomaly; the old point is dominated by TP8 c16; attempt 3 is re-running it); TP4 c16 −0.7%/+1.7%, c28 −5.5%/+19.7%, c40 −2.4%/+9.8%. The eval lane moved from 0.9773 to 0.9757.

Assessed commit: 63c4ad272bdbad2150417e9215d0be3409f1e8cb.

…lang-agentic-c1c287a4

Resolve the perf-changelog.yaml conflict by keeping the entries from main
and appending this PR's entry at the end, with its pr-link set to #4417.

[skip-sweep]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 14 0 16 0 0
eval 1 1 1 0 0
trace 14 0 0 0 0
power 14 0 0 0 0

benchmarkFiles 15, rawBenchmarkRows 30, coveredByPerJobFiles 16, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 1319, gpuMetricSamplesNew 492504, powerPublicationPoints 14, changelogEntriesWritten 1

Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun.

中文

Ingest 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook update of this PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) will happen in sgl-project/sglang#46948, in the Agentic Long-Context Deployment section of the Muse Spark Open cookbook page. The config has been live in that section since sgl-project/sglang#46005; sgl-project/sglang#46948 refreshes it with the pin below.

The commands mirror the launch measured in run 40285747600, pinned by this PR's /use comment.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] sgl-project/sglang#46948 has been merged. This PR's AgentX config (musespark-fp4-b300-sglang-agentic-dflash) is now in the Agentic Long-Context Deployment section of the SGLang Muse Spark Open cookbook: https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment

The commands mirror the launch measured in run 40285747600, pinned by this PR's /use comment.

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.

3 participants