Skip to content

Commit bfce49f

Browse files
committed
kimik2.5 fp4 b200: v0.26.0 image, TP/DEP sweep, tuning
1 parent 740e353 commit bfce49f

4 files changed

Lines changed: 38 additions & 11 deletions

File tree

benchmarks/single_node/fixed_seq_len/kimik2.5_fp4_b200.sh

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ check_env_vars \
1212
RANDOM_RANGE_RATIO \
1313
RESULT_FILENAME
1414

15+
PARALLEL_ARGS=(--tensor-parallel-size "$TP" --data-parallel-size 1)
16+
GMU=0.90
17+
PREFILL_SCHEDULE_ARGS=()
18+
if [ "${DP_ATTENTION:-false}" = "true" ]; then
19+
PARALLEL_ARGS=(--tensor-parallel-size 1 --data-parallel-size "$TP")
20+
GMU=0.80
21+
PREFILL_SCHEDULE_ARGS=(--prefill-schedule-interval 4)
22+
fi
23+
24+
EP_ARGS=()
25+
if [ "${EP_SIZE:-1}" -gt 1 ]; then
26+
EP_ARGS=(--enable-expert-parallel)
27+
fi
28+
1529
if [[ -n "$SLURM_JOB_ID" ]]; then
1630
echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME"
1731
fi
@@ -22,6 +36,7 @@ nvidia-smi
2236

2337
export TORCH_CUDA_ARCH_LIST="10.0"
2438
export PYTHONNOUSERSITE=1
39+
export VLLM_FLASHINFER_AUTOTUNE_SKIP_OPS=""
2540

2641
SERVER_LOG=/workspace/server.log
2742

@@ -41,17 +56,22 @@ export VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=0
4156

4257
set -x
4358
vllm serve $MODEL --host 0.0.0.0 --port $PORT \
44-
--tensor-parallel-size=$TP \
45-
--gpu-memory-utilization 0.90 \
59+
"${PARALLEL_ARGS[@]}" \
60+
"${EP_ARGS[@]}" \
61+
"${PREFILL_SCHEDULE_ARGS[@]}" \
62+
--gpu-memory-utilization "$GMU" \
4663
--max-model-len $MAX_MODEL_LEN \
4764
--max-num-seqs $CONC \
4865
--reasoning-parser kimi_k2 \
4966
--tool-call-parser kimi_k2 \
5067
--compilation_config.pass_config.fuse_allreduce_rms true \
5168
--kv-cache-dtype fp8 \
52-
--max-cudagraph-capture-size 2048 \
69+
--max-cudagraph-capture-size "$CONC" \
5370
--max-num-batched-tokens "$((ISL * 2 ))" \
54-
--stream-interval 20 --no-enable-prefix-caching \
71+
--stream-interval 32 \
72+
--attention-config '{"mla_prefill_backend":"FLASHINFER","use_prefill_query_quantization":true}' \
73+
--linear-backend flashinfer_cutedsl \
74+
--no-enable-prefix-caching \
5575
--trust-remote-code > $SERVER_LOG 2>&1 &
5676

5777
SERVER_PID=$!

configs/nvidia-master.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ kimik2.5-int4-h200-vllm-agentic:
15081508
# Kimi-K2.5 FP4 B200 vLLM recipe as-is until B300-specific tuning is available.
15091509

15101510
kimik2.5-fp4-b200-vllm:
1511-
image: vllm/vllm-openai:v0.22.0
1511+
image: vllm/vllm-openai:nightly-e2fa28594f7baad142a426b0b6a2cfe2c79201c7
15121512
model: nvidia/Kimi-K2.5-NVFP4
15131513
model-prefix: kimik2.5
15141514
runner: b200
@@ -1520,8 +1520,9 @@ kimik2.5-fp4-b200-vllm:
15201520
- isl: 8192
15211521
osl: 1024
15221522
search-space:
1523-
- { tp: 8, ep: 1, conc-start: 1, conc-end: 4 }
1524-
- { tp: 4, ep: 1, conc-start: 1, conc-end: 128 }
1523+
- { tp: 8, ep: 1, conc-start: 1, conc-end: 512 }
1524+
- { tp: 4, ep: 1, conc-start: 1, conc-end: 512 }
1525+
- { tp: 8, ep: 8, dp-attn: true, conc-start: 128, conc-end: 512 }
15251526

