-
Notifications
You must be signed in to change notification settings - Fork 315
[Klaud Cold] Kimi-K3 B300 Mooncake EFA AgentX 1P3D disagg on the EFA vLLM image / [Klaud Cold] 在 EFA vLLM 镜像上运行 Kimi-K3 B300 Mooncake EFA AgentX 1P3D 分离式 #3522
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
+286
−2
Closed
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
236 changes: 236 additions & 0 deletions
236
...slurm-recipes/kimik3/vllm/b300-fp4/agentx/disagg-1p3d-dcp8-dcp8-dspark4-mooncake-c32.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,236 @@ | ||
| schema: 2 | ||
| name: kimi-k3-vllm-disagg-b300-1p3d-dcp8-dcp8-dspark4-mooncake-c32-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 | ||
| 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' | ||
| PYTHONPYCACHEPREFIX: /tmp/vllm-pycache-kimi-k3 | ||
| 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' | ||
| args: | ||
| 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: 3 | ||
| workers: 3 | ||
| 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' | ||
| args: | ||
| 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: | ||
| - 32 | ||
| 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) The new kimik3-fp4-b300-dynamo-vllm-agentic-dspark-mooncake-dcp8-disagg entry's router.version is
ba83080ecd31c1ce918559e576d3c5bc9e092ff1, but the recipe it points at (disagg-1p3d-dcp8-dcp8-dspark4-mooncake-c32.yaml) actually pins dynamo revcfada2fd9d17bfa6bb68dbee9d2f455e12577b8bat lines 11 and 236. Anyone reading the master config (dashboards, matrix tooling, or a human comparing runs) sees the wrong dynamo-router version for this benchmark, since the base convention is that these two fields must agree. Fix: set router.version to cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b to match the recipe's actual pinned dynamo rev, mirroring the container/image consistency already enforced elsewhere in this file.Why this was flagged
configs/nvidia-master.yaml:1538 declares router version ba83080ecd31c1ce918559e576d3c5bc9e092ff1 for config kimik3-fp4-b300-dynamo-vllm-agentic-dspark-mooncake-dcp8-disagg. That config's srt-recipe, benchmarks/multi_node/srt-slurm-recipes/kimik3/vllm/b300-fp4/agentx/disagg-1p3d-dcp8-dcp8-dspark4-mooncake-c32.yaml, pins dynamo.source.rev to a different commit, cfada2fd9d17bfa6bb68dbee9d2f455e12577b8b, at lines 11 and 236. Every other kimik3 recipe using rev ba83080... has master-config router.version ba83080... (grep confirms this), so this entry is the sole outlier where the two disagree. Anyone relying on the master config's router field to know which dynamo build actually ran gets stale/incorrect provenance, since no other field in the recipe corrects it.
Verification: nit. The mismatch is real. configs/nvidia-master.yaml:1538 sets
router: { name: dynamo-router, version: "ba83080ecd31c1ce918559e576d3c5bc9e092ff1" }for the new kimik3-fp4-b300-dynamo-vllm-agentic-dspark-mooncake-dcp8-disagg entry, but the recipe it points at (benchmarks/.../b300-fp4/agentx/disagg-1p3d-dcp8-dcp8-dspark4-mooncake-c32.yaml) pins dynamo at… | nit. configs/nvidia-master.yaml:1538…