Skip to content

config(musespark): add GB300 Dynamo SGLang AgentX aggregated points / config(musespark): 新增 GB300 Dynamo SGLang AgentX 聚合配置点 - #4344

Merged
adibarra merged 5 commits into
mainfrom
musespark-fp4-gb300-dynamo-sglang-agentic-agg
Oct 22, 2026
Merged

adibarra merged 5 commits into
mainfrom
musespark-fp4-gb300-dynamo-sglang-agentic-agg

Conversation

@shyeh25

@shyeh25 shyeh25 commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add Muse Spark Open GB300 AgentX on Dynamo + SGLang (musespark-fp4-gb300-dynamo-sglang-agentic-dflash) with 9 aggregated points, each with its own override_tp{N}_c{conc} section in the new agg-variants.yaml:

  • TP8/EP8 on two nodes, GPU-resident KV: concurrency 3, 4, 10, 14
  • TP4/EP4 on one node, GPU-resident KV: concurrency 8, 16
  • TP4/EP4 on one node, DRAM HiCache (120–175 GB per rank): concurrency 20, 32, 40

The Dynamo frontend uses the KV router with session affinity. Per point, the recipe sets request admission and decode graph batch limits, memory fraction, SWA/full ratio, prefill-decode interval and chunked prefill; concurrency 16 and above use shortest-prefill-first, and concurrency 40 sets SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4. The draft attention backend is left to the image default except at TP8 concurrency 14 (fa4). The image and DFlash2 draft settings match the existing GB300 SGLang config.

AI model disclosure
  • Model/version: claude-opus-5-5 (the identifier exposed by the runtime).
  • Role: ran the tuning campaign (the orchestrating agent and its delegated task agents all used claude-opus-5-5), generated the recipe, master-config and perf-changelog changes from the measured runs, checked them locally, 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 GB300 AgentX 的 Dynamo + SGLang 配置(musespark-fp4-gb300-dynamo-sglang-agentic-dflash),共 9 个聚合点,每个点在新的 agg-variants.yaml 中有独立的 override_tp{N}_c{conc} 段:

  • 两节点 TP8/EP8,KV 仅驻留 GPU:并发 3、4、10、14
  • 单节点 TP4/EP4,KV 仅驻留 GPU:并发 8、16
  • 单节点 TP4/EP4,DRAM HiCache(每 rank 120–175 GB):并发 20、32、40

Dynamo 前端使用 KV 路由并开启会话亲和。每个点分别设置请求准入与 decode graph 批大小上限、显存占用比例、SWA/full 比例、prefill-decode interval 和 chunked prefill;并发 16 及以上使用 shortest-prefill-first,并发 40 设置 SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS=4。除 TP8 并发 14 使用 fa4 外,草稿注意力后端均采用镜像默认值。镜像与 DFlash2 草稿模型设置与现有 GB300 SGLang 配置相同。

AI 模型使用说明:运行环境提供的模型标识为 claude-opus-5-5。工作内容包括执行调优(编排代理及其委派的任务代理均使用 claude-opus-5-5)、根据实测结果生成配方、主配置和性能变更记录的改动、在本地检查,以及起草本 PR 说明。

🤖 Generated with Claude Code

@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

Comment on lines +12 to +13
environment:
HF_HUB_OFFLINE: "1"

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.

🔴 All nine points can fail at worker startup because the DFlash2 draft model cannot be found offline in the job's default HF cache. The recipe sets HF_HUB_OFFLINE: "1" (lines 13, 56) and loads RadixArk/Muse-Spark-Open-DFlash2 by Hub id (line 72). It never points HF_HUB_CACHE at /hf_hub_cache, where gb300-nv mounts the shared cache. Fix: add HF_HUB_CACHE: /hf_hub_cache under base.environment, as the dsv41flash GB300 SGLang recipe does, and make sure snapshot 46c90f412549c472941a68382d91a99e5e6372a0 is staged there.

Why this was flagged

