Skip to content
Merged
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
Expand Up @@ -6,7 +6,9 @@ base:
model: {}
container: {}
dynamo:
install: false
install: true
source:
wheel: "1.8.0.dev20261119"
environment:
HF_HUB_OFFLINE: "1"
HF_HUB_CACHE: /hf_hub_cache
Expand Down Expand Up @@ -83,6 +85,7 @@ base:
weight-loader-drop-cache-after-load: false
model-loader-extra-config: '{"enable_multithread_load":true}'
stream-interval: 20
layernorm-sp-min-tokens: 1024
sbatch_directives:
mem: "0"
srun_options:
Expand All @@ -97,67 +100,67 @@ base:
AIPERF_USE_DYNAMO_CONV_AWARE_ROUTING: "0"
AGENTIC_WARMUP_GRACE_PERIOD: "3600"

override_tp4_c56:
override_tp4_c76:
roles:
agg:
env:
SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: "4096"
args:
mem-fraction-static: 0.95
mem-fraction-static: 0.96
swa-full-tokens-ratio: 0.2
max-running-requests: 32
cuda-graph-max-bs-decode: 32
max-running-requests: 72
cuda-graph-max-bs-decode: 72
chunked-prefill-size: 16384
max-prefill-tokens: 16384
cuda-graph-backend-prefill: breakable
schedule-policy: fcfs
prefill-decode-interval: 8
enable-hierarchical-cache: true
hicache-size: 140
hicache-size: 195

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) The TP4 c76 aggregated point asks for more host DRAM than its 0.80 budget. Its results will understate the DRAM KV offload it actually used. The override sets hicache-size: 195 per rank, which is 780 GB across the four ranks of one gb300-nv node. The matrix sets that point's total-cpu-dram-gb cap to 771 GB, from dram-utilization: 0.80. Fix: keep each rank's hicache-size × 4 at or below the 771 GB cap, for example hicache-size: 192. Alternatively, raise this entry's dram-utilization so the published allocation matches what runs.

Why this was flagged

The trigger is the new override_tp4_c76 (agg-variants.yaml:104-122). It runs from the dram-utilization: 0.80 block of musespark-fp4-gb300-dynamo-sglang-agentic-dflash-agg (nvidia-master.yaml, TP4 conc 76, num-nodes 1). agentic_dram_offload_gb (infx/matrix/generate.py:474-517) uses gb300-nv's available-cpu-dram-mib: 920_000 (runners.yaml:674). With BYTES_PER_GB = 1e9 that gives int(920000×1048576×0.80/1e9) = 771 GB for the 4-GPU worker. SGLang reads hicache-size in GB per rank, so 4 × 195 = 780 GB, which is past the cap. Nothing checks hicache-size against TOTAL_CPU_DRAM_GB: a grep for hicache in infx/ finds no hits. Results record allocated_cpu_dram_gb = 771 (infx/results/agentic/init.py:205) while the server uses about 0.81 of node DRAM, so the curve is mislabeled against other 0.80 points. On the base branch the TP4 points used hicache-size: 140, which is 560 GB and stays under the cap. The other new points fit: c56 uses 170 × 4 = 680 GB, and the disagg prefill points use 175 or 180 × 4, at most 720 GB.

Verification: nit. This happens every time the new aggregated TP4 c76 point runs. agg-variants.yaml:120 sets hicache-size: 195 with tensor-parallel-size: 4, so 780 GB, while infx/matrix/generate.py:474-517 caps it at 771 GB, recorded as allocated_cpu_dram_gb (infx/results/agentic/init.py:205). Nothing in infx checks hicache-size against the cap.

hicache-write-policy: write_back
speculative-draft-attention-backend: trtllm_mha

override_tp4_c50:
override_tp4_c56:
roles:
agg:
env:
SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: "4096"
args:
mem-fraction-static: 0.95
mem-fraction-static: 0.96
swa-full-tokens-ratio: 0.2
max-running-requests: 32
cuda-graph-max-bs-decode: 32
chunked-prefill-size: 16384
max-prefill-tokens: 16384
cuda-graph-backend-prefill: breakable
schedule-policy: fcfs
prefill-decode-interval: 20
prefill-decode-interval: 16
enable-hierarchical-cache: true
hicache-size: 140
hicache-size: 170
hicache-write-policy: write_back
speculative-draft-attention-backend: trtllm_mha

override_tp4_c46:
override_tp8_c32:
roles:
agg:
nodes: 2
env:
SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK: "4096"
NCCL_CUMEM_ENABLE: "1"
NCCL_MNNVL_ENABLE: "1"
PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:True"
args:
mem-fraction-static: 0.95
swa-full-tokens-ratio: 0.2
max-running-requests: 32
cuda-graph-max-bs-decode: 32
chunked-prefill-size: 16384
max-prefill-tokens: 16384
cuda-graph-backend-prefill: breakable
schedule-policy: fcfs
prefill-decode-interval: 24
enable-hierarchical-cache: true
hicache-size: 140
hicache-write-policy: write_back
speculative-draft-attention-backend: trtllm_mha
tensor-parallel-size: 8
expert-parallel-size: 8
mem-fraction-static: 0.88
swa-full-tokens-ratio: 0.3
max-running-requests: 8
cuda-graph-max-bs-decode: 8
schedule-policy: shortest-prefill-first
prefill-decode-interval: 128
prefill-decode-interval-min-bs: 4
speculative-draft-attention-backend: fa4

