Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
schema: 2

# Muse Spark Open on the sgl-muse-mega NVIDIA megakernel (--enable-nvidia-megakernel): one TP8
# worker over two GB300 nodes. The plugin fuses each batch-1 decode step (DFlash2 draft, target
# verify and accept) into one CUDA graph; prefill and larger batches run SGLang's own path.
Comment on lines +3 to +5

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.

🟡 (optional) Maintainers get two new header comments, which the repo comment rule bans; one also carries build history. The recipe header at agg-mk-variants.yaml:3-5 describes the recipe, topology and plugin. The master-config header at nvidia-master.yaml:7048-7052 also names source commits and where ai-dynamo came from. Fix: delete both header blocks, which covers the 2 sites listed. Keep the line-level comments that explain specific values, and leave the image and commit details in perf-changelog.yaml and the PR description. Same pattern at 2 sites (agg-mk-variants.yaml:3, nvidia-master.yaml:7048). [also at: inferencex-e2e/configs/nvidia-master.yaml:7052 - nit: Maintainers get two header comments that the AGENTS.md comment rule forbids, and one of them records build provenance.]

Why this was flagged

AGENTS.md:56-57 bans header comments that describe a file, topology, config, recipe, override or section, and bans history such as where code came from. agg-mk-variants.yaml:3-5 is a block above base: that describes the plugin and the 'one TP8 worker over two GB300 nodes' topology, so it is a recipe and topology header. nvidia-master.yaml:7048-7052 sits above the musespark-fp4-gb300-dynamo-sglang-agentic-dflash-mk-agg key. It describes the config and records provenance: 'SGLang 5884e4fec with the plugin at 0775fc6' and 'ai-dynamo 1.7.0.dev20261026 from the base nightly'. No sibling has such a header: the musespark entries at nvidia-master.yaml:6978 and 7078, and the sibling agg-variants.yaml, all have none. Before this change neither file had these headers. After merge they hold provenance that goes stale on the next image bump.

Verification: Severity: nit. Both blocks break the repository's mandatory comment rule in AGENTS.md:54-58, which bans header comments describing a recipe, topology or config, and history of where code came from. agg-mk-variants.yaml:3-5 describes the recipe and topology. nvidia-master.yaml:7048-7052 describes the config and records provenance. Nothing at runtime breaks.