Trigger: any sweep point of musespark-fp4-gb300-dynamo-sglang-agentic-dflash on cluster:gb300-nv. On gb300-nv the hf-hub-cache volume is mounted at /hf_hub_cache (configs/runners.yaml:688-690). For multi-node jobs, HF_HUB_CACHE=/hf_hub_cache is only passed to the benchmark client (agentic_client_env, infx/launch/drivers/srt/config.py:236-252), not to the SGLang workers. benchmark-multinode-tmpl.yml does not set it either, unlike benchmark-tmpl.yml:107 for single-node. So workers resolve speculative-draft-model-path and the pinned speculative-draft-model-revision in the default ~/.cache/huggingface/hub. With HF_HUB_OFFLINE=1 there is no download fallback, so draft loading should fail and the health check (max_attempts: 1440) runs until timeout. Every other multi-node recipe that loads a draft by Hub id either sets HF_HUB_CACHE or runs online. This is the only one with neither.

Verification: Trigger: any point of musespark-fp4-gb300-dynamo-sglang-agentic-dflash on cluster:gb300-nv. The new recipe sets HF_HUB_OFFLINE: "1" (agg-variants.yaml:13 and :56) and loads the draft by Hub id (lines 72-73). Nothing in the recipe sets HF_HUB_CACHE or HF_HOME. bind_workload (infx/srt_slurm/workload.py:328-332) puts HF_HUB_CACHE only into benchmark.env.

@shyeh25 shyeh25 added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 20, 2026
Conflicts:
	inferencex-e2e/perf-changelog.yaml (keep main's entries; this PR's entry stays last)

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

Copy link
Copy Markdown
Collaborator

