Skip to content

Commit e4cfef2

Browse files
committed
feat(kimik3.1): add GB300 llm-d vLLM AgentX recipes on kimi-k31-mc-f4c9618
Add Kimi-K3.1-Pro FP4/FP8-KV GB300 llm-d-router v1.0.0 AgentX recipes and frontend image staging support with the latest vLLM/Mooncake/DSpark configuration: - Use vLLM container vllm/vllm-openai:kimi-k31-mc-f4c9618 (vllm 0.1.dev25380+gf4c96184b) and released DSpark draft Inferact/Kimi-K3.1-Pro-DSpark @ e4e6e626 across agg, dcp8-disagg, and dep32-disagg llm-d recipes. - Enable EPLB (symm_mem, no redundant experts, window 1000, step 3000) on DEP32 prefill/decode, hybrid 3P1D prefill/decode, and hybrid 2P1D prefill. - Configure DEP32 c=960 as 1P1D (one external-LB DEP32 prefill worker with 80 GiB KV cache per rank, head-node client, 16 nodes total), 5 draft tokens with decode graphs in multiples of 6 up to 192, prefix-match-unit 512, DSpark SWA tail store/hits, 2048 MB prefill sparse-indexer logits budget, and Mooncake eviction 0.98/0.05 with llm-d approximate prefix-cache prefill routing (blockSizeTokens=512, lruCapacityPerServer=4096) and TORCH_SYMM_MEM_ALLOW_OVERLAPPING_DEVICES=1. - Configure DCP8 disagg for 1P5D at c=44 (5 drafts, K31_S30K=6) and c=104 (4 drafts, adaptive 4096-token long-prefill threshold) with opt-in TP8xDCP8 K31_* decode paths, and hybrid 3P1D (c=448) / 2P1D (c=256) with 5 drafts and decode graphs up to 1536, prefix-match-unit 1408, with llm-d session-affinity prefill routing. - Configure TP16/DCP16 agg c=1 with 7 drafts, prefix-match-unit 768, and opt-in c=1 K31_* decode paths. - Keep vLLM eval parser flags (reasoning-parser, tool-call-parser, enable-auto-tool-choice) on all eval variants and append a single perf-changelog.yaml entry for the three llmd-vllm config keys.
1 parent 1f8cf90 commit e4cfef2

10 files changed

Lines changed: 1551 additions & 3 deletions

