|
| 1 | +schema: 2 |
| 2 | + |
| 3 | +base: |
| 4 | + identity: |
| 5 | + model: {} |
| 6 | + container: {} |
| 7 | + |
| 8 | + slurm: |
| 9 | + time_limit: "6:00:00" |
| 10 | + |
| 11 | + health_check: |
| 12 | + max_attempts: 720 |
| 13 | + interval_seconds: 10 |
| 14 | + |
| 15 | + resources: |
| 16 | + gpu_type: "gb200" |
| 17 | + gpus_per_node: 4 |
| 18 | + |
| 19 | + environment: |
| 20 | + # Identical prefixes must hash to identical block keys run-to-run. |
| 21 | + PYTHONHASHSEED: "0" |
| 22 | + |
| 23 | + frontend: |
| 24 | + type: vllm-router |
| 25 | + enable_multiple_frontends: false |
| 26 | + args: |
| 27 | + policy: consistent_hash |
| 28 | + prometheus-host: 127.0.0.1 |
| 29 | + prometheus-port: 18000 |
| 30 | + request-timeout-secs: 14400 |
| 31 | + disable-retries: true |
| 32 | + |
| 33 | + setup_script: vllm-router.sh |
| 34 | + |
| 35 | + engine: |
| 36 | + type: vllm |
| 37 | + connector: |
| 38 | + |
| 39 | + roles: |
| 40 | + prefill: |
| 41 | + nodes: 4 |
| 42 | + env: &kimi_env |
| 43 | + VLLM_ENGINE_READY_TIMEOUT_S: "3600" |
| 44 | + VLLM_RPC_TIMEOUT: "600000" |
| 45 | + # Outlast the router's pooled-connection idle gaps (disable-retries makes a reset fatal). |
| 46 | + VLLM_HTTP_TIMEOUT_KEEP_ALIVE: "600" |
| 47 | + # NIXL moves the KDA short-conv state in three reads, which needs the DS layout. |
| 48 | + VLLM_SSM_CONV_STATE_LAYOUT: "DS" |
| 49 | + VLLM_SERVER_DEV_MODE: "1" |
| 50 | + VLLM_USE_V2_MODEL_RUNNER: "1" |
| 51 | + VLLM_USE_DIRECT_DCP_A2A: "1" |
| 52 | + VLLM_USE_DIRECT_DCP_Q_GATHER: "1" |
| 53 | + VLLM_USE_DIRECT_DCP_KV_GATHER: "1" |
| 54 | + VLLM_ALLREDUCE_USE_FLASHINFER: "1" |
| 55 | + VLLM_USE_NCCL_SYMM_MEM: "0" |
| 56 | + TOKENSPEED_MLA_FP16_PARTIALS: "0" |
| 57 | + NCCL_CUMEM_ENABLE: "1" |
| 58 | + NCCL_MNNVL_ENABLE: "1" |
| 59 | + NCCL_NVLS_ENABLE: "1" |
| 60 | + UCX_MEMTYPE_CACHE: "n" |
| 61 | + UCX_MEMTYPE_REG_WHOLE: "n" |
| 62 | + HF_HUB_CACHE: "/hf_hub_cache" |
| 63 | + HUGGINGFACE_HUB_CACHE: "/hf_hub_cache" |
| 64 | + VLLM_ENABLE_GEMM_RS: "1" |
| 65 | + VLLM_KIMI_K3_SHARD_SP_SHARED_EXPERT: "0" |
| 66 | + args: |
| 67 | + # 191662915584 bytes per rank is the dram-utilization 0.85 share of a 4-GPU tray. |
| 68 | + kv-transfer-config: '{"kv_connector":"MultiConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"connectors":[{"kv_connector":"NixlPushConnector","kv_role":"kv_producer","kv_load_failure_policy":"fail","kv_buffer_device":"cuda","kv_connector_extra_config":{"enforce_handshake_compat":false}},{"kv_connector":"SimpleCPUOffloadConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu_bytes_to_use_per_rank":191662915584,"lazy_offload":false}}]}}' |
| 69 | + served-model-name: "moonshotai/Kimi-K3.1-Pro" |
| 70 | + tensor-parallel-size: 8 |
| 71 | + pipeline-parallel-size: 2 |
| 72 | + decode-context-parallel-size: 8 |
| 73 | + dcp-comm-backend: "a2a" |
| 74 | + cp-kv-cache-interleave-size: 1 |
| 75 | + no-enable-flashinfer-autotune: true |
| 76 | + enable-expert-parallel: true |
| 77 | + trust-remote-code: true |
| 78 | + language-model-only: true |
| 79 | + load-format: fastsafetensors |
| 80 | + moe-backend: deep_gemm_mega_moe |
| 81 | + gpu-memory-utilization: 0.95 |
| 82 | + max-model-len: 1048576 |
| 83 | + max-num-batched-tokens: 16384 |
| 84 | + max-num-seqs: 256 |
| 85 | + max-cudagraph-capture-size: 320 |
| 86 | + stream-interval: 10 |
| 87 | + kv-cache-dtype: fp8 |
| 88 | + attention-config: '{"sparse_mla_shard_q":true}' |
| 89 | + mamba-ssm-cache-dtype: float32 |
| 90 | + enable-prefix-caching: true |
| 91 | + enable-auto-tool-choice: true |
| 92 | + tool-call-parser: kimi_k3 |
| 93 | + reasoning-parser: kimi_k3 |
| 94 | + speculative-config: &spec '{"model":"Inferact/Kimi-K3.1-Pro-DSpark","revision":"e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f","method":"dspark","num_speculative_tokens":4,"draft_sample_method":"probabilistic","rejection_sample_method":"block"}' |
| 95 | + decode: |
| 96 | + env: |
| 97 | + <<: *kimi_env |
| 98 | + VLLM_ENABLE_GEMM_RS: "0" |
| 99 | + VLLM_KIMI_K3_SHARD_SP_SHARED_EXPERT: "1" |
| 100 | + VLLM_WORKER_MULTIPROC_METHOD: "spawn" |
| 101 | + VLLM_DP_SESSION_AFFINITY_KEY: "body" |
| 102 | + args: |
| 103 | + kv-transfer-config: '{"kv_connector":"NixlPushConnector","kv_role":"kv_consumer","kv_load_failure_policy":"fail","kv_buffer_device":"cuda","kv_connector_extra_config":{"enforce_handshake_compat":false}}' |
| 104 | + served-model-name: "moonshotai/Kimi-K3.1-Pro" |
| 105 | + tensor-parallel-size: 8 |
| 106 | + decode-context-parallel-size: 8 |
| 107 | + data-parallel-rpc-port: 13345 |
| 108 | + dcp-comm-backend: "a2a" |
| 109 | + cp-kv-cache-interleave-size: 1 |
| 110 | + no-enable-flashinfer-autotune: true |
| 111 | + enable-expert-parallel: true |
| 112 | + trust-remote-code: true |
| 113 | + language-model-only: true |
| 114 | + load-format: fastsafetensors |
| 115 | + moe-backend: deep_gemm_mega_moe |
| 116 | + gpu-memory-utilization: 0.97 |
| 117 | + max-model-len: 1048576 |
| 118 | + max-num-batched-tokens: 1280 |
| 119 | + max-num-seqs: 256 |
| 120 | + stream-interval: 10 |
| 121 | + kv-cache-dtype: fp8 |
| 122 | + attention-config: '{"sparse_mla_shard_q":true}' |
| 123 | + mamba-ssm-cache-dtype: float32 |
| 124 | + use-replayssm: true |
| 125 | + additional-config: '{"decode_backend":"latency_specialized"}' |
| 126 | + compilation-config: '{"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,105,110,115,120,125,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,290,295,300,305,310,315,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,620,640,660,680,700,720,740,760,780,800,820,840,860,880,900,920,940,960,980,1000,1020,1040,1060,1080,1100,1120,1140,1160,1180,1200,1220,1240,1260,1280]}' |
| 127 | + enable-prefix-caching: true |
| 128 | + enable-auto-tool-choice: true |
| 129 | + tool-call-parser: kimi_k3 |
| 130 | + reasoning-parser: kimi_k3 |
| 131 | + speculative-config: *spec |
| 132 | + |
| 133 | + sbatch_directives: |
| 134 | + mem: "0" |
| 135 | + cpus-per-task: "144" |
| 136 | + |
| 137 | + srun_options: |
| 138 | + mem: "0" |
| 139 | + container-remap-root: "" |
| 140 | + |
| 141 | + telemetry: |
| 142 | + collector_join_timeout_seconds: 12 |
| 143 | + |
| 144 | + benchmark: |
| 145 | + placement: |
| 146 | + node: head |
| 147 | + env: |
| 148 | + AIPERF_REQUIRED_SERVER_METRIC_PREFIX: "vllm:" |
| 149 | + AIPERF_HTTP_TCP_USER_TIMEOUT: "900000" |
| 150 | + |
| 151 | +override_1p1d_dp2: |
| 152 | + roles: |
| 153 | + decode: |
| 154 | + nodes: 4 |
| 155 | + env: |
| 156 | + VLLM_DP_SESSION_AFFINITY_SIZE: "2" |
| 157 | + args: |
| 158 | + data-parallel-size: 2 |
| 159 | + |
| 160 | +override_1p1d_dp4: |
| 161 | + roles: |
| 162 | + decode: |
| 163 | + nodes: 8 |
| 164 | + env: |
| 165 | + VLLM_DP_SESSION_AFFINITY_SIZE: "4" |
| 166 | + args: |
| 167 | + data-parallel-size: 4 |
0 commit comments