-
Notifications
You must be signed in to change notification settings - Fork 315
[Klaud Cold] Add Kimi-K3 B300 Mooncake EFA AgentX disagg 1P1D DCP8 DSpark4 c48 with Mooncake store hugepages / [Klaud Cold] 新增使用 Mooncake store 大页的 Kimi-K3 B300 Mooncake EFA AgentX 分离式 1P1D DCP8 DSpark4 c48 配置 #3557
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
Open
functionstackx
wants to merge
3
commits into
main
Choose a base branch
from
klaud/kimik3-b300-mooncake-efa-disagg-1p1d-hugepage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+296
−2
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
244 changes: 244 additions & 0 deletions
244
...ipes/kimik3/vllm/b300-fp4/agentx/disagg-1p1d-dcp8-dcp8-dspark4-mooncake-hugepage-c48.yaml
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 |
|---|---|---|
| @@ -0,0 +1,244 @@ | ||
| schema: 2 | ||
| name: kimi-k3-vllm-disagg-b300-1p1d-dcp8-dcp8-dspark4-mooncake-hugepage-c48-agentic | ||
| model: | ||
| path: moonshotai/Kimi-K3 | ||
| container: ghcr.io#semianalysisai/vllm-openai:efa_pr_58768 | ||
| precision: fp4 | ||
| environment: {LD_LIBRARY_PATH: "/opt/amazon/efa/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/nvidia/lib"} | ||
| dynamo: | ||
| install: true | ||
| source: | ||
| rev: cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b | ||
| slurm: | ||
| time_limit: 06:00:00 | ||
| health_check: | ||
| max_attempts: 720 | ||
| interval_seconds: 10 | ||
| resources: | ||
| gpu_type: b300 | ||
| gpus_per_node: 8 | ||
| services: | ||
| - name: etcd | ||
| type: etcd | ||
| placement: | ||
| node: infra | ||
| - name: nats | ||
| type: nats | ||
| placement: | ||
| node: infra | ||
| options: | ||
| max_payload_mb: 32 | ||
| - name: mooncake-master | ||
| type: mooncake-master | ||
| args: | ||
| - --default_kv_lease_ttl=60000 | ||
| - --eviction_high_watermark_ratio=0.95 | ||
| - --eviction_ratio=0.10 | ||
| env: | ||
| MC_STORE_USE_HUGEPAGE: '1' | ||
| MC_STORE_HUGEPAGE_SIZE: '2097152' | ||
| options: | ||
| store_config: | ||
| metadata_server: P2PHANDSHAKE | ||
| global_segment_size: 190GB | ||
| local_buffer_size: 4GB | ||
| protocol: efa | ||
| mode: embedded | ||
| enable_offload: false | ||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
| args: | ||
| dyn-chat-processor: vllm | ||
| trust-remote-code: true | ||
| tool-call-parser: kimi_k3 | ||
| reasoning-parser: kimi_k3 | ||
| enable-auto-tool-choice: true | ||
| router-mode: least-loaded | ||
| router-session-affinity-ttl-secs: 900 | ||
| env: | ||
| DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS: '3600' | ||
| DYN_TOKENIZER_CACHE_BYTES: '8589934592' | ||
| engine: | ||
| type: vllm | ||
| connector: null | ||
| dp_launch_mode: per_node | ||
| roles: | ||
| prefill: | ||
| nodes: 1 | ||
| workers: 1 | ||
| gpus: 8 | ||
| env: | ||
| VLLM_USE_DIRECT_DCP_A2A: '1' | ||
| VLLM_USE_DIRECT_DCP_Q_GATHER: '1' | ||
| VLLM_USE_DIRECT_DCP_KV_GATHER: '1' | ||
| VLLM_ALLREDUCE_USE_FLASHINFER: '1' | ||
| VLLM_KIMI_K3_SHARD_SP_SHARED_EXPERT: '0' | ||
| DYN_REQUEST_PLANE: tcp | ||
| ETCD_LEASE_TTL: '600' | ||
| VLLM_ENGINE_READY_TIMEOUT_S: '3600' | ||
| VLLM_RPC_TIMEOUT: '600000' | ||
| TILELANG_CLEANUP_TEMP_FILES: '1' | ||
| VLLM_USE_NCCL_SYMM_MEM: '0' | ||
| NCCL_CUMEM_ENABLE: '1' | ||
| NCCL_MNNVL_ENABLE: '0' | ||
| NCCL_NVLS_ENABLE: '1' | ||
| VLLM_SERVER_DEV_MODE: '1' | ||
| VLLM_USE_V2_MODEL_RUNNER: '1' | ||
| VLLM_USE_RUST_FRONTEND: '1' | ||
| VLLM_MOONCAKE_LOAD_RECV_THREADS: '4' | ||
| MC_SLICE_SIZE: '1048576' | ||
| VLLM_CONNECTOR_PREFETCH_DEPTH: '8' | ||
| VLLM_CONNECTOR_PREFETCH_KV_CAP: '0.65' | ||
| VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: '1800' | ||
| VLLM_PREFIX_CACHE_RETENTION_INTERVAL: '0' | ||
| NCCL_P2P_LEVEL: NVL | ||
| MC_ENABLE_DEST_DEVICE_AFFINITY: '1' | ||
| WITH_NVIDIA_PEERMEM: '0' | ||
| NCCL_NET_PLUGIN: none | ||
| UCX_MEMTYPE_CACHE: n | ||
| UCX_MEMTYPE_REG_WHOLE: n | ||
| UCX_RCACHE_MAX_UNRELEASED: '1024' | ||
| UCX_TCP_AF_PRIO: inet | ||
| VLLM_SSM_CONV_STATE_LAYOUT: DS | ||
| DG_JIT_CACHE_DIR: /tmp/dg-cache-kimi-k3-b300-pd-dspark-mooncake-{job_id} | ||
| PYTHONHASHSEED: '42' | ||
| PYTHONNOUSERSITE: '1' | ||
| PYTHONUNBUFFERED: '1' | ||
| TORCH_CUDA_ARCH_LIST: '10.0' | ||
| MC_STORE_CLIENT_METRIC: '1' | ||
| MC_STORE_CLIENT_METRIC_INTERVAL: '5' | ||
| MC_TE_METRIC: '0' | ||
| GLIBC_TUNABLES: glibc.malloc.hugetlb=1 | ||
| MC_STORE_MEMCPY: '1' | ||
| MC_WORKERS_PER_CTX: '4' | ||
| MC_STORE_USE_HUGEPAGE: '1' | ||
| MC_STORE_HUGEPAGE_SIZE: '2097152' | ||
| args: | ||
| enable-logging-iteration-details: true | ||
| kv-transfer-config: '{"kv_connector":"MultiConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"connectors":[{"kv_connector":"NixlConnector","kv_role":"kv_both","kv_load_failure_policy":"fail","kv_buffer_device":"cuda","kv_connector_extra_config":{"enforce_handshake_compat":false,"enable_cross_layers_blocks":false,"backends":["LIBFABRIC"]}},{"kv_connector":"MooncakeStoreConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"load_async":true,"lookup_async":true,"compact_group_io":true,"max_load_batch_keys":2,"enable_cross_layers_blocks":false,"enable_offload":false}}]}}' | ||
| served-model-name: moonshotai/Kimi-K3 | ||
| prefix-match-unit: 128 | ||
| load-format: fastsafetensors | ||
| kv-cache-dtype: fp8 | ||
| mamba-ssm-cache-dtype: bfloat16 | ||
| gpu-memory-utilization: 0.94 | ||
| tensor-parallel-size: 8 | ||
| decode-context-parallel-size: 8 | ||
| cp-kv-cache-interleave-size: 1 | ||
| dcp-comm-backend: a2a | ||
| enable-cumem-allocator: true | ||
| trust-remote-code: true | ||
| max-cudagraph-capture-size: 512 | ||
| stream-interval: 10 | ||
| language-model-only: true | ||
| attention-backend: TOKENSPEED_MLA | ||
| attention-config: '{"mla_prefill_backend": "TRTLLM_RAGGED", "use_prefill_query_quantization": true}' | ||
| speculative-config: '{"model":"Inferact/Kimi-K3-DSpark","attention_backend":"TOKENSPEED_MLA","method":"dspark","num_speculative_tokens":4,"rejection_sample_method":"block","draft_sample_method":"probabilistic"}' | ||
| enable-prefix-caching: true | ||
| enable-flashinfer-autotune: true | ||
| kv_events: true | ||
| decode: | ||
| nodes: 1 | ||
| workers: 1 | ||
| gpus: 8 | ||
| env: | ||
| VLLM_USE_DIRECT_DCP_A2A: '1' | ||
| VLLM_USE_DIRECT_DCP_Q_GATHER: '1' | ||
| VLLM_USE_DIRECT_DCP_KV_GATHER: '1' | ||
| VLLM_ALLREDUCE_USE_FLASHINFER: '1' | ||
| VLLM_KIMI_K3_SHARD_SP_SHARED_EXPERT: '0' | ||
| DYN_REQUEST_PLANE: tcp | ||
| ETCD_LEASE_TTL: '600' | ||
| VLLM_ENGINE_READY_TIMEOUT_S: '3600' | ||
| VLLM_RPC_TIMEOUT: '600000' | ||
| TILELANG_CLEANUP_TEMP_FILES: '1' | ||
| VLLM_USE_NCCL_SYMM_MEM: '0' | ||
| NCCL_CUMEM_ENABLE: '1' | ||
| NCCL_MNNVL_ENABLE: '0' | ||
| NCCL_NVLS_ENABLE: '1' | ||
| VLLM_SERVER_DEV_MODE: '1' | ||
| VLLM_USE_V2_MODEL_RUNNER: '1' | ||
| VLLM_USE_RUST_FRONTEND: '1' | ||
| VLLM_MOONCAKE_LOAD_RECV_THREADS: '4' | ||
| MC_SLICE_SIZE: '1048576' | ||
| VLLM_CONNECTOR_PREFETCH_DEPTH: '8' | ||
| VLLM_CONNECTOR_PREFETCH_KV_CAP: '0.65' | ||
| VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: '1800' | ||
| VLLM_PREFIX_CACHE_RETENTION_INTERVAL: '0' | ||
| NCCL_P2P_LEVEL: NVL | ||
| MC_ENABLE_DEST_DEVICE_AFFINITY: '1' | ||
| WITH_NVIDIA_PEERMEM: '0' | ||
| NCCL_NET_PLUGIN: none | ||
| UCX_MEMTYPE_CACHE: n | ||
| UCX_MEMTYPE_REG_WHOLE: n | ||
| UCX_RCACHE_MAX_UNRELEASED: '1024' | ||
| UCX_TCP_AF_PRIO: inet | ||
| VLLM_SSM_CONV_STATE_LAYOUT: DS | ||
| DG_JIT_CACHE_DIR: /tmp/dg-cache-kimi-k3-b300-pd-dspark-mooncake-{job_id} | ||
| PYTHONHASHSEED: '42' | ||
| PYTHONNOUSERSITE: '1' | ||
| PYTHONUNBUFFERED: '1' | ||
| TORCH_CUDA_ARCH_LIST: '10.0' | ||
| MC_STORE_CLIENT_METRIC: '1' | ||
| MC_STORE_CLIENT_METRIC_INTERVAL: '5' | ||
| MC_TE_METRIC: '0' | ||
| GLIBC_TUNABLES: glibc.malloc.hugetlb=1 | ||
| MC_STORE_MEMCPY: '1' | ||
| MC_WORKERS_PER_CTX: '4' | ||
| MC_STORE_USE_HUGEPAGE: '1' | ||
| MC_STORE_HUGEPAGE_SIZE: '2097152' | ||
| args: | ||
| enable-logging-iteration-details: true | ||
| kv-transfer-config: '{"kv_connector":"MultiConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"connectors":[{"kv_connector":"NixlConnector","kv_role":"kv_both","kv_load_failure_policy":"fail","kv_buffer_device":"cuda","kv_connector_extra_config":{"enforce_handshake_compat":false,"enable_cross_layers_blocks":false,"backends":["LIBFABRIC"]}},{"kv_connector":"MooncakeStoreConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"load_async":true,"lookup_async":true,"compact_group_io":true,"max_load_batch_keys":2,"enable_cross_layers_blocks":false,"enable_offload":false}}]}}' | ||
| served-model-name: moonshotai/Kimi-K3 | ||
| prefix-match-unit: 128 | ||
| load-format: fastsafetensors | ||
| kv-cache-dtype: fp8 | ||
| mamba-ssm-cache-dtype: bfloat16 | ||
| gpu-memory-utilization: 0.94 | ||
| tensor-parallel-size: 8 | ||
| decode-context-parallel-size: 8 | ||
| cp-kv-cache-interleave-size: 1 | ||
| dcp-comm-backend: a2a | ||
| enable-cumem-allocator: true | ||
| trust-remote-code: true | ||
| max-cudagraph-capture-size: 512 | ||
| stream-interval: 10 | ||
| language-model-only: true | ||
| attention-backend: TOKENSPEED_MLA | ||
| attention-config: '{"mla_prefill_backend": "TRTLLM_RAGGED", "use_prefill_query_quantization": true}' | ||
| speculative-config: '{"model":"Inferact/Kimi-K3-DSpark","attention_backend":"TOKENSPEED_MLA","method":"dspark","num_speculative_tokens":4,"rejection_sample_method":"block","draft_sample_method":"probabilistic"}' | ||
| enable-prefix-caching: true | ||
| enable-flashinfer-autotune: true | ||
| sbatch_directives: | ||
| cpus-per-task: '72' | ||
| mem: '0' | ||
| comment: '''{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"model_loading","description":"Very large model will take extra loading time."}}''' | ||
| srun_options: | ||
| mem: '0' | ||
| container-remap-root: '' | ||
| benchmark: | ||
| type: custom | ||
| command: bash /infmax-workspace/benchmarks/srt_agentic.sh | ||
| env: | ||
| INFMAX_CONTAINER_WORKSPACE: /infmax-workspace | ||
| RESULT_DIR: /logs/agentic | ||
| PORT: '8000' | ||
| IS_MULTINODE: 'true' | ||
| AIPERF_USE_DYNAMO_CONV_AWARE_ROUTING: '0' | ||
| AIPERF_HTTP_X_DYNAMO_SESSION_ID_FROM_CORRELATION_ID: 'true' | ||
| AIPERF_DYNAMO_SESSION_TIMEOUT_SECONDS: '14400' | ||
| AIPERF_DATASET_MMAP_CACHE_DIR: /aiperf_mmap_cache | ||
| HF_HUB_CACHE: /hf_hub_cache | ||
| WEKA_LOADER_OVERRIDE: semianalysis_cc_traces_weka_062126 | ||
| client_placement: head | ||
| concurrencies: | ||
| - 48 | ||
| identity: | ||
| model: | ||
| repo: moonshotai/Kimi-K3 | ||
| container: | ||
| image: ghcr.io#semianalysisai/vllm-openai:efa_pr_58768 | ||
| frameworks: | ||
| dynamo: cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b |
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
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
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.
🟡 (optional) nvidia-master.yaml:1540 records router version "ba83080ecd31c1ce918559e576d3c5bc9e092ff1" for the new kimik3-fp4-b300-...-hugepage config key, but the recipe it points at pins a different dynamo build. disagg-1p1d-dcp8-dcp8-dspark4-mooncake-hugepage-c48.yaml:11 and :244 set dynamo.source.rev / identity.frameworks.dynamo to "cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b" instead. Every sibling kimik3 vllm agentx recipe (gb300/gb200 disagg and agg variants) uses "ba83080ec..." in both the recipe and the matching master-config router.version, so this is the only entry where the two diverge. Anyone using the master config to attribute a sweep's results to a dynamo build gets pointed at the wrong commit. …
Why this was flagged
…Fix: set router.version here to "cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b" to match the recipe's actual dynamo.source.rev (or revert the recipe's rev if the bump was unintentional).
The new master-config entry kimik3-fp4-b300-dynamo-vllm-agentic-dspark-mooncake-dcp8-disagg-1p1d-hugepage at nvidia-master.yaml:1531-1560 declares router: { version: "ba83080ecd31c1ce918559e576d3c5bc9e092ff1" } at line 1540, reached via the CONFIG_FILE additional-setting at line 1559 pointing to the new recipe. That recipe (disagg-1p1d-dcp8-dcp8-dspark4-mooncake-hugepage-c48.yaml:8-11,244) actually pins dynamo.source.rev to "cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b", a different commit not used by any other kimik3 recipe in the repo. All comparable sibling entries (e.g. kimik3-fp4-gb300-dynamo-vllm-agentic-dspark-mooncake-dcp8-disagg at nvidia-master.yaml:7832-7860, paired with gb300-fp4/agentx/disagg-1p1d-dcp8-dcp8-dspark4-mooncake.yaml:14-21) keep router.version and dynamo.source.rev identical, showing the master config's router.version field is meant to mirror the recipe's actual dynamo build.…
Verification: nit. Factually accurate discrepancy: nvidia-master.yaml:1540 records
router: { name: dynamo-router, version: "ba83080ecd31c1ce918559e576d3c5bc9e092ff1" }for the new key, while the recipe it points at (disagg-1p1d-dcp8-dcp8-dspark4-mooncake-hugepage-c48.yaml) pins the dynamo build to a different commit in both places: line 11rev: cfada2fd9d17bfa6bb68dbee9d2f455e12577b8band line 244…