15261527
# NOTE: At the time of submission, https://docs.vllm.ai/projects/recipes/en/latest/moonshotai/Kimi-K2.5.html
15271528
# does not have a B300-specific recipe, so this config reuses the existing

perf-changelog.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4835,7 +4835,7 @@
48354835
- config-keys:
48364836
- kimik2.5-fp4-b300-vllm-agentic-mtp
48374837
description:
4838-
- "Add EAGLE3 speculative-decoding arm for the Kimi K2.6 NVFP4 B300 AgentX recipe (draft lightseekorg/kimi-k2.6-eagle3-mla, TOKENSPEED_MLA attention backend with TRT-LLM ragged MLA kernel)."
4838+
- "Add EAGLE3 speculative-decoding arm for the Kimi K2.5 NVFP4 B300 AgentX recipe (draft lightseekorg/kimi-k2.6-eagle3-mla, TOKENSPEED_MLA attention backend with TRT-LLM ragged MLA kernel)."
48394839
- "TP8/TP4 GPU-only KV points plus a TP4 native CPU-offload ladder via SimpleCPUOffloadConnector with lazy_offload off; TP4/DCP4 high-concurrency points (conc 32/64) using num_speculative_tokens=3 and synthetic_acceptance_length=2.88."
48404840
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/2222
48414841

@@ -4917,7 +4917,7 @@
49174917
- config-keys:
49184918
- kimik2.5-fp4-b300-vllm-agentic-mtp
49194919
description:
4920-
- "Add EAGLE3 speculative-decoding arm for the Kimi K2.6 NVFP4 B300 AgentX recipe (draft lightseekorg/kimi-k2.6-eagle3.1-mla, TOKENSPEED_MLA attention backend with TRT-LLM ragged MLA kernel)."
4920+
- "Add EAGLE3 speculative-decoding arm for the Kimi K2.5 NVFP4 B300 AgentX recipe (draft lightseekorg/kimi-k2.6-eagle3.1-mla, TOKENSPEED_MLA attention backend with TRT-LLM ragged MLA kernel)."
49214921
- "TP8/TP4 GPU-only KV points plus a TP4 native CPU-offload ladder via SimpleCPUOffloadConnector with lazy_offload off; TP4/DCP4 high-concurrency points (conc 32/64) using num_speculative_tokens=3 and synthetic_acceptance_length=2.88."
49224922
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/2228
49234923

@@ -5343,7 +5343,7 @@
53435343
- config-keys:
53445344
- kimik2.6-fp4-b200-dynamo-vllm
53455345
description:
5346-
- "Add Kimi K2.6 NVFP4 B200 Dynamo vLLM disaggregated configuration."
5346+
- "Add Kimi K2.5 NVFP4 B200 Dynamo vLLM disaggregated configuration."
53475347
- "Add seven checked-in srt-slurm recipes selected one-to-one by the 8K/1K prefill/decode topology and concurrency entries."
53485348
- "Image: vllm/vllm-openai:v0.25.1"
53495349
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/2360
@@ -5355,3 +5355,9 @@
53555355
- "Apply the accuracy-gated Kimi-K2.5 MXFP4 settings: tuned AITER MXFP4 MoE, fused shared experts, FP8 KV cache, block size 16, 16384 batched tokens, 512 sequences, async scheduling, gpu-memory-utilization 0.85 (headroom for CUDA-graph capture on MI355X), and the AITER BF16 GEMM path"
53565356
- "Extend the TP4 and TP8 8k1k concurrency sweep from 64 to 128 (1k1k deprecated per #2263)"
53575357
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/2213
5358+
5359+
- config-keys:
5360+
- kimik2.5-fp4-b200-vllm
5361+
description:
5362+
- "Add Kimi K2.5 NVFP4 B200 vLLM: v0.26.0 image, TP8/TP4 conc to 512, DEP4 arm with --prefill-schedule-interval 4"
5363+
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/2443

utils/aiperf

Submodule aiperf updated 64 files

0 commit comments

Comments
 (0)