Repository navigation
[NVIDIA][AgentX] Kimi-K3 B300 FP4 vLLM: DSpark 7/5/3 at conc 1-28 / [NVIDIA][AgentX] Kimi-K3 B300 FP4 vLLM:并发 1–28 使用 DSpark 7/5/3 #4381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
hshrivastava-droid
wants to merge
9
commits into
main
from
kimik3-b300-fp4-vllm-agentic-dspark-retune
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dabb93a
[NVIDIA][AgentX] Kimi-K3 B300 FP4 vLLM: DSpark 7/5/3 at conc 1-40
hshrivastava-droid aaf9f5c
Kimi-K3 B300 FP4 vLLM AgentX: update DSpark configs / Kimi-K3 B300 FP…
hshrivastava-droid 6136093
Merge origin/main into kimik3-b300-fp4-vllm-agentic-dspark-retune
hshrivastava-droid 809f704
Merge origin/main; drop conc 40 from Kimi-K3 B300 FP4 vLLM AgentX DSpark
hshrivastava-droid ae433c5
Merge origin/main into kimik3-b300-fp4-vllm-agentic-dspark-retune
hshrivastava-droid a471ffb
Kimi-K3 B300 vLLM AgentX: use the image's bundled Mooncake
hshrivastava-droid 40a4867
Merge origin/main into kimik3-b300-fp4-vllm-agentic-dspark-retune
hshrivastava-droid 6bd0c89
Kimi-K3 B300 vLLM AgentX: update the changelog entry
hshrivastava-droid fcb19d5
Kimi-K3 B300 vLLM AgentX: state the recurrent-state cache dtype in th…
hshrivastava-droid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,21 +18,31 @@ base: | |
| health_check: | ||
| interval_seconds: 10 | ||
| max_attempts: 360 | ||
| # Embedded Mooncake: each TP rank contributes TOTAL_CPU_DRAM_GB / 8 GB. The | ||
| # setup script installs the master config's Mooncake and fills in the node's | ||
| # active RDMA rail. DSXE rails are InfiniBand without a netdev, so the transfer | ||
| # engine picks its own GID (a RoCE v2 index 3 does not exist). | ||
| # Embedded Mooncake ("GB" is GiB): 8 TP ranks x (256 GiB segment + 4 GiB buffer) | ||
| # = 2233.4 GB stay within TOTAL_CPU_DRAM_GB (2249 GB). | ||
| # The setup script checks that the image's bundled Mooncake is the master config's, then | ||
| # writes the node's first ACTIVE InfiniBand port that mlx5_core drives (ibp* on DSXE, never | ||
| # EFA) into the store config, failing the worker when there is none. | ||
| setup_script: kimik3-b300-mooncake.sh | ||
| # The whole host library directory, for RDMAV_DRIVERS: the host's | ||
| # libibverbs/libmlx5-rdmav<ABI>.so is a relative link to ../libmlx5.so.1.*. | ||
| extra_mount: | ||
| - /usr/lib/x86_64-linux-gnu:/host-usr-lib:ro | ||
| services: | ||
| - name: mooncake-master | ||
| type: mooncake-master | ||
| preamble: bash /configs/vllm-mooncake.sh | ||
| # The first container import on a node plus the in-container check outlast | ||
| # the default 120 s readiness window. | ||
| readiness: | ||
| port: 8700 | ||
| timeout_seconds: 900 | ||
| preamble: python3 -c "from mooncake.store import MooncakeDistributedStore" | ||
| args: ["--eviction_high_watermark_ratio=0.95", "--eviction_ratio=0.10"] | ||
| options: | ||
| store_config: | ||
| mode: embedded | ||
| metadata_server: P2PHANDSHAKE | ||
| global_segment_size: 281GB | ||
| global_segment_size: 256GB | ||
| local_buffer_size: 4GB | ||
| protocol: rdma | ||
| device_name: "" | ||
|
|
@@ -55,11 +65,14 @@ base: | |
| reasoning-parser: kimi_k3 | ||
| load-format: fastsafetensors | ||
| moe-backend: auto | ||
| no-enable-flashinfer-autotune: true | ||
| enable-flashinfer-autotune: true | ||
| enable-cumem-allocator: true | ||
| enable-prefix-caching: true | ||
| prefix-match-unit: 128 | ||
| kv-cache-dtype: fp8 | ||
| # KDA recurrent state only (the DSpark draft is dense MLA). Leave the conv state at | ||
| # SD: FlashInfer's packed KDA spec decode rejects VLLM_SSM_CONV_STATE_LAYOUT=DS on SM10x. | ||
| mamba-ssm-cache-dtype: bfloat16 | ||
|
Comment on lines
+73
to
+75
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doesnt this hurt long context evals signficiantly?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's been used in all submissions across the board ... |
||
| stream-interval: 10 | ||
| attention-backend: TOKENSPEED_MLA | ||
| attention-config: '{"mla_prefill_backend":"TRTLLM_RAGGED","use_prefill_query_quantization":true}' | ||
|
|
@@ -74,6 +87,8 @@ base: | |
| VLLM_USE_DIRECT_DCP_Q_GATHER: '1' | ||
| VLLM_USE_DIRECT_DCP_KV_GATHER: '1' | ||
| VLLM_RPC_TIMEOUT: '600000' | ||
| # Mooncake loads can block inside execute_model past the 300 s default. | ||
| VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: '1800' | ||
| VLLM_PREFIX_CACHE_RETENTION_INTERVAL: '0' | ||
| VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS: '0' | ||
| PYTHONNOUSERSITE: '1' | ||
|
|
@@ -86,6 +101,10 @@ base: | |
| MC_ENABLE_DEST_DEVICE_AFFINITY: '1' | ||
| MC_SLICE_SIZE: '1048576' | ||
| MC_WORKERS_PER_CTX: '4' | ||
| # The setup script selects only InfiniBand rails, which use GID index 0. | ||
| MC_GID_INDEX: '0' | ||
| # libibverbs appends -rdmav<ABI>.so; on an ABI mismatch it falls back to the image's provider. | ||
| RDMAV_DRIVERS: /host-usr-lib/libibverbs/libmlx5 | ||
| WITH_NVIDIA_PEERMEM: '0' | ||
| VLLM_MOONCAKE_LOAD_RECV_THREADS: '4' | ||
| benchmark: | ||
|
|
@@ -95,11 +114,10 @@ base: | |
| KV_OFFLOADING: dram | ||
| TOTAL_CPU_DRAM_GB: '2249' | ||
|
|
||
| # One variant per point. Admission is 2x CONC; CONC 56 and 70 keep more memory | ||
| # headroom. Graphs capture (1 + drafts) x 1..min(2x CONC, 128) tokens, then the | ||
| # larger powers of two to 8192. Throughput runs switch DSpark to synthetic | ||
| # rejection at the golden acceptance length; points above CONC 16 do not draft | ||
| # and keep the matrix's mtp label. | ||
| # One variant per point. Admission is 2x CONC. Graphs capture (1 + drafts) x | ||
| # 1..2x CONC tokens (to 96 at CONC 4, to 252 at CONC 28), then the larger powers | ||
| # of two to 8192. Throughput runs switch DSpark to synthetic rejection at the | ||
| # golden acceptance length. | ||
| override_c1: | ||
| roles: | ||
| agg: | ||
|
|
@@ -112,26 +130,14 @@ override_c1: | |
| env: | ||
| CONC: '1' | ||
|
|
||
| override_c2: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 4 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[8,16,24,32,64,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":7,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '2' | ||
|
|
||
| override_c4: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 8 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[8,16,24,32,40,48,56,64,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":7,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":5,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '4' | ||
|
|
@@ -142,92 +148,68 @@ override_c8: | |
| args: | ||
| max-num-seqs: 16 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":7,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":5,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '8' | ||
|
|
||
| override_c16: | ||
| override_c12: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 32 | ||
| max-num-seqs: 24 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,256,512,1024,2048,4096,8192]}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":3,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '16' | ||
| CONC: '12' | ||
|
|
||
| override_c24: | ||
| override_c14: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 48 | ||
| max-num-seqs: 28 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,64,128,256,512,1024,2048,4096,8192]}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":3,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '24' | ||
| SPEC_DECODING: mtp | ||
| CONC: '14' | ||
|
|
||
| override_c32: | ||
| override_c16: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 64 | ||
| max-num-seqs: 32 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,128,256,512,1024,2048,4096,8192]}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":3,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '32' | ||
| SPEC_DECODING: mtp | ||
| CONC: '16' | ||
|
|
||
| override_c40: | ||
| override_c24: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 80 | ||
| max-num-seqs: 48 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,128,256,512,1024,2048,4096,8192]}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":3,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '40' | ||
| SPEC_DECODING: mtp | ||
| CONC: '24' | ||
|
|
||
| override_c48: | ||
| override_c28: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 96 | ||
| max-num-seqs: 56 | ||
| gpu-memory-utilization: 0.92 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,128,256,512,1024,2048,4096,8192]}' | ||
| benchmark: | ||
| env: | ||
| CONC: '48' | ||
| SPEC_DECODING: mtp | ||
|
|
||
| override_c56: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 112 | ||
| gpu-memory-utilization: 0.9 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,128,256,512,1024,2048,4096,8192]}' | ||
| benchmark: | ||
| env: | ||
| CONC: '56' | ||
| SPEC_DECODING: mtp | ||
|
|
||
| override_c70: | ||
| roles: | ||
| agg: | ||
| args: | ||
| max-num-seqs: 140 | ||
| gpu-memory-utilization: 0.9 | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,256,512,1024,2048,4096,8192]}' | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,512,1024,2048,4096,8192]}' | ||
| speculative-config: '{"method":"dspark","model":"Inferact/Kimi-K3-DSpark","num_speculative_tokens":3,"attention_backend":"TOKENSPEED_MLA","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| benchmark: | ||
| env: | ||
| CONC: '70' | ||
| SPEC_DECODING: mtp | ||
| CONC: '28' | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of this script? can this functionally be auto detected in mooncake or vllm instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Oren
I Don't think it's a suitable feature for vLLM, it's mostly a good UX script to identify devices on the fly vs specifying for the cluster of choice (which we already do in some of Bryans scripts). Usually the infrastructure people know best about them, than vLLM (which would be hard to consider all possible cases)