Skip to content

Commit ade8e1a

Browse files
nvpohanhclaude
andauthored
[NVIDIA][AgentX] GB300 Kimi-K3.1-Pro FP4 Dynamo+SGLang: retune disaggregated and megakernel points / [NVIDIA][AgentX] GB300 Kimi-K3.1-Pro FP4 Dynamo+SGLang:重新调优分离式与 megakernel 配置点 (#4893)
* Retune Kimi-K3.1-Pro GB300 Dynamo+SGLang AgentX points Replace the disaggregated and aggregated megakernel search spaces with nine points on the same image, draft and golden AL: - TP16 decode: 4P1D c520 and 3P1D c340 verify 5 tokens with a 132 GB per-rank prefill HiCache; 2P1D c180 verifies 6; 1P1D c60 verifies 8. - TP8 decode: 1P3D c50 verifies 8; 1P4D c36 and c16 verify 9. - Megakernel: c2 with max-running-requests 1; c4 with max-running-requests 2 and K31MK_* schedule options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Link the perf-changelog entry to #4893 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a72dd01 commit ade8e1a

5 files changed

Lines changed: 101 additions & 39 deletions

File tree

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/kimik3.1/sglang/gb300-fp4/agentx/agg-tp16-mk-variants.yaml‎

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ base:
111111
model-loader-extra-config: '{"enable_multithread_load":true,"num_threads":4}'
112112
weight-loader-disable-mmap: true
113113
weight-loader-prefetch-checkpoints: false
114+
weight-loader-drop-cache-after-load: false
114115
watchdog-timeout: 3600
115116
enable-metrics: true
116117
enable-cache-report: true
@@ -134,24 +135,35 @@ base:
134135
AIPERF_DATASET_MMAP_CACHE_ENABLED: "true"
135136
AGENTIC_WARMUP_GRACE_PERIOD: "1800"
136137

137-
# max-running-requests equals the concurrency, so every verify step stays on a megakernel graph.
138-
override_tp16_c1:
139-
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-agg-tp16-mk-c1
140-
roles:
141-
agg:
142-
args:
143-
max-running-requests: 1
144-
138+
# max-running-requests is half the concurrency: each verify step serves fewer requests at a
139+
# higher per-request rate, and every step stays on a megakernel graph.
145140
override_tp16_c2:
146141
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-agg-tp16-mk-c2
147142
roles:
148143
agg:
149144
args:
150-
max-running-requests: 2
145+
max-running-requests: 1
151146

152147
override_tp16_c4:
153148
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-agg-tp16-mk-c4
154149
roles:
155150
agg:
151+
env:
152+
# Megakernel schedule options for the 2-request verify step.
153+
K31MK_ATTNRES_CARVEOUT: "100"
154+
K31MK_AUX_SIDE_STREAM: "1"
155+
K31MK_EXPERTS_COOPERATIVE: "0"
156+
K31MK_FUSED_INDEX_Q_VERIFY: "1"
157+
K31MK_INDEX_SPLIT_COARSE_BITS: "12"
158+
K31MK_INDEX_SPLIT_MIN: "320000"
159+
K31MK_KDA_COMMIT: "1"
160+
K31MK_KDA_TOKEN_OWNED: "1"
161+
K31MK_MLAQ_AFTER_SCORING: "1"
162+
K31MK_MLA_VALUE_EARLY_TRIGGER: "1"
163+
K31MK_OPROJ_NORM_FOLD: "1"
164+
K31MK_RANK0_BCAST: "1"
165+
K31MK_RANKTOPK_BITONIC: "1"
166+
K31MK_REARM_FENCE: "3"
167+
K31MK_TAIL_RMS_FOLD: "1"
156168
args:
157-
max-running-requests: 4
169+
max-running-requests: 2

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/kimik3.1/sglang/gb300-fp4/agentx/disagg-tp16-variants.yaml‎

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,25 +208,46 @@ base:
208208
AIPERF_DATASET_MMAP_CACHE_ENABLED: "true"
209209
AGENTIC_WARMUP_GRACE_PERIOD: "1800"
210210

211-
override_3p1d_c300:
212-
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp16-3p1d-c300
211+
override_4p1d_c520:
212+
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp16-4p1d-c520
213+
roles:
214+
prefill:
215+
nodes: 8
216+
workers: 4
217+
args:
218+
# 132 GB per rank, 528 GB per prefill node: a larger host cache cuts prefill recompute.
219+
hicache-size: 132
220+
# Verifies the current token plus 4 drafts: at this batch the shorter block is faster.
221+
speculative-num-draft-tokens: 5
222+
decode:
223+
args:
224+
speculative-num-draft-tokens: 5
225+
226+
override_3p1d_c340:
227+
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp16-3p1d-c340
213228
roles:
214229
prefill:
215230
nodes: 6
216231
workers: 3
217232
args:
218-
# Verifies the current token plus 5 drafts: at this batch the shorter block is faster.
219-
speculative-num-draft-tokens: 6
233+
hicache-size: 132
234+
speculative-num-draft-tokens: 5
220235
decode:
221236
args:
222-
speculative-num-draft-tokens: 6
237+
speculative-num-draft-tokens: 5
223238

224239
override_2p1d_c180:
225240
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp16-2p1d-c180
226241
roles:
227242
prefill:
228243
nodes: 4
229244
workers: 2
245+
args:
246+
# Verifies the current token plus 5 drafts.
247+
speculative-num-draft-tokens: 6
248+
decode:
249+
args:
250+
speculative-num-draft-tokens: 6
230251

231-
override_1p1d_c76:
232-
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp16-1p1d-c76
252+
override_1p1d_c60:
253+
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp16-1p1d-c60

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/kimik3.1/sglang/gb300-fp4/agentx/disagg-tp8-variants.yaml‎

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,30 @@ base:
202202
AIPERF_DATASET_MMAP_CACHE_ENABLED: "true"
203203
AGENTIC_WARMUP_GRACE_PERIOD: "1800"
204204

205-
override_1p3d_c60:
206-
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp8-1p3d-c60
205+
override_1p3d_c50:
206+
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp8-1p3d-c50
207207

208-
override_1p3d_c36:
209-
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp8-1p3d-c36
208+
override_1p4d_c36:
209+
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp8-1p4d-c36
210+
roles:
211+
prefill:
212+
args:
213+
# Verifies the current token plus 8 drafts: at these low batches the longer block is faster.
214+
speculative-num-draft-tokens: 9
215+
decode:
216+
nodes: 8
217+
workers: 4
218+
args:
219+
speculative-num-draft-tokens: 9
210220

211-
override_1p4d_c32:
212-
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp8-1p4d-c32
221+
override_1p4d_c16:
222+
name: kimik3.1-fp4-gb300-dynamo-sglang-agentx-disagg-tp8-1p4d-c16
213223
roles:
224+
prefill:
225+
args:
226+
speculative-num-draft-tokens: 9
214227
decode:
215228
nodes: 8
216229
workers: 4
230+
args:
231+
speculative-num-draft-tokens: 9

‎inferencex-e2e/configs/nvidia-master.yaml‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7986,8 +7986,15 @@ kimik3.1-fp4-gb300-dynamo-sglang-agentic-dflash-disagg:
79867986
- dram-utilization: 0.80
79877987
search-space:
79887988
- spec-decoding: draft_model
7989-
conc-list: [300]
7990-
srt-recipe: disagg-tp16-variants.yaml:override_3p1d_c300
7989+
conc-list: [520]
7990+
srt-recipe: disagg-tp16-variants.yaml:override_4p1d_c520
7991+
kv-offloading: dram
7992+
kv-offload-backend: { name: hicache }
7993+
prefill: { num-worker: 4, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
7994+
decode: { num-worker: 1, tp: 16, ep: 16, dp-attn: false, dcp-size: 8 }
7995+
- spec-decoding: draft_model
7996+
conc-list: [340]
7997+
srt-recipe: disagg-tp16-variants.yaml:override_3p1d_c340
79917998
kv-offloading: dram
79927999
kv-offload-backend: { name: hicache }
79938000
prefill: { num-worker: 3, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
@@ -8000,29 +8007,29 @@ kimik3.1-fp4-gb300-dynamo-sglang-agentic-dflash-disagg:
80008007
prefill: { num-worker: 2, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
80018008
decode: { num-worker: 1, tp: 16, ep: 16, dp-attn: false, dcp-size: 8 }
80028009
- spec-decoding: draft_model
8003-
conc-list: [76]
8004-
srt-recipe: disagg-tp16-variants.yaml:override_1p1d_c76
8010+
conc-list: [60]
8011+
srt-recipe: disagg-tp16-variants.yaml:override_1p1d_c60
80058012
kv-offloading: dram
80068013
kv-offload-backend: { name: hicache }
80078014
prefill: { num-worker: 1, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
80088015
decode: { num-worker: 1, tp: 16, ep: 16, dp-attn: false, dcp-size: 8 }
80098016
- spec-decoding: draft_model
8010-
conc-list: [60]
8011-
srt-recipe: disagg-tp8-variants.yaml:override_1p3d_c60
8017+
conc-list: [50]
8018+
srt-recipe: disagg-tp8-variants.yaml:override_1p3d_c50
80128019
kv-offloading: dram
80138020
kv-offload-backend: { name: hicache }
80148021
prefill: { num-worker: 1, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
80158022
decode: { num-worker: 3, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
80168023
- spec-decoding: draft_model
80178024
conc-list: [36]
8018-
srt-recipe: disagg-tp8-variants.yaml:override_1p3d_c36
8025+
srt-recipe: disagg-tp8-variants.yaml:override_1p4d_c36
80198026
kv-offloading: dram
80208027
kv-offload-backend: { name: hicache }
80218028
prefill: { num-worker: 1, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
8022-
decode: { num-worker: 3, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
8029+
decode: { num-worker: 4, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
80238030
- spec-decoding: draft_model
8024-
conc-list: [32]
8025-
srt-recipe: disagg-tp8-variants.yaml:override_1p4d_c32
8031+
conc-list: [16]
8032+
srt-recipe: disagg-tp8-variants.yaml:override_1p4d_c16
80268033
kv-offloading: dram
80278034
kv-offload-backend: { name: hicache }
80288035
prefill: { num-worker: 1, tp: 8, ep: 2, dp-attn: false, dcp-size: 8 }
@@ -8042,12 +8049,6 @@ kimik3.1-fp4-gb300-dynamo-sglang-agentic-dflash-agg-mk:
80428049
scenarios:
80438050
agentic-coding:
80448051
- search-space:
8045-
- spec-decoding: draft_model
8046-
conc-list: [1]
8047-
num-nodes: 5
8048-
srt-recipe: agg-tp16-mk-variants.yaml:override_tp16_c1
8049-
kv-offloading: none
8050-
worker: { num-worker: 1, tp: 16, ep: 1, dp-attn: false }
80518052
- spec-decoding: draft_model
80528053
conc-list: [2]
80538054
num-nodes: 5

‎inferencex-e2e/perf-changelog.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12581,3 +12581,16 @@
1258112581
- "Use gpu-memory-utilization 0.95 with --disable-cudagraph-memory-reserve, a 236 GB Host L2 with a 4 GB retraction snapshot pool, and smg with the gateway settings ts serve applies (passthrough policy, L0/L1 tokenizer caches, warn logging, no retries, circuit breaker or load monitoring)."
1258212582
- "Replace the search space with per-concurrency rows in agg-variants.yaml: concurrency 1, 2, 4 and 108 with 104 request slots, and running caps of 2, 6, 12, 35 and 72 requests at concurrency 8, 20, 36, 56 and 80."
1258312583
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4922
12584+
12585+
- config-keys:
12586+
- kimik3.1-fp4-gb300-dynamo-sglang-agentic-dflash-disagg
12587+
- kimik3.1-fp4-gb300-dynamo-sglang-agentic-dflash-agg-mk
12588+
scenario-type:
12589+
- agentic-coding
12590+
description:
12591+
- "Retune the Kimi-K3.1-Pro GB300 Dynamo+SGLang AgentX search space on the same lmsysorg/sglang:dev-kimi-k31-pro image and RadixArk/Kimi-K3.1-Dflash2-Preview DFLASH draft."
12592+
- "TP16-decode rows (TP8/DCP8 prefill, one TP16 DCP8 x attention DP2 EP16 MegaMoE decode worker): 4P1D c520 and 3P1D c340 verify 5 tokens with a 132 GB per-rank prefill HiCache; 2P1D c180 verifies 6 tokens; 1P1D c60 verifies 8."
12593+
- "TP8-decode rows: 1P3D c50 verifies 8 tokens; 1P4D c36 and c16 verify 9."
12594+
- "Aggregated megakernel rows: c2 with max-running-requests 1; c4 with max-running-requests 2 and K31MK_* megakernel schedule options."
12595+
- "Remove 3P1D c300, 1P1D c76, 1P3D c60 and c36, 1P4D c32 and the c1 megakernel row."
12596+
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4893

0 commit comments

Comments
 (0)