Skip to content

Commit 0988d8a

Browse files
committed
B200 Agg config
B200 Agg config. Use sglang:nightly-dev-cu13-20260628-da802ddc.sqsh container.
1 parent 090ecbf commit 0988d8a

2 files changed

Lines changed: 46 additions & 20 deletions

File tree

‎.github/configs/nvidia-master.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ dsv4-fp4-b200-sglang:
17541754
# DP-attention (DP_ATTENTION=true) — balanced CONC range
17551755
- { tp: 8, ep: 8, dp-attn: true, conc-start: 64, conc-end: 128 }
17561756
# DP-attention (DP_ATTENTION=true) — max-throughput CONC range
1757-
- { tp: 8, ep: 8, dp-attn: true, conc-start: 256, conc-end: 512 }
1757+
- { tp: 8, ep: 8, dp-attn: true, conc-start: 256, conc-end: 1024 }
17581758

17591759
dsv4-fp4-b200-vllm:
17601760
image: vllm/vllm-openai:nightly-3f0a91bb96f8d72e0498b95c166e817deae14d62

‎benchmarks/single_node/fixed_seq_len/dsv4_fp4_b200.sh‎

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ if [[ "$MODEL" != /* ]]; then hf download "$MODEL"; fi
2121
nvidia-smi
2222

2323
# Common SGLANG env vars (apply to every config).
24-
export SGLANG_JIT_DEEPGEMM_PRECOMPILE=0
2524
export SGLANG_OPT_SWA_SPLIT_LEAF_ON_INSERT=1
26-
export SGLANG_OPT_USE_JIT_NORM=1
27-
export SGLANG_OPT_USE_JIT_INDEXER_METADATA=1
28-
export SGLANG_OPT_USE_TOPK_V2=1
29-
export SGLANG_OPT_USE_CUSTOM_ALL_REDUCE_V2=1
3025

3126
# TODO(Cam): the lmsysorg/sglang:deepseek-v4-blackwell image installs sglang
3227
# editable at /workspace/sglang/python; prior sglang tags used /sgl-workspace/sglang.
@@ -35,6 +30,7 @@ export SGLANG_OPT_USE_CUSTOM_ALL_REDUCE_V2=1
3530
# Drop the runner conditional once lmsys moves sglang back out of /workspace.
3631

3732
SERVER_LOG="$PWD/server.log"
33+
PORT=${PORT:-8888}
3834

3935
echo "TP: $TP, DP_ATTENTION: $DP_ATTENTION, CONC: $CONC, ISL: $ISL, OSL: $OSL"
4036

@@ -46,31 +42,61 @@ fi
4642

4743
start_gpu_monitor --output "$PWD/gpu_metrics.csv"
4844

49-
# Pick the parallelism + MoE backend based on DP_ATTENTION (mirrors the vllm
50-
# script's pattern). DP-attention turns on EP-MoE (deepep) and the related
51-
# mega_moe optimizations; single-instance uses flashinfer_mxfp4.
52-
DEEPEP_CONFIG='{"normal_dispatch":{"num_sms":96},"normal_combine":{"num_sms":96}}'
45+
# 1k inputs need more SWA cache headroom than 8k inputs do.
46+
if [[ "$ISL" == "1024" ]]; then
47+
SWA_FULL_TOKENS_RATIO=0.5
48+
else
49+
SWA_FULL_TOKENS_RATIO=0.1
50+
fi
5351

52+
# Pick the parallelism + MoE backend based on DP_ATTENTION. DP-attention turns on
53+
# EP-MoE (megamoe) + the mega_moe / mixed-chunk optimizations; single-instance
54+
# uses flashinfer_mxfp4.
5455
if [ "${DP_ATTENTION}" = "true" ]; then
55-
export SGLANG_OPT_USE_DEEPGEMM_MEGA_MOE=1
56-
export SGLANG_OPT_FIX_HASH_MEGA_MOE=1
56+
export SGLANG_CLIP_MAX_NEW_TOKENS_ESTIMATION=8
57+
export SGLANG_OPT_SWA_EVICT_DROP_PAGE_MARGIN=1
5758
export SGLANG_OPT_USE_FAST_MASK_EP=1
5859
export SGLANG_OPT_FIX_MEGA_MOE_MEMORY=1
59-
export SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK=4096
6060
export SGLANG_OPT_FIX_NEXTN_MEGA_MOE=1
61-
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=0
61+
export NVSHMEM_DISABLE_IB=1
62+
export SGLANG_OPT_SWA_RELEASE_LEAF_LOCK_AFTER_WINDOW=1
63+
export SGLANG_OPT_USE_ONLINE_COMPRESS=1
64+
export SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK=2048
65+
export SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_FP4_ACTS=1
66+
export SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_MXF4_KIND=1
67+
export SGLANG_EXPERIMENTAL_ENABLE_PIECEWISE_CUDA_GRAPH_MOE_A2A=1
68+
export NCCL_MNNVL_ENABLE=1
69+
export NCCL_CUMEM_ENABLE=1
70+
export MC_FORCE_MNNVL=1
71+
export SGLANG_MOONCAKE_CUSTOM_MEM_POOL=True
72+
73+
MEM_FRACTION_STATIC=0.835
74+
MAX_RUNNING_REQUESTS=4352
75+
SWA_FULL_TOKENS_RATIO=0.12
76+
6277
PARALLEL_ARGS=(
6378
--dp-size "$TP"
6479
--enable-dp-attention
65-
--moe-a2a-backend deepep
66-
--deepep-config "$DEEPEP_CONFIG"
67-
--chunked-prefill-size 32768
80+
--moe-a2a-backend megamoe
81+
--cuda-graph-max-bs 544
82+
--enable-mixed-chunk
83+
--chunked-prefill-size 16384
84+
--max-prefill-tokens 16384
85+
--tokenizer-worker-num 8
86+
--stream-interval 30
87+
--enable-prefill-delayer
6888
)
6989
else
90+
MEM_FRACTION_STATIC=0.90
91+
MAX_RUNNING_REQUESTS=512
7092
PARALLEL_ARGS=(
7193
--moe-runner-backend flashinfer_mxfp4
7294
--chunked-prefill-size 8192
7395
--disable-flashinfer-autotune
96+
--cuda-graph-max-bs 512
97+
--tokenizer-worker-num 8
98+
--stream-interval 30
99+
--enable-prefill-delayer
74100
)
75101
fi
76102

@@ -90,9 +116,9 @@ PYTHONNOUSERSITE=1 sglang serve \
90116
--trust-remote-code \
91117
--tp $TP \
92118
--disable-radix-cache \
93-
--max-running-requests "$((CONC * 3 / 2))" \
94-
--mem-fraction-static 0.90 \
95-
--swa-full-tokens-ratio 0.1 \
119+
--max-running-requests "$MAX_RUNNING_REQUESTS" \
120+
--mem-fraction-static "$MEM_FRACTION_STATIC" \
121+
--swa-full-tokens-ratio "$SWA_FULL_TOKENS_RATIO" \
96122
"${PARALLEL_ARGS[@]}" $EVAL_CONTEXT_ARGS >> $SERVER_LOG 2>&1 &
97123

98124
SERVER_PID=$!

0 commit comments

Comments
 (0)