File tree

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
schema: 2
2+
3+
base:
4+
name: kimik3.1-fp4-gb300-llmd-vllm-agentx-agg-dcp8
5+
identity:
6+
model: {}
7+
container: {}
8+
frameworks:
9+
vllm: "0.1.dev25380+gf4c96184b"
10+
11+
dynamo:
12+
install: false
13+
14+
environment:
15+
HF_HUB_CACHE: /hf_hub_cache
16+
17+
slurm:
18+
time_limit: "04:00:00"
19+
20+
health_check:
21+
max_attempts: 720
22+
interval_seconds: 10
23+
24+
resources:
25+
gpu_type: "gb300"
26+
gpus_per_node: 4
27+
28+
services:
29+
- name: mooncake-master
30+
type: mooncake-master
31+
# The first container start on a node unpacks the image and has taken over the default 120 s.
32+
readiness:
33+
port: 8700
34+
timeout_seconds: 300
35+
args:
36+
- "--default_kv_lease_ttl=60000"
37+
- "--eviction_high_watermark_ratio=0.95"
38+
- "--eviction_ratio=0.10"
39+
options:
40+
store_config:
41+
metadata_server: "P2PHANDSHAKE"
42+
global_segment_size: "160GB"
43+
local_buffer_size: "4GB"
44+
protocol: "rdma"
45+
device_name: "@fabric.rdma-devices"
46+
mode: "embedded"
47+
enable_offload: false
48+
49+
frontend:
50+
type: llm-d
51+
enable_multiple_frontends: false
52+
container_image: "ghcr.io/llm-d/llm-d-router-consolidated:v1.0.0@sha256:644be0359dfb462527b7cb9a4e535b42fe8cc900ed382bd62bc06d6ba26a1810"
53+
env:
54+
GOGC: "400"
55+
GOMEMLIMIT: "20GiB"
56+
args:
57+
v: 1
58+
allow-experimental-plugins: true
59+
grpc-max-recv-msg-size: "32MiB"
60+
grpc-max-send-msg-size: "32MiB"
61+
tracing: false
62+
metrics-endpoint-auth: false
63+
epp_config:
64+
plugins:
65+
- type: metrics-data-source
66+
parameters:
67+
scheme: http
68+
path: /metrics
69+
insecureSkipVerify: true
70+
- type: core-metrics-extractor
71+
parameters:
72+
engineConfigs:
73+
- name: vllm
74+
queuedRequestsSpec: "vllm:num_requests_waiting"
75+
runningRequestsSpec: "vllm:num_requests_running"
76+
kvUsageSpec: "vllm:kv_cache_usage_perc"
77+
loraSpec: ""
78+
cacheInfoSpec: ""
79+
- type: inflight-load-producer
80+
parameters:
81+
addEstimatedOutputTokens: false
82+
syncCrossReplicaState: false
83+
- type: active-request-scorer
84+
parameters:
85+
idleThreshold: 0
86+
inFlightLoadProducerName: inflight-load-producer
87+
- type: queue-scorer
88+
- type: kv-cache-utilization-scorer
89+
- type: max-score-picker
90+
- type: utilization-detector
91+
parameters:
92+
queueDepthThreshold: 100000
93+
kvCacheUtilThreshold: 1.0
94+
headroom: 1.0
95+
metricsStalenessThreshold: "3600s"
96+
dataLayer:
97+
injectDefaults: false
98+
sources:
99+
- pluginRef: metrics-data-source
100+
extractors:
101+
- pluginRef: core-metrics-extractor
102+
schedulingProfiles:
103+
- name: default
104+
plugins:
105+
- pluginRef: utilization-detector
106+
- pluginRef: active-request-scorer
107+
weight: 5
108+
- pluginRef: queue-scorer
109+
weight: 3
110+
- pluginRef: kv-cache-utilization-scorer
111+
weight: 3
112+
- pluginRef: max-score-picker
113+
114+
engine:
115+
type: vllm
116+
connector:
117+
dp_launch_mode: per_node
118+
119+
roles:
120+
agg:
121+
nodes: 2
122+
workers: 1
123+
gpus: 8
124+
env:
125+
PYTHONHASHSEED: "42"
126+
VLLM_HTTP_TIMEOUT_KEEP_ALIVE: "120"
127+
VLLM_USE_DIRECT_DCP_A2A: "1"
128+
VLLM_USE_DIRECT_DCP_Q_GATHER: "1"
129+
VLLM_USE_DIRECT_DCP_KV_GATHER: "1"
130+
VLLM_ALLREDUCE_USE_FLASHINFER: "1"
131+
VLLM_KIMI_K3_SHARD_SP_SHARED_EXPERT: "0"
132+
VLLM_RPC_TIMEOUT: "600000"
133+
TILELANG_CLEANUP_TEMP_FILES: "1"
134+
VLLM_USE_NCCL_SYMM_MEM: "0"
135+
NCCL_CUMEM_ENABLE: "1"
136+
NCCL_MNNVL_ENABLE: "1"
137+
NCCL_NVLS_ENABLE: "1"
138+
VLLM_SERVER_DEV_MODE: "1"
139+
VLLM_USE_V2_MODEL_RUNNER: "1"
140+
VLLM_USE_RUST_FRONTEND: "1"
141+
VLLM_MOONCAKE_LOAD_RECV_THREADS: "4"
142+
# Lookups lease only the store keys a hit loads.
143+
VLLM_MOONCAKE_STORE_SELECTIVE_LEASE: "1"
144+
MC_SLICE_SIZE: "1048576"
145+
MC_MAX_MR_SIZE: "4294967296"
146+
NCCL_P2P_LEVEL: "NVL"
147+
MC_ENABLE_DEST_DEVICE_AFFINITY: "1"
148+
WITH_NVIDIA_PEERMEM: "0"
149+
NCCL_NET_PLUGIN: "none"
150+
UCX_MEMTYPE_REG_WHOLE: "n"
151+
UCX_TCP_AF_PRIO: "inet"
152+
VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: "1800"
153+
VLLM_SSM_CONV_STATE_LAYOUT: "DS"
154+
TOKENSPEED_MLA_FP16_PARTIALS: "0"
155+
VLLM_ENGINE_READY_TIMEOUT_S: "3600"
156+
VLLM_ENABLE_GEMM_RS: "0"
157+
args:
158+
# DRAM offload through the Mooncake store only: no NIXL, no P/D.
159+
kv-transfer-config: '{"kv_connector":"MooncakeStoreConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"load_async":true,"lookup_async":true,"enable_cross_layers_blocks":false,"enable_offload":false}}'
160+
served-model-name: "moonshotai/Kimi-K3.1-Pro"
161+
prefix-match-unit: 128
162+
load-format: "fastsafetensors"
163+
kv-cache-dtype: "fp8"
164+
attention-config: '{"indexer_kv_dtype":"mxfp4"}'
165+
mamba-ssm-cache-dtype: "float32"
166+
mamba-cache-dtype: "float32"
167+
gpu-memory-utilization: 0.95
168+
tensor-parallel-size: 8
169+
decode-context-parallel-size: 8
170+
dcp-comm-backend: "a2a"
171+
cp-kv-cache-interleave-size: 1
172+
no-enable-flashinfer-autotune: true
173+
enable-cumem-allocator: true
174+
trust-remote-code: true
175+
stream-interval: 10
176+
language-model-only: true
177+
enable-prefix-caching: true
178+
additional-config: '{"decode_backend":"latency_specialized"}'
179+
use-replayssm: true
180+
# A lone prompt prefills in 16384-token chunks (8 of the 2048-token Mamba blocks);
181+
# next to other requests each prompt's chunk stops at 4096 tokens.
182+
max-num-batched-tokens: 16384
183+
long-prefill-token-threshold: 4096
184+
speculative-config: '{"model":"Inferact/Kimi-K3.1-Pro-DSpark","revision":"e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f","method":"dspark","num_speculative_tokens":4,"draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
185+
186+
sbatch_directives:
187+
mem: "0"
188+
cpus-per-task: "144"
189+
comment: >-
190+
'{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"model_loading","description":"Very large model will
191+
take extra loading time."}}'
192+
193+
srun_options:
194+
mem: "0"
195+
container-remap-root: ""
196+
197+
telemetry:
198+
collector_join_timeout_seconds: 12
199+
200+
benchmark:
201+
placement:
202+
node: head
203+
env:
204+
AIPERF_REQUIRED_SERVER_METRIC_PREFIX: "vllm:"
205+
AIPERF_HTTP_X_SESSION_ID_FROM_CORRELATION_ID: "true"
206+
207+
override_agg16_c1:
208+
roles:
209+
agg:
210+
nodes: 4
211+
gpus: 16
212+
# Opt-in c=1 decode paths of this image (default off): published-mailbox MoE tail (PUB8),
213+
# one-pass decode prep (NP1), fused drafter layers (DRF/S31), KDA/attention kernels for 8 rows.
214+
env: &override_agg16_c1_env
215+
K31_PUB8: "1"
216+
K31_PUB8_JOIN: "1"
217+
K31_PUB8_DPUSH: "1"
218+
K31_PUB8_AHEAD: "16"
219+
K31_NP1: "1"
220+
K31_S31MK: "1"
221+
K31_S31FC: "1"
222+
K31_S31DG: "1"
223+
K31_KDA8: "1"
224+
K31_S24FM: "1"
225+
K31_S24FL_HEADS: "12,6"
226+
K31_S22SP: "1"
227+
K31_DRF_ATTN: "1"
228+
K31_DRF_ACT: "1"
229+
K31_DRF_NORM: "1"
230+
args: &override_agg16_c1_args
231+
tensor-parallel-size: 16
232+
gpu-memory-utilization: 0.90
233+
decode-context-parallel-size: 16
234+
speculative-config: '{"model":"Inferact/Kimi-K3.1-Pro-DSpark","revision":"e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f","method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
235+
# The released drafter's KV block at TP16 x DCP16.
236+
prefix-match-unit: 768
237+
max-num-seqs: 1
238+
max-cudagraph-capture-size: 2048
239+
compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[7,8,14,16,28,32,56,64,128,256,512,1024,2048]}'
240+
241+
override_agg16_c1_eval:
242+
roles:
243+
agg:
244+
nodes: 4
245+
gpus: 16
246+
env: *override_agg16_c1_env
247+
args:
248+
<<: *override_agg16_c1_args
249+
reasoning-parser: kimi_k3
250+
tool-call-parser: kimi_k3
251+
enable-auto-tool-choice: true

0 commit comments

Comments
 (0)