override_tp8_c36:
override_tp8_c26:
roles:
agg:
nodes: 2
Expand All @@ -170,13 +173,73 @@ override_tp8_c36:
expert-parallel-size: 8
mem-fraction-static: 0.88
swa-full-tokens-ratio: 0.3
max-running-requests: 36
cuda-graph-max-bs-decode: 36
max-running-requests: 6
cuda-graph-max-bs-decode: 6
schedule-policy: shortest-prefill-first
prefill-decode-interval: 128
prefill-decode-interval-min-bs: 4
speculative-draft-attention-backend: fa4

override_tp8_c1:
override_tp8_c21:
roles:
agg:
nodes: 2
env:
NCCL_CUMEM_ENABLE: "1"
NCCL_MNNVL_ENABLE: "1"
PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:True"
args:
tensor-parallel-size: 8
expert-parallel-size: 8
mem-fraction-static: 0.88
swa-full-tokens-ratio: 0.3
max-running-requests: 5
cuda-graph-max-bs-decode: 5
schedule-policy: shortest-prefill-first
prefill-decode-interval: 128
prefill-decode-interval-min-bs: 2
speculative-draft-attention-backend: fa4

override_tp8_c16:
roles:
agg:
nodes: 2
env:
NCCL_CUMEM_ENABLE: "1"
NCCL_MNNVL_ENABLE: "1"
PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:True"
args:
tensor-parallel-size: 8
expert-parallel-size: 8
mem-fraction-static: 0.88
swa-full-tokens-ratio: 0.3
max-running-requests: 3
cuda-graph-max-bs-decode: 3
schedule-policy: shortest-prefill-first
prefill-decode-interval: 256
prefill-decode-interval-min-bs: 3
speculative-draft-attention-backend: fa4

override_tp8_c15:
roles:
agg:
nodes: 2
env:
NCCL_CUMEM_ENABLE: "1"
NCCL_MNNVL_ENABLE: "1"
PYTORCH_CUDA_ALLOC_CONF: "expandable_segments:True"
args:
tensor-parallel-size: 8
expert-parallel-size: 8
mem-fraction-static: 0.88
swa-full-tokens-ratio: 0.3
max-running-requests: 3
cuda-graph-max-bs-decode: 3
schedule-policy: shortest-prefill-first
prefill-decode-interval: 128
speculative-draft-attention-backend: fa4

override_tp8_c8:
roles:
agg:
nodes: 2
Expand All @@ -191,5 +254,6 @@ override_tp8_c1:
swa-full-tokens-ratio: 0.3
max-running-requests: 1
cuda-graph-max-bs-decode: 1
prefill-decode-interval: 64
speculative-draft-attention-backend: trtllm_mha
schedule-policy: shortest-prefill-first
prefill-decode-interval: 128
speculative-draft-attention-backend: fa4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ base:
model: {}
container: {}
dynamo:
install: false
install: true
source:
wheel: "1.8.0.dev20261119"
environment:
HF_HUB_OFFLINE: "1"
HF_HUB_CACHE: /hf_hub_cache
Expand Down Expand Up @@ -179,105 +181,48 @@ override_3p4d_tp8_tp8_c672:
roles:
prefill:
nodes: 6
args:
hicache-size: 175
decode:
nodes: 8
args:
cuda-graph-max-bs-decode: 56
max-running-requests: 56
disaggregation-decode-extra-slots: 56
disable-flashinfer-autotune: true
frontend:
args:
router-session-affinity-mode: soft
router-session-affinity-ttl-secs: 14400
router-decode-active-request-weight: 100000

override_2p3d_tp8_tp8_c352:
roles:
prefill:
nodes: 4
decode:
nodes: 6
args:
cuda-graph-max-bs-decode: 40
max-running-requests: 40
disaggregation-decode-extra-slots: 40
frontend:
args:
router-session-affinity-mode: soft
router-session-affinity-ttl-secs: 14400

override_1p2d_tp8_tp8_c224:
override_1p2d_tp8_tp8_c176:
roles:
prefill:
nodes: 2
decode:
nodes: 4
args:
cuda-graph-max-bs-decode: 36
max-running-requests: 36
disaggregation-decode-extra-slots: 36

override_1p2d_tp8_tp8_c160:
roles:
prefill:
nodes: 2
hicache-size: 180
decode:
nodes: 4
args:
cuda-graph-max-bs-decode: 24
max-running-requests: 24
disaggregation-decode-extra-slots: 24
disable-flashinfer-autotune: true

override_1p3d_tp8_tp8_c224:
override_1p3d_tp8_tp8_c192:
roles:
prefill:
nodes: 2
args:
hicache-size: 180
decode:
nodes: 6
args:
cuda-graph-max-bs-decode: 20
max-running-requests: 20
disaggregation-decode-extra-slots: 20

override_1p4d_tp8_tp8_c112:
roles:
prefill:
nodes: 2
decode:
nodes: 8
args:
cuda-graph-max-bs-decode: 6
max-running-requests: 6
disaggregation-decode-extra-slots: 6

override_1p5d_tp8_tp8_c120:
roles:
prefill:
nodes: 2
decode:
nodes: 10
args:
cuda-graph-max-bs-decode: 5
max-running-requests: 5
disaggregation-decode-extra-slots: 5

override_1p4d_tp8_tp8_c56:
roles:
prefill:
nodes: 2
decode:
nodes: 8
args:
cuda-graph-max-bs-decode: 3
max-running-requests: 3
disaggregation-decode-extra-slots: 3

override_1p4d_tp8_tp8_c32:
roles:
prefill:
nodes: 2
decode:
nodes: 8
args:
cuda-graph-max-bs-decode: 3
max-running-requests: 3
disaggregation-decode-extra-slots: 3
disable-flashinfer-autotune: true
frontend:
args:
router-decode-active-request-weight: 100000
Loading