base:
name: "musespark-fp4-gb300-dynamo-sglang-agentx-agg-mk"
identity:
model: {}
container: {}
dynamo:
install: false
environment:
HF_HUB_OFFLINE: "1"
HF_HUB_CACHE: /hf_hub_cache
slurm:
time_limit: "4:00:00"
health_check:
max_attempts: 1440
interval_seconds: 5
resources:
gpu_type: "gb300"
gpus_per_node: 4
services:
- name: etcd
type: etcd
placement:
node: infra
- name: nats
type: nats
placement:
node: infra
options:
max_payload_mb: 32
frontend:
type: dynamo
nginx_session_affinity: true
nginx_session_affinity_header: X-Dynamo-Session-ID
enable_multiple_frontends: false
env:
DYN_NATS_REQUEST_TIMEOUT_SECS: "1800"
args:
router-mode: "kv"
router-session-affinity-ttl-secs: "3600"
active-decode-blocks-threshold: "None"
active-prefill-tokens-threshold: "None"
active-prefill-tokens-threshold-frac: "None"
observability:
enabled: false
tachometer:
enabled: false
engine: sglang
roles:
agg:
nodes: 2
env:
HF_HUB_OFFLINE: "1"
PYTHONNOUSERSITE: "1"
PYTHONUNBUFFERED: "1"
SGLANG_TIMEOUT_KEEP_ALIVE: "900"
NCCL_CUMEM_ENABLE: "1"
NCCL_MNNVL_ENABLE: "1"
# Linear DFlash2 chain. The plugin refuses the token tree with SGLANG_SIMULATE_ACC_LEN,
# which AgentX synthetic acceptance always sets.
SGLANG_MUSE_MEGA_TREE: "0"
# The megakernel JIT-builds its kernels at startup; keep the build cache on node-local
# disk rather than the shared home.
SGLANG_CACHE_DIR: /tmp/sglang-cache
args:
served-model-name: "meta-models/Muse-Spark-Open-816B-A42B-NVFP4"
trust-remote-code: true
tensor-parallel-size: 8
expert-parallel-size: 8
enable-nvidia-megakernel: true
quantization: modelopt_fp4
moe-runner-backend: flashinfer_trtllm
attention-backend: trtllm_mha
page-size: 128
# The megakernel attends over and writes a bf16 KV pool.
kv-cache-dtype: bf16
# The megakernel requires an explicit context length; 1M is the model's full rope range.
context-length: 1048576
# The megakernel's ~60 GB per GPU counts against the static budget; 0.7 leaves room for a
# KV pool that holds the full 1M context (0.6 sized it to ~541K tokens).
mem-fraction-static: 0.7
max-running-requests: 1
cuda-graph-max-bs-decode: 1
enable-tf32-matmul: true
speculative-algorithm: DFLASH
# RadixArk/Muse-Spark-Open-DFlash2 at revision 46c90f41, by its local snapshot: the
# megakernel's draft build reads config.json and model.safetensors from a local
# directory and refuses a Hub id.
speculative-draft-model-path: "/hf_hub_cache/models--RadixArk--Muse-Spark-Open-DFlash2/snapshots/46c90f412549c472941a68382d91a99e5e6372a0"
speculative-draft-attention-backend: fa4
# DFlash2 verifies the current token plus 7 drafts, the largest block the golden curve covers.
speculative-num-draft-tokens: 8
# Under simulated acceptance the megakernel runs only greedy decode steps; sampled
# requests fall back to SGLang's step.
preferred-sampling-params: '{"temperature":0.0}'
reasoning-parser: muse
dyn-reasoning-parser: muse
dyn-tool-call-parser: muse
kv-events-config: '{"publisher":"zmq","topic":"kv-events","endpoint":"tcp://*:5557"}'
watchdog-timeout: 3600
enable-metrics: true
weight-loader-drop-cache-after-load: false
model-loader-extra-config: '{"enable_multithread_load":true}'
stream-interval: 20
sbatch_directives:
mem: "0"
srun_options:
mem: "0"
benchmark:
env:
HF_HUB_OFFLINE: "0"
TOKENIZER: /model
AIPERF_HTTP_TCP_USER_TIMEOUT: "900000"
AIPERF_REQUIRED_SERVER_METRIC_PREFIX: "sglang:"
AIPERF_HTTP_X_DYNAMO_SESSION_ID_FROM_CORRELATION_ID: "true"
AIPERF_USE_DYNAMO_CONV_AWARE_ROUTING: "0"
# Greedy requests, so every batch-1 decode step stays on the megakernel.
AIPERF_EXTRA_INPUTS: '{"temperature":0}'
AGENTIC_WARMUP_GRACE_PERIOD: "3600"
30 changes: 30 additions & 0 deletions inferencex-e2e/configs/nvidia-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8346,6 +8346,36 @@ musespark-fp4-gb300-dynamo-sglang-agentic-dflash-agg:
ep: 4
dp-attn: false

# Muse Spark Open GB300 on the sgl-muse-mega NVIDIA megakernel
# (https://github.com/facebookresearch/sgl-muse-mega): SGLang 5884e4fec with the plugin at
# 0775fc6 (simulated acceptance on the fused path, contexts up to 1M) and ai-dynamo
# 1.7.0.dev20261026 from the base nightly. One TP8 worker over two nodes at concurrency 1, linear
# DFlash2 chain of 7 drafts, greedy requests.
musespark-fp4-gb300-dynamo-sglang-agentic-dflash-mk-agg:
image: lmsysorg/sglang:dev-0775fc6-20261112-cu13-arm64@sha256:a200999b436614183cb4805a97ac4a0dc9c082da0c5149e62cf891c325317d83
model: meta-models/Muse-Spark-Open-816B-A42B-NVFP4
model-prefix: musespark
runner: cluster:gb300-nv
precision: fp4
framework: dynamo-sglang
router: { name: dynamo-router, version: "1.7.0.dev20261026" }
multinode: true
disagg: false
srt-recipe-dir: musespark/sglang/gb300-fp4/agentx
scenarios:
agentic-coding:
- search-space:
- spec-decoding: draft_model
conc-list: [1]
kv-offloading: none
srt-recipe: agg-mk-variants.yaml:base
worker:
num-worker: 1
gpus-per-worker: 8
tp: 8
ep: 8
dp-attn: false

musespark-fp4-gb300-dynamo-sglang-agentic-dflash-disagg:
image: lmsysorg/sglang:nightly-dev-cu13-20261119-6b374a55@sha256:cda9ed841f850ee6eb1892b50264af9c76de3add8dd476c2ebc0dbf4c0b3f62c
model: meta-models/Muse-Spark-Open-816B-A42B-NVFP4
Expand Down
12 changes: 12 additions & 0 deletions inferencex-e2e/perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13507,3 +13507,15 @@
- "Use native MTP and configure prefill HiCache and Mooncake DRAM storage for disaggregated serving."
- "Pack two PP2 prefill workers onto each GB300 prefill node and place the c890 client on the last decode node."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5233

- config-keys:
- musespark-fp4-gb300-dynamo-sglang-agentic-dflash-mk-agg

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.

🔴 Dashboard readers lose the published Muse Spark GB300 Dynamo-SGLang AgentX curve after merge; it shows just one greedy megakernel c1 point. The new key shares model-prefix, hardware, framework and precision with musespark-fp4-gb300-dynamo-sglang-agentic-dflash-agg. The repo says the newest normal run replaces that whole curve, and this regular entry sweeps only conc 1. Fix: give this point a curve identity separate from the existing family. If that is out of scope, list the sibling keys in this entry so the sweep reruns the whole curve. The PR text says the run does not extend that curve, but it replaces it.

Why this was flagged

infx/klaud/main.py:173 says a curve is every master key of one file sharing model, hardware, framework and precision, "since the newest run replaces that whole curve". So the new key at nvidia-master.yaml:7053 lands in the same agentic, offload-off agg series as dflash-agg override_tp8_c36 and override_tp8_c1 (nvidia-master.yaml:6992-7011). The changelog entry at perf-changelog.yaml:12847-12855 is a regular entry (no append-only) that lists only the new key. Its sweep yields one c1 point with greedy requests and a bf16 KV cache. On ingest that run becomes the newest run for the curve, so the c36 and standard sampled c1 points stop showing. On the base branch they stay published. The repo has handled this before: perf-changelog.yaml:12212 and 12828 list sibling agg keys "so the whole Dynamo + SGLang curve ... comes from this sweep".

Verification: Trigger: the regular changelog entry is merged and ingested. infx/klaud/main.py:171-173 and .github/klaud-candidate-prompt.md:69 both say "the newest normal run replaces that whole curve". This PR's regular entry (perf-changelog.yaml:12847-12855) sweeps only conc-list: [1]. That replaces the default-displayed multi-point curve.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed and fixed in a7374bd. live_families puts the new -mk-agg key in one curve with both musespark-fp4-gb300-dynamo-sglang-agentic-dflash-agg and -disagg, so the c1-only run would have replaced the agg and the disagg points. The changelog entry now lists all three keys, and the sweep reruns the full Muse Spark GB300 Dynamo + SGLang curve (15 points), as #4673 and #4997 did. The sibling keys' image, recipes and points are unchanged, and the PR description no longer claims the run leaves that curve alone.

中文

已确认并在 a7374bd 中修复。live_families 会把新的 -mk-agg key 与 musespark-fp4-gb300-dynamo-sglang-agentic-dflash-agg 和 -disagg 归为同一条曲线,因此只跑 c1 的运行会替换掉 agg 和 disagg 的所有点。现在 changelog 条目列出全部三个 key,sweep 会像 #4673 和 #4997 一样重跑整条 Muse Spark GB300 Dynamo + SGLang 曲线(15 个点)。两个已有 key 的 image、recipe 和点都不变,PR 描述中也已删除"不影响该曲线"的说法。

- musespark-fp4-gb300-dynamo-sglang-agentic-dflash-agg
- musespark-fp4-gb300-dynamo-sglang-agentic-dflash-disagg
scenario-type:
- agentic-coding
description:
- "Add musespark-fp4-gb300-dynamo-sglang-agentic-dflash-mk-agg: Muse Spark Open on the sgl-muse-mega NVIDIA megakernel (--enable-nvidia-megakernel) at concurrency 1, one TP8/EP8 worker over two GB300 nodes, on lmsysorg/sglang:dev-0775fc6-20261112-cu13-arm64 (SGLang 5884e4fec, sgl-muse-mega 0775fc6, ai-dynamo 1.7.0.dev20261026)."
- "Linear DFlash2 chain of 7 drafts (8 draft tokens, SGLANG_MUSE_MEGA_TREE=0) on the committed golden curve, BF16 KV cache, 128-token pages, trtllm_mha attention and a 1M context length. Requests are greedy: under simulated acceptance the megakernel runs only greedy batch-1 decode steps. The draft is read from its pinned local snapshot, which the megakernel's draft build requires."
- "The agg and disagg keys are listed so the whole Muse Spark GB300 Dynamo + SGLang curve comes from this sweep: the new key shares its model, hardware, framework and precision, and the newest run replaces that curve. Their image, recipes and points are unchanged from #5143: agg TP4 c56 and c76 and two-node TP8 c8, c15, c16, c21, c26 and c32; multi-node disagg with separate prefill and decode workers (6 to 14 GB300 nodes per point), 1P2D c176, 1P3D c192 and 3P4D c672."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5063
Loading