[by Claude Code] The SGLang cookbook integration of this PR's AgentX config (musespark-fp4-gb300-dynamo-sglang-agentic-dflash) will happen in sgl-project/sglang#45513, 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 (cc9338f6a) 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#45513 has been merged. This PR's AgentX config (musespark-fp4-gb300-dynamo-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 (cc9338f6a) 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 39427144732

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

@nvpohanh staged run 39427144732.

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

@nvpohanh

nvpohanh commented Oct 21, 2026 •

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 new config, musespark-fp4-gb300-dynamo-sglang-agentic-dflash (framework: dynamo-sglang, cluster:gb300-nv, agentic-coding). It has 9 aggregated points from agg-variants.yaml: TP4/EP4 on one node at c8 and c16 (GPU KV), TP4/EP4 with DRAM HiCache at c20, c32 and c40, and TP8/EP8 on two nodes at c3, c4, c10 and c14. Assessed head: cc9338f6a37f977b8e931011eb4d17febf78fe64.
  • Code quality: the PR changes only YAML: a new srt-slurm variants file, one new nvidia-master.yaml entry, and one changelog entry appended at the end of the file. No scripts or shared launchers change. The changelog pr-link uses the pull/XXX placeholder, which main already uses in other entries, and check-changelog passed.
  • PR validation: pinned run https://github.com/SemiAnalysisAI/InferenceX/actions/runs/39427144732 (run-sweep.yml, pull_request, completed/success, head cc9338f6a, which is the current PR head). All 9 multi-node agentic / benchmark jobs and the canary succeeded, and none was skipped. The generic single-node */ and eval / jobs were skipped only because this sweep is multi-node agentic. The result artifacts (results_bmk, eval_results_all, bmk_agentic_*) are present and have not expired. Reuse is pinned with /use 39427144732: config(musespark): add GB300 Dynamo SGLang AgentX aggregated points / config(musespark): 新增 GB300 Dynamo SGLang AgentX 聚合配置点 #4344 (comment)
  • Evals: all 4 multi-node agentic eval / jobs in the same run succeeded, using the same image as the config. gsm8k em_strict: c16 0.9788, c20 0.9795, c32 0.9773, c40 0.9742 (n=1319 each). All are above the 0.90 default in infx/evals/thresholds.yaml, since musespark has no model-specific override. Accuracy view: https://inferencex.semianalysis.com/evaluation?unofficialRun=39427144732
  • Chat template: the server loads chat_template='/model/chat_template.jinja', and the agentic replay (agentx profile) goes through the Dynamo frontend's /v1/chat/completions endpoint (20,711 chat-completions requests in the c40 frontend log).
  • Draft precision: the draft is RadixArk/Muse-Spark-Open-DFlash2 at revision 46c90f412549c472941a68382d91a99e5e6372a0. This is the DFlash2 draft listed for Muse Spark Open in docs/MODELS.md and used by the existing GB300 SGLang config.
    • Shipped precision: BF16. config.json has "dtype": "bfloat16" and no quantization_config, there is no hf_quant_config.json, and the HF safetensors metadata shows 4.887B BF16 parameters.

    • Effective precision: BF16. The recipe sets no speculative-draft-model-quantization, draft dtype or draft checkpoint override. The pinned image inherits speculative_draft_model_quantization='modelopt_fp4' in server_args, but the draft is not quantized. The worker logs (c40 TP4 and c3 TP8) show the draft loading through the default loader: Load weight end ... type=DFlash2DraftModel has no quant= tag, while the target's line shows quant=modelopt_fp4, and no ModelOpt loader line appears for the draft. Draft weights use 3.63 GB per rank at TP4 and 2.60 GB per rank at TP8. That is consistent with BF16 and too large for NVFP4 (the whole 4.887B-parameter draft in NVFP4 is under ~2.8 GB before sharding).

    • Why the inherited modelopt_fp4 is a no-op for this draft (full write-up: config(musespark): add GB300 Dynamo SGLang AgentX aggregated points / config(musespark): 新增 GB300 Dynamo SGLang AgentX 聚合配置点 #4344 (comment)). The image's Muse Spark SGLang tree is copied into /sgl-workspace/sglang-muse-spark with no recorded commit, so this uses the closest public source, sgl-project/sglang a55ab7d5 ("Support Muse Spark Open"):

      1. The draft inherits the target quantization when none is given (serving_hook.py#L634-L648).
      2. The checkpoint has no quantization metadata, so this is online modelopt_fp4, loaded through the default loader rather than ModelOptModelLoader (loader.py#L4193-L4214).
      3. get_quant_config returns ModelOptFp4Config.for_online_weight_quantization, which is "quantize MoE expert weights online; leave dense layers in source precision" (weight_utils.py#L376-L382). Its get_quant_method returns UnquantizedLinearMethod for every LinearBase and applies NVFP4 only to FusedMoE (nvfp4_online.py#L136-L162).
      4. The DFlash2 draft is fully dense:

      So no draft weight is quantized.

    • Runtime cross-check (bytes per parameter): draft weight memory drops by 1.03 GB per rank from TP4 (3.63 GB) to TP8 (2.60 GB). That drop is 1/8 of the TP-sharded weights, which therefore total about 8.2 GB. The sharded weights are the five decoder layers, about 4.28B parameters, so that is about 2 bytes per parameter, i.e. BF16. NVFP4 would give a drop of about 0.3 GB.

    • SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE: defaults to EnvBool(False) (environ.py#L1054). It is read only by overrides.py#L847 and the DeepSeek NextN helper deepseek_common/utils.py#L131, not on the DFlash path.

      • Image ENV: the registry config of lmsysorg/sglang@sha256:8cfc5a72… (arm64 sha256:3657f02c…) sets only SGLANG_RUST_BUILD_MODE, SGLANG_BUILD_COMMIT, SGLANG_BUILD_URL and SGLANG_IMAGE_TAG, so the image does not set this flag.
    • Draft KV cache: FP8, inherited consistently from the target's kv-cache-dtype: fp8_e4m3.

    • SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE: absent from the recipe, the rendered config.yaml, the per-node *_config.json and the sbatch_script.sh of both inspected jobs, so it is not enabled. It is also absent from the worker's captured runtime environment (fingerprint_agg_w0.json → env, c40 and c3 jobs). That environment includes the variables baked into the image (SGLANG_BUILD_COMMIT=e00930c5489053f26d86b179cee0d087f846acbb, SGLANG_IMAGE_TAG, SGLANG_RUST_BUILD_MODE, ...), so the image does not set the flag either. The only SGLANG_* variables set are the build/debug variables, the recipe's SGLANG_OPT_*, SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS and SGLANG_TIMEOUT_KEEP_ALIVE, and the SGLANG_SIMULATE_ACC_* controls.

    • Verbatim load lines from the c40 job's worker log, im-gb300-r03-c018_agg_w0.out, in artifact multinode_server_logs_musespark_p1x4ep4_d0x4ep4_conc40_kvdram-hicache_fp4_dynamo-sglang_prefill-tp4-pp1-dcp1-pcp1-ep4-dpf-5cb366021d5ed70f1589 → multinode_server_logs.tar.gz, run 39427144732:

      [2026-10-20 16:27:41 TP0 EP0] Load weight end. elapsed=144.57 s, type=MuseSparkForConditionalGeneration, quant=modelopt_fp4, quant_algo=NVFP4, avail mem=144.07 GB, mem usage=130.77 GB.
      [2026-10-20 16:27:52 TP0 EP0] Load weight end. elapsed=3.30 s, type=DFlash2DraftModel, avail mem=140.44 GB, mem usage=3.63 GB.
      

      The TP8 c3 job shows the same pattern for all 8 ranks: type=DFlash2DraftModel, no quant= tag, mem usage=2.60 GB.

  • Golden AL: server environment has SGLANG_SIMULATE_ACC_LEN=4.05, SGLANG_SIMULATE_ACC_METHOD=match-expected, SGLANG_SIMULATE_ACC_TOKEN_MODE=real-draft-token, and the worker logs report accept len: 4.05. The source is infx/golden_al_distribution/musespark_dflash.yaml, muse-spark-open-816b-a42b-nvfp4 / thinking_on / key 7 = 4.05. That key matches speculative-num-draft-tokens: 8, which is DFlash block size 8, so 7 draft tokens.
  • MODELS.md: musespark is an active model (added 2026-10-15) with the Agentic coding scenario (SGLang with DFlash2 draft). Nothing is deprecated as of 2026-10-21.
  • Architecture: no --hf-overrides, --json-model-override-args (the effective value is {}) or other layer, expert or indexer skipping. enable-layernorm-sp, enable-megamoe-for-layernorm-sp, HiCache, scheduling and CUDA-graph settings change how the same computation runs, not the model's FLOPs.
  • Dynamo TRT-LLM metrics: N/A. This is Dynamo + SGLang, not TRT-LLM, so the Dynamo TRT-LLM --publish-metrics controls do not apply. For reference, SGLang enable-metrics: true and kv-events-config are set on the aggregated worker.
  • Image / engine order: lmsysorg/sglang:dev-muse-spark-open@sha256:8cfc5a72cb296771f5f8a4a4688cb6d05685610a830cbb616fa4ab0eb7bb2b0a is from the upstream lmsysorg repo and is the same image as the existing musespark-fp4-gb300-sglang-agentic-dflash entry. Dynamo 1.6.0.dev20261016 is installed from the public pypi.nvidia.com index as the deployment layer. This is an open-source engine (dynamo-sglang) submission, so the engine-first ordering rule does not apply, and SGLang GB300 entries for musespark already exist.
  • Upstream recipe: merged SGLang cookbook PR [Doc] cookbook: Add GLM-5.3 AgentX section and refresh with eight open InferenceX PRs sgl-project/sglang#45513 (MERGED 2026-10-21T05:22:39Z), published at https://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen#agentic-long-context-deployment
    • TP4/EP4 variant (#0, c8, c16, c20, c32, c40): the cookbook adds musespark-fp4-gb300-dynamo-sglang-agentic-dflash with its own per-override settings.
    • TP8/EP8 two-node variant (#2, c3, c4, c10, c14): also has its own per-override settings, including --nnodes, --dist-init-addr and --node-rank.
    • Covered: the Dynamo install (ai-dynamo==1.6.0.dev20261016), etcd and NATS, and the python3 -m dynamo.frontend command with --router-mode kv, --router-session-affinity-ttl-secs 3600 and the active-*-threshold None args. On the worker: DFLASH draft and revision, kv-events-config, the dyn-* parsers, preferred-sampling-params, model-loader-extra-config, layernorm-SP and MegaMoE, mem-fraction-static, swa-full-tokens-ratio, max-running-requests, cuda-graph-max-bs-decode, chunked prefill and max-prefill-tokens, cuda-graph-backend-prefill breakable, schedule-policy, prefill-decode-interval, HiCache size and write policy, page-size 128, speculative-draft-attention-backend fa4, and the SGLANG_OPT_*, SGLANG_TRTLLM_MHA_DECODE_SEQ_LEN_SPLITS, NCCL and PYTORCH_CUDA_ALLOC_CONF environment variables.
    • Excluded as InferenceX-only harness, collection or synthetic-benchmark controls:
      • Slurm, health-check and observability blocks, and sbatch/srun memory settings.
      • HF_HUB_*, the HF cache mount and PYTHONNOUSERSITE/PYTHONUNBUFFERED.
      • weight-loader-drop-cache-after-load: false, which only affects page cache during load.
      • The benchmark-client AIPERF_* and AGENTIC_WARMUP_GRACE_PERIOD environment variables.
      • SGLANG_SIMULATE_ACC_*, the AgentX synthetic acceptance control that must not be used in production.
      • dram-utilization, an InferenceX DRAM-allocation control.
      • The concurrency sweep values.
  • No engine patches: the PR adds no .patch files, git apply, sed or heredoc rewrites, monkey-patching or forked engine wheels. The only install on top of the image is the public Dynamo wheel (deployment layer). No waiver is needed, and none exists for config(musespark): add GB300 Dynamo SGLang AgentX aggregated points / config(musespark): 新增 GB300 Dynamo SGLang AgentX 聚合配置点 #4344.
  • Append-only: N/A. No changelog entry in this PR uses append-only: true. This is a new config.
  • Pareto coverage: one affected curve: musespark / agentic-coding / GB300 dynamo-sglang / fp4 (no other dynamo-sglang Muse Spark GB300 config exists on main). Source: run 39427144732, artifact results_bmk/agg_bmk.json, head cc9338f6a, image as above, metric per_gpu.total_tput_tps vs E2EL. I computed the frontier with upstream infx.workflows.pareto_coverage:

Signed: nvpohanh

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Verdict: WARN ⚠️

⚠️ Check 13 (Draft precision): WARN — musespark-fp4-gb300-dynamo-sglang-agentic-dflash (all 9 points): SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled by the recipe (the c40 worker Env:/Command: lines in job 118808114350 set no such flag and no draft quantization/dtype/checkpoint override). The inherited modelopt_fp4 is a no-op for the draft at the closest public source a55ab7d5: get_quant_config returns online ModelOptFp4Config, which leaves every LinearBase unquantized and applies NVFP4 only to FusedMoE, and dflash.py has no FusedMoE. Three pieces of evidence remain unverified. The image records no commit for its /sgl-workspace/sglang-muse-spark tree, so a55ab7d5 is not proven to be the pinned code. The runtime Load weight end ... type=DFlash2DraftModel lines and the fingerprint_agg_w0.json env exist only inside multinode_server_logs.tar.gz, which the verifier sandbox could not extract. The image's registry ENV could not be fetched. Human review of those log lines and the image ENV is needed to confirm the draft is effectively BF16 and the flag is unset.

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/**/gb300-*/ (which covers agg-variants.yaml); perf-changelog.yaml falls only under the catch-all.

✅ Check 1 (Passing sweep + evals on in-PR commit): PASS — the pinned head cc9338f6a (the current PR tip, unchanged) carries run 39427144732. In that run, all 8 multi-node agentic / jobs, the multi-node canary / c3 job and all 4 multi-node agentic eval / jobs are success. The generic single-node */ and eval / jobs are skipped because this config is multi-node AgentX only.

✅ Check 2 (Eval accuracy): PASS — eval_results_all/agg_eval_all.json shows gsm8k em_strict of 0.9788 (c16), 0.9795 (c20), 0.9773 (c32) and 0.9742 (c40), each with n=1319. All are above the 0.90 default in thresholds.yaml (musespark has no override), and the eval jobs use the config's lmsysorg/sglang:dev-muse-spark-open@sha256:8cfc5a72… image.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#45513 is MERGED (2026-10-21T05:22:39Z). The published muse-spark-open.jsx has entries #0 (TP4: c8/c16/c20/c32/c40) and #2 (two-node TP8: c3/c4/c10/c14) pinned to cc9338f6a. They include the Dynamo 1.6.0.dev20261016 install, etcd/NATS, the KV-router/session-affinity frontend command, --nnodes/--dist-init-addr/--node-rank, and per-point args/env (HiCache size/policy, page-size, fa4, MegaMoE/MHA-split env). The sign-off justifies its InferenceX-only exclusions.

✅ Check 4 (Reuse command): PASS — /use 39427144732 was posted by nvpohanh (COLLABORATOR) in this comment.

✅ Check 5 (Latest checklist template): PASS — all 18 items of the current template, including the upstream-PR sub-item, are present and checked.

✅ Check 6 (Upstream image / engine order): PASS — the image is from upstream lmsysorg/sglang (the same digest as the existing musespark-fp4-gb300-sglang-agentic-dflash), and a dynamo-sglang entry is an open-source engine, so the ordering rule does not apply.

✅ Check 7 (Deprecated models/scenarios): PASS — musespark (added 2026-10-15) is active with Agentic coding in MODELS.md as of 2026-10-21.

✅ Check 8 (No architecture hacks): PASS — the PR has no --hf-overrides, --json-model-override-args or model-config edits. Layernorm-SP, MegaMoE, HiCache and scheduling settings only change how the same computation runs.

✅ Check 9 (Spec-decode chat template): PASS — the DFLASH points run AgentX trace replay through the Dynamo frontend's chat-completions route, the same path existing AgentX configs use.

✅ Check 10 (No engine patches): PASS — the PR is YAML-only, with no patches, heredoc rewrites or engine wheels. The only install on top of the image is the public ai-dynamo deployment-layer wheel.

✅ Check 11 (Agentic golden AL): PASS — synthetic_acceptance.py maps DFLASH speculative-num-draft-tokens: 8 to 7 draft tokens, and musespark_dflash.yaml gives thinking_on key 7 = 4.05. The c40 job log shows SGLANG_SIMULATE_ACC_LEN=4.05 with match-expected and real-draft-token in the worker env.

➖ Check 12 (Append-only): N/A — the new changelog entry does not set append-only: true.

✅ Check 14 (Pareto coverage): PASS — this PR affects one curve: musespark / agentic-coding / GB300 dynamo-sglang / fp4. The source is run 39427144732 (results_bmk/agg_bmk.json, head cc9338f6a, single image), using per_gpu.total_tput_tps vs E2EL. infx.workflows.pareto_coverage gives P90 6/9 frontier points (TP8 c14 and TP4 c8/c16/c20/c32/c40) and P75 6/9 from the same configs, with 0 invalid points.

✅ Check 15 (PR description): PASS — the body's claims match the pinned recipe and master config: 9 points, TP8 c3/4/10/14, TP4 c8/16, 120–175 GB HiCache at c20/32/40, shortest-prefill-first at c≥16, MHA splits=4 at c40, fa4 only at TP8 c14, KV router with session affinity, and the same image as the GB300 SGLang entry.

✅ Check 16 (NVIDIA overview): PASS — Muse-Spark-Open has a populated SGLang cell in the Framework Recipes table of the NVIDIA overview.

➖ Check 17 (Metrics publication): N/A — this is Dynamo + SGLang, not TRT-LLM, so the Dynamo TRT-LLM --publish-metrics controls do not apply. The worker also sets --enable-metrics and --kv-events-config.

Assessed commit: cc9338f6a37f977b8e931011eb4d17febf78fe64.

@nvpohanh

Copy link
Copy Markdown
Collaborator

[by Claude Code] Draft-precision evidence for the Check 13 warning in the sign-off verdict. It shows that the DFlash2 draft runs in BF16 (as shipped) in pinned run 39427144732, even though server_args reports speculative_draft_model_quantization='modelopt_fp4'.

1. Which SGLang source the pinned image runs

  • lmsysorg/sglang:dev-muse-spark-open@sha256:8cfc5a72… (arm64 manifest sha256:3657f02c…, created 2026-10-02) is built on the v0.5.21 release image. Its OCI labels and its only SGLANG_* ENV entries (SGLANG_BUILD_COMMIT=e00930c5, SGLANG_BUILD_URL, SGLANG_IMAGE_TAG=lmsysorg/sglang:v0.5.21, SGLANG_RUST_BUILD_MODE=never) describe that base.
  • The Muse Spark SGLang tree is added afterwards with COPY . /sgl-workspace/sglang-muse-spark and installed editable as sglang 0.0.0.dev0. This matches the worker's fingerprint_agg_w0.json (-e /sgl-workspace/sglang-muse-spark/python). The image records no source commit for that tree.
  • The closest public source is the first public Muse Spark commit, a55ab7d5 ("Support Muse Spark Open"). The links below point to it. Because the exact commit inside the image cannot be confirmed, the runtime logs in section 4 are the primary evidence; the source links explain the mechanism behind those logs.

2. Shipped draft

RadixArk/Muse-Spark-Open-DFlash2@46c90f41 is a dense 5-layer DFlash2DraftModel.

  • config.json has "dtype": "bfloat16", a dense MLP (intermediate_size: 28672, no experts) and no quantization_config.
  • The repo has no hf_quant_config.json.
  • The safetensors metadata reports 4,887,479,552 BF16 parameters.

3. Why modelopt_fp4 appears and why it does not quantize the draft (source at a55ab7d5)

  1. Inheritance. With no --speculative-draft-model-quantization, the draft inherits the target's --quantization modelopt_fp4 (serving_hook.py#L634-L648). That is the value shown in server_args; the recipe does not set it.
  2. No checkpoint metadata. The draft checkpoint has no quantization config, so checkpoint detection is skipped and the draft ModelConfig keeps modelopt_fp4 (model_config.py#L1942-L1944).
  3. Loader choice. modelopt_fp4 on a checkpoint that is not already quantized counts as online modelopt_fp4 and goes through the default loader, not ModelOptModelLoader (loader.py#L4193-L4214). This is why the log has a Using ModelOptModelLoader… line for the target but none for the draft.
  4. Online quantization scope. With no quant config files, get_quant_config returns ModelOptFp4Config.for_online_weight_quantization(...), commented "quantize MoE expert weights online; leave dense layers in source precision" (weight_utils.py#L376-L382). Its get_quant_method gives every LinearBase the UnquantizedLinearMethod (the checkpoint is not FP8-serialized) and applies online NVFP4 only to FusedMoE layers (nvfp4_online.py#L136-L162).
  5. The DFlash draft has no MoE.
    • DFlashDraftModel sets supports_quantization = False (dflash.py#L631), and DFlash2DraftModel inherits it (dflash.py#L1205).
    • Its MLP uses dense MergedColumnParallelLinear/RowParallelLinear (dflash.py#L430-L452), and the context projection fc is a plain nn.Linear (dflash.py#L713).
    • dflash.py contains no FusedMoE, so no draft weight is eligible for online NVFP4, and the draft stays in its source BF16. The candidate selector uses the target's lm_head, so the draft has no head of its own.

4. Runtime evidence from the pinned image (run 39427144732)

Worker logs from the multinode_server_logs_* artifacts: c40 TP4 (im-gb300-r03-c018_agg_w0.out) and c3 TP8 (im-gb300-r03-c00{8,9}_agg_w0.out).

TP4  Load weight end. ... type=MuseSparkForConditionalGeneration, quant=modelopt_fp4, quant_algo=NVFP4, ... mem usage=130.77 GB.
TP4  Load weight end. elapsed=3.30 s, type=DFlash2DraftModel, avail mem=140.44 GB, mem usage=3.63 GB.
TP8  Load weight end. ... type=DFlash2DraftModel, avail mem=202.40 GB, mem usage=2.60 GB.   (all 8 ranks)
  • Memory check: 3.63 − 2.60 = 1.03 GB per rank going from TP4 to TP8. That difference equals S/8, where S is the total size of the TP-sharded weights, so S ≈ 8.2 GB. The sharded weights are the five decoder layers, about 4.28B parameters, so S ≈ 8.2 GB means about 2 bytes per parameter, which is BF16. In NVFP4 (about 0.56 bytes per parameter including scales), the TP4→TP8 difference would be about 0.3 GB.
  • No ModelOpt loader line: only the target load prints Using ModelOptModelLoader due to ModelOpt quantization config., which matches step 3.3.
  • Draft KV cache: dtype: torch.float8_e4m3fn, inherited from the target's --kv-cache-dtype fp8_e4m3. The verifier criteria allow this.

5. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE

It is not enabled.

  • Default: EnvBool(False) (environ.py#L1054).
  • Where it is read: only in overrides.py#L847 and the DeepSeek NextN helper deepseek_common/utils.py#L131, not on the DFlash path.
  • Not set anywhere in this run: absent from the image's ENV (registry config above), the PR recipe, the rendered config.yaml, the per-node *_config.json, sbatch_script.sh, and the worker's captured runtime environment (fingerprint_agg_w0.json → env) for both inspected jobs.

Conclusion: the shipped draft is BF16, and it runs in BF16 with the pinned image's default handling. The inherited modelopt_fp4 value only enables online NVFP4 for MoE experts, and the dense DFlash2 draft has none.

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

lgtm

Resolve conflicts: take main's refactored recipes and re-apply this PR's non-image edits; take main's perf-changelog.yaml and re-append this PR's entry.

中文:合并 origin/main;配方采用 main 重构后的版本并重新应用本 PR 的非镜像改动,perf-changelog.yaml 采用 main 版本并在末尾重新追加本 PR 的条目。
@adibarra

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run 39427144732

@adibarra
adibarra merged commit fb61487 into main Oct 22, 2026
24 checks passed
@adibarra
adibarra deleted the musespark-fp4-gb300-dynamo-sglang-agentic-agg branch October 22, 2026 01:28
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.

4 participants