Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ base:
identity:
model: {}
frameworks:
dynamo: "1.6.0.dev20261014"
sglang: "0.0.0.dev1+ga6a8c5601"
dynamo: "1.6.0"
sglang: "0.0.0.dev1+g656331295"
dynamo:
install: false
request_plane: tcp
Expand Down Expand Up @@ -102,6 +102,7 @@ override_tp2_c16:
args:
tensor-parallel-size: 2
expert-parallel-size: 2
dsv4-attn-backend: flashmla
enable-decoder-swa-bounded-replay: true
cuda-graph-backend-prefill: disabled
prefill-decode-interval: 96
Expand All @@ -121,10 +122,46 @@ override_tp4_c1:
args:
tensor-parallel-size: 4
expert-parallel-size: 1
prefill-decode-interval: 0
max-running-requests: 1
mem-fraction-static: 0.91
kv-cache-dtype: fp8_e4m3
dsv4-attn-backend: flashmla
moe-a2a-backend: none
enable-nvidia-megakernel: true
startup-weight-load-mode: serial
enable-decoder-swa-bounded-replay: true
cuda-graph-backend-prefill: disabled
context-length: 1048576
max-running-requests: 1
cuda-graph-max-bs-decode: 1
prefill-decode-interval: 16
schedule-policy: lpm
swa-prefix-tails: 128
tokenizer-backend: fastokens
enable-metrics-for-all-schedulers: true

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) Published server-side token counters for the TP4 c1 point will be about 4x too high, unlike c4/c16 on the same curve. enable-metrics-for-all-schedulers makes all four TP ranks of this non-DP-attention worker record scheduler metrics. Each rank's series carries a distinct tp_rank label, and sum_stat in backends/sglang.py adds them all. Fix: drop enable-metrics-for-all-schedulers from override_tp4_c1, since it only helps with dp-attention. The alternative is to have the sglang adapter keep one TP rank per counter.

Why this was flagged

The override at agg-variants.yaml:139 runs TP4 without dp-attention (master row dp-attn: false, nvidia-master.yaml:9434). SGLang documents this flag as making schedulers on all TP ranks, not only TP 0, record metrics. That yields one series per tp_rank for scheduler counters such as sglang:realtime_tokens. SglangBackend.populate (infx/results/agentic/backends/sglang.py:108-113) sums realtime_tokens{mode=prefill_compute} across every series via sum_stat (common.py:135-153). So server_metrics.tokens.prompt_by_source.computed in the published aggregate (agentic/init.py:244) comes out roughly 4x the real value. Any other scheduler-side counter summed there is inflated the same way. On the base branch only TP rank 0 records these, and c4/c16/tp2 still do, so the c1 point is inconsistent with its curve. compute_server_metrics (server_metrics.py:55-59) nulls only gpu_total_tokens for dynamo-sglang replicas. It does not normalize the summed counters.

Verification: agg-variants.yaml:139 adds enable-metrics-for-all-schedulers: true to override_tp4_c1 only, a TP4 point with no dp-attention. sum_stat (common.py:135-153) adds every matching series and does not dedupe by tp_rank. So tokens.prompt_by_source.computed (sglang.py:140) comes out about 4x too high for TP4 c1. The c4/c16 points on the same curve don't set the flag, so they report only TP0.

env:
SGLANG_SPEC_TP_SYNC: rng,-dspark-accept-sample
SGLANG_ENABLE_DSV41_ENGRAM_HOST_TABLE: "1"
SGLANG_DSV41_ENGRAM_HOST_TABLE_LAYOUT: per_rank
SGLANG_NVIDIA_MEGAKERNEL_SLOTS: hop_a,moe,gate,attn,embed,two_shot,markov,draft_lm_head,aux_mean_stats,gate_wide,shared_ll,hop_a_batch2,engram,attn_qkv_a,attn_qkv_a_bf16,index_q_mxfp8_in,attn_indexer,hc_prenorm,hop_b,hop_b_wide,early_trigger,hop_b_start_trigger,draft,draft_moe,draft_gate,draft_tail,draft_post,draft_seam,draft_attn,draft_qfront,draft_wo_a,draft_swapab,draft_qkv_a,draft_prenorm,draft_qkv_a_ll,draft_wo_b_ll,sched_ahead,req_pos_once,kv_before_wait,target_lm_head,hop_b_quad_trigger,lm_head_pinned_tactic
SGLANG_DSPARK_FUSED_ACCEPT_TAIL: "1"
SGLANG_DSPARK_DEFER_CONTEXT_KV: "1"
SGLANG_OPT_DSV41_DSPARK_DRAFT_PREP_FORK: "1"
SGLANG_OPT_DSV41_DSPARK_POST_FOLD: "1"
SGLANG_OPT_DSV41_DSPARK_SKIP_PREFILLED_INPUTS: "1"
SGLANG_OPT_DSV41_DSPARK_ONE_LAUNCH_COMMIT_STAGE: "1"
SGLANG_OPT_DSV41_DSPARK_PREPARE_INPUTS_ONCE: "1"
SGLANG_OPT_DSV41_DSPARK_MID_FOLD: "1"
SGLANG_OPT_DSV41_TARGET_VERIFY_METADATA_GLUE: "1"
SGLANG_OPT_DSV41_TARGET_METADATA_EARLY: "1"
SGLANG_OPT_SKIP_GLUED_REPLAY_VIEW: "1"
SGLANG_OPT_DSV41_POST_FORWARD_CUDA_GRAPH: "1"
SGLANG_OPT_DSV41_BLOCKWISE_REJECTION: "1"
SGLANG_OPT_DSV41_SAMPLING_ACCEPT_GRAPH: "1"
SGLANG_SIMULATE_ACC_GREEDY: "0"
SGLANG_OPT_DSV41_DSPARK_SIM_DRAW_AHEAD: "1"
SGLANG_OPT_MXFP4_DEFERRED_FINALIZED_SHAPE: "1"
SGLANG_OPT_CUDA_GRAPH_FILL_FAST_PATH: "1"
NCCL_CUMEM_ENABLE: "0"
NCCL_MNNVL_ENABLE: "0"

override_tp4_c4:
name: dsv41flash-fp4-gb300-dynamo-sglang-agentx-agg-tp4ep1-c4
Expand All @@ -134,6 +171,7 @@ override_tp4_c4:
args:
tensor-parallel-size: 4
expert-parallel-size: 1
dsv4-attn-backend: flashmla
prefill-decode-interval: 0
swa-prefix-tails: 4096
max-running-requests: 128
Expand All @@ -150,6 +188,7 @@ override_tp4_c16:
args:
tensor-parallel-size: 4
expert-parallel-size: 1
dsv4-attn-backend: flashmla
prefill-decode-interval: 192
swa-prefix-tails: 4096
max-running-requests: 128
Expand Down
4 changes: 2 additions & 2 deletions inferencex-e2e/configs/nvidia-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9487,13 +9487,13 @@ dsv41flash-fp4-gb300-sglang-agentic-dspark:
- { tp: 2, ep: 2, dp-attn: true, kv-offloading: none, spec-decoding: mtp, conc-list: [64, 128, 160], router: { name: sglang-router, version: "0.3.2" }, srt-recipe: agentic.yaml }
- { tp: 4, ep: 1, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 4, 16], srt-recipe: agentic.yaml }
dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg:
image: lmsysorg/sglang:nightly-dev-cu13-20261015-a6a8c560@sha256:0a1ba33aa4e032b8c5bcebdc69c45664074c032074add4f7db01629ec1fcc381
image: lmsysorg/sglang:nightly-dev-cu13-20261025-65633129@sha256:069efa1d6a2d58309529f53eeee34c39d69b1cdb455eaf7fb8de83e3fd0be727
model: deepseek-ai/DeepSeek-V4.1-Flash
model-prefix: dsv41flash
runner: cluster:gb300-nv
precision: fp4
framework: dynamo-sglang
router: { name: dynamo-router, version: "1.6.0.dev20261014" }
router: { name: dynamo-router, version: "1.6.0" }
multinode: true
disagg: false
srt-recipe-dir: dsv41flash/sglang/gb300-fp4/agentx
Expand Down
13 changes: 13 additions & 0 deletions inferencex-e2e/perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11168,6 +11168,19 @@
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4461
scenario-type: [agentic-coding]

- config-keys:
- dsv41flash-fp4-gb300-dynamo-sglang-agentic-agg
- dsv41flash-fp4-gb300-dynamo-sglang-agentic-dspark-disagg
scenario-type:
- agentic-coding
description:
- "Move the aggregated points to lmsysorg/sglang:nightly-dev-cu13-20261025-65633129 (digest sha256:069efa1d6a2d58309529f53eeee34c39d69b1cdb455eaf7fb8de83e3fd0be727) with the ai-dynamo 1.6.0 it ships. The image includes sglang#45450 and the sgl-nvidia-mega plugin at 6fd7ac30, so every point runs it as shipped."
- "On this image dsv4-attn-backend auto picks FlashMLA MegaAttention (sglang#43922), which zero-pads the per-rank attention heads to 64, so TP4 c4/c16 and TP2/EP2 c16 pin dsv4-attn-backend flashmla; their other engine settings are unchanged."
- "TP4 c1 becomes a strict batch-1 NVIDIA megakernel point: max-running-requests 1, cuda-graph-max-bs-decode 1, --enable-nvidia-megakernel with 42 kernel slots, the sglang#45450 decode-graph gates, SWA prefix tails 128, prefill-decode interval 16, LPM scheduling and NCCL_CUMEM_ENABLE/NCCL_MNNVL_ENABLE off."
- "TP4 c1 also sets kv-cache-dtype fp8_e4m3 and SGLANG_SPEC_TP_SYNC=rng,-dspark-accept-sample as in the reference BS1 recipe, and mem-fraction-static 0.91 (the reference launch's resolved default; the base recipe sets 0.8). It drops cuda-graph-backend-prefill: disabled, so prefill uses the image default, which disables the prefill CUDA graph for DeepSeek-V4."
- "Include the unchanged disaggregated points in the sweep so the curve is complete."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4434

- config-keys:
- minimaxm31flash-fp4-b200-vllm-agentic-dspark
description:
Expand Down
Loading