Skip to content

Commit 127597c

Browse files
authored
Update GB300 FP8 GLM-5 recipe (#160)
* Update GB300 FP8 GLM-5 recipe * Update GB300 FP8 GLM-5 sweep config --------- Co-authored-by: weireweire <[email protected]>
1 parent 69d04b2 commit 127597c

1 file changed

Lines changed: 96 additions & 54 deletions

File tree

‎recipes/gb300-fp8/glm5.yaml‎

Lines changed: 96 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# B200-FP8 GLM5 8k1k disaggregated recipe
1+
# GB300-FP8 GLM5 disaggregated recipe
22

33
base:
44
name: "gb300-fp8-glm5"
55

66
model:
7-
path: "glm5-fp8"
8-
container: "sglang-v0.5.10-cu130.post1"
7+
path: "glm-5-fp8"
8+
container: "v0.5.11"
99
precision: "fp8"
1010

1111
identity:
1212
model:
1313
repo: "zai-org/GLM-5-FP8"
1414
revision: "4f96cc5eec29dcee5d6ded54f7ffe889438f9516"
1515
frameworks:
16-
dynamo: "1.1.0.dev2"
17-
sglang: "0.5.10.post1"
16+
dynamo: "1.1.0"
17+
sglang: "0.5.11"
1818

1919
resources:
2020
gpu_type: "gb300"
@@ -23,7 +23,7 @@ base:
2323
frontend:
2424
type: "dynamo"
2525
dynamo:
26-
version: "1.1.0.dev2"
26+
version: "1.1.0"
2727

2828
backend:
2929
prefill_environment:
@@ -33,9 +33,13 @@ base:
3333
SGLANG_DISAGGREGATION_HEARTBEAT_MAX_FAILURE: "100000"
3434
SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000"
3535
SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000"
36+
MC_TE_METRIC: "true"
37+
MC_FORCE_MNNVL: "1"
38+
NCCL_MNNVL_ENABLE: "1"
39+
NCCL_CUMEM_ENABLE: "1"
3640
SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True"
3741
SGLANG_USE_MESSAGE_QUEUE_BROADCASTER: "0"
38-
NCCL_CUMEM_ENABLE: "1"
42+
SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK: "1"
3943
DYN_REQUEST_PLANE: "nats"
4044

4145
decode_environment:
@@ -45,13 +49,17 @@ base:
4549
SGLANG_DISAGGREGATION_HEARTBEAT_MAX_FAILURE: "100000"
4650
SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT: "100000"
4751
SGLANG_DISAGGREGATION_WAITING_TIMEOUT: "100000"
52+
MC_TE_METRIC: "true"
53+
MC_FORCE_MNNVL: "1"
54+
NCCL_MNNVL_ENABLE: "1"
55+
NCCL_CUMEM_ENABLE: "1"
4856
SGLANG_MOONCAKE_CUSTOM_MEM_POOL: "True"
4957
SGLANG_USE_MESSAGE_QUEUE_BROADCASTER: "0"
50-
NCCL_CUMEM_ENABLE: "1"
58+
SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK: "1"
5159
DYN_REQUEST_PLANE: "nats"
5260
# DeepEP per-rank dispatch buffer; must be >= ceil(cuda_graph_max_bs / dp_size).
53-
# Default 128 overflows with large DP + batch (e.g. 4096/24 ≈ 171 > 128). Limit 1024.
54-
SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK: "256"
61+
# Default 128 overflows with large DP + batch (e.g. 4096/24 ~= 171 > 128). Limit 1024.
62+
SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK: "512"
5563

5664
sglang_config:
5765
prefill:
@@ -70,12 +78,12 @@ base:
7078
cuda-graph-max-bs: 256
7179
mem-fraction-static: 0.7
7280
context-length: 9600
73-
chunked-prefill-size: 65536
81+
chunked-prefill-size: 32768
7482
max-prefill-tokens: 8192
7583

7684
# Parallelism
77-
tensor-parallel-size: 8
78-
data-parallel-size: 8
85+
tensor-parallel-size: 4
86+
data-parallel-size: 4
7987
expert-parallel-size: 1
8088
enable-dp-attention: true
8189
enable-dp-lm-head: true
@@ -89,7 +97,7 @@ base:
8997
# Other flags
9098
enable-flashinfer-allreduce-fusion: true
9199
disable-radix-cache: true
92-
stream-interval: 30
100+
weight-loader-prefetch-checkpoints: true
93101
model-loader-extra-config: '{"enable_multithread_load": true}'
94102

95103
decode:
@@ -108,19 +116,18 @@ base:
108116
mem-fraction-static: 0.8
109117
context-length: 9600
110118

111-
# Parallelism
112-
tensor-parallel-size: 8
113-
expert-parallel-size: 1
114-
115119
# Backend
116120
nsa-decode-backend: "trtllm"
117121
nsa-prefill-backend: "trtllm"
118122
# moe-runner-backend: "cutedsl"
119123

124+
# Detokenizer
125+
skip-tokenizer-init: true
126+
stream-interval: 30
127+
120128
# Other flags
121-
enable-flashinfer-allreduce-fusion: true
122129
disable-radix-cache: true
123-
stream-interval: 30
130+
weight-loader-prefetch-checkpoints: true
124131
model-loader-extra-config: '{"enable_multithread_load": true}'
125132

126133
health_check:
@@ -131,106 +138,141 @@ base:
131138
type: "sa-bench"
132139
req_rate: "inf"
133140

134-
#### 8k1k ####
141+
################# 8k1k ######################
135142

136143
zip_override_8k1k_hightpt:
137144
resources:
138-
prefill_nodes: 2
139-
prefill_workers: 1
140-
decode_nodes: 6
145+
prefill_nodes: [14, 12, 10, 8]
146+
prefill_workers: [14, 12, 10, 8]
147+
decode_nodes: [4, 6, 8, 10]
141148
decode_workers: 1
149+
frontend:
150+
enable_multiple_frontends: true
151+
num_additional_frontends: 9
142152
backend:
143153
sglang_config:
144154
decode:
145155

146-
tensor-parallel-size: 24
147-
expert-parallel-size: 24
148-
data-parallel-size: 24
156+
# Parallelism
157+
tensor-parallel-size: [16, 24, 32, 40]
158+
expert-parallel-size: [16, 24, 32, 40]
159+
data-parallel-size: [16, 24, 32, 40]
149160

150161
# dp
151162
enable-dp-lm-head: true
152163
enable-dp-attention: true
153164
moe-dense-tp-size: 1
154-
load-balance-method: "total_tokens"
165+
# load-balance-method: "total_tokens"
155166

156167
# ep
157-
ep-num-redundant-experts: 32
168+
ep-num-redundant-experts: [32, 32, 32, 24]
158169
ep-dispatch-algorithm: "static"
159170
# eplb-algorithm: "deepseek"
160171

161172
moe-a2a-backend: "deepep"
162173
deepep-mode: "low_latency"
163174
deepep-config: "/configs/deepep_config.json"
164175

165-
max-running-requests: 4096
166-
cuda-graph-max-bs: 4096
176+
max-running-requests: [2800, 1700, 1300, 900]
177+
cuda-graph-max-bs: [ 175, 70, 40, 22]
167178

168179
benchmark:
169180
isl: 8192
170181
osl: 1024
171-
concurrencies: ["2048"]
182+
concurrencies: ["2800", "1700", "1300", "900"]
172183

173184
zip_override_8k1k_lowlat:
174185
resources:
175186
prefill_nodes: 1
176187
prefill_workers: 1
177-
decode_nodes: [2, 3, 4, 5, 7, 8]
178-
decode_workers: [2, 3, 4, 5, 7, 8]
188+
decode_nodes: [9, 17, 17]
189+
decode_workers: [9, 17, 17]
179190
backend:
180191
sglang_config:
181192
decode:
182-
data-parallel-size: 1
193+
# Parallelism
194+
tensor-parallel-size: 4
195+
expert-parallel-size: 1
196+
data-parallel-size: 1
197+
enable-flashinfer-allreduce-fusion: true
198+
199+
moe-runner-backend: "flashinfer_trtllm"
183200

184-
max-running-requests: [80, 48, 34, 22, 8, 1]
185-
cuda-graph-max-bs: [80, 48, 34, 22, 8, 1]
201+
max-running-requests: [15, 8, 1]
202+
cuda-graph-max-bs: [15, 8, 1]
186203

187204
benchmark:
188205
isl: 8192
189206
osl: 1024
190-
concurrencies: ["256", "256", "200", "128", "64", "12"]
207+
concurrencies: ["150", "128x64x32", "24"]
191208

192209

193210

194-
#### 1k1k ####
211+
################# 1k1k #################
195212

196213
zip_override_1k1k_hightpt:
197214
resources:
198-
prefill_nodes: [1, 1, 1, 1]
199-
prefill_workers: [1, 1, 1, 1]
200-
decode_nodes: [1, 2, 3, 4]
201-
decode_workers: [1, 2, 3, 4]
215+
prefill_nodes: [12, 10, 8, 6, 4]
216+
prefill_workers: [12, 10, 8, 6, 4]
217+
decode_nodes: [ 6, 8, 10, 12, 14]
218+
decode_workers: 1
219+
frontend:
220+
enable_multiple_frontends: true
221+
num_additional_frontends: 9
202222
backend:
203223
sglang_config:
204224
decode:
205-
data-parallel-size: 8
225+
226+
# Parallelism
227+
tensor-parallel-size: [24, 32, 40, 48, 56]
228+
expert-parallel-size: [24, 32, 40, 48, 56]
229+
data-parallel-size: [24, 32, 40, 48, 56]
230+
231+
# dp
206232
enable-dp-lm-head: true
207233
enable-dp-attention: true
208-
load-balance-method: "total_tokens"
234+
moe-dense-tp-size: 1
235+
# load-balance-method: "total_tokens"
209236

210-
max-running-requests: [2560, 1232, 784, 560]
211-
cuda-graph-max-bs: [2560, 1232, 784, 560]
237+
# ep
238+
ep-num-redundant-experts: [32, 32, 24, 32, 24]
239+
ep-dispatch-algorithm: "static"
240+
# eplb-algorithm: "deepseek"
241+
242+
moe-a2a-backend: "deepep"
243+
deepep-mode: "low_latency"
244+
deepep-config: "/configs/deepep_config.json"
245+
246+
max-running-requests: [8192, 8192, 256, 6500, 5700]
247+
cuda-graph-max-bs: [512, 256, 180, 128, 100]
212248

213249
benchmark:
214250
isl: 1024
215251
osl: 1024
216-
concurrencies: ["2576", "1248", "800", "576"]
252+
concurrencies: ["8192", "7500", "7300", "6500", "5700"]
217253

218254

219255
zip_override_1k1k_lowlat:
220256
resources:
221257
prefill_nodes: 1
222258
prefill_workers: 1
223-
decode_nodes: [8, 8]
224-
decode_workers: [8, 8]
259+
decode_nodes: 17
260+
decode_workers: 17
225261
backend:
226262
sglang_config:
227263
decode:
228-
data-parallel-size: 1
264+
# Parallelism
265+
tensor-parallel-size: 4
266+
expert-parallel-size: 1
267+
data-parallel-size: 1
268+
enable-flashinfer-allreduce-fusion: true
269+
270+
moe-runner-backend: "flashinfer_trtllm"
229271

230-
max-running-requests: [64, 1]
231-
cuda-graph-max-bs: [64, 1]
272+
max-running-requests: [32, 1]
273+
cuda-graph-max-bs: [32, 1]
232274

233275
benchmark:
234276
isl: 1024
235277
osl: 1024
236-
concurrencies: ["512x256x128x64x32", "16"]
278+
concurrencies: ["512x256x128x64", "32"]

0 commit comments

Comments
 (0)