Repository navigation
[NVIDIA][AgentX] Muse Spark Open GB300 SGLang megakernel point at concurrency 1 / [NVIDIA][AgentX] Muse Spark Open GB300 SGLang megakernel 并发 1 测试点 #5063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||
| 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" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 flaggedinfx/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
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed and fixed in a7374bd. 中文已确认并在 a7374bd 中修复。 |
||
| - 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 | ||
There was a problem hiding this comment.
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 themusespark-fp4-gb300-dynamo-sglang-agentic-dflash-mk-aggkey. 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.