|
| 1 | +schema: 2 |
| 2 | + |
| 3 | +base: |
| 4 | + name: kimik3.1-fp4-gb300-llmd-vllm-agentx-agg-dcp8 |
| 5 | + identity: |
| 6 | + model: {} |
| 7 | + container: {} |
| 8 | + frameworks: |
| 9 | + vllm: "0.1.dev25380+gf4c96184b" |
| 10 | + |
| 11 | + dynamo: |
| 12 | + install: false |
| 13 | + |
| 14 | + environment: |
| 15 | + HF_HUB_CACHE: /hf_hub_cache |
| 16 | + |
| 17 | + slurm: |
| 18 | + time_limit: "04:00:00" |
| 19 | + |
| 20 | + health_check: |
| 21 | + max_attempts: 720 |
| 22 | + interval_seconds: 10 |
| 23 | + |
| 24 | + resources: |
| 25 | + gpu_type: "gb300" |
| 26 | + gpus_per_node: 4 |
| 27 | + |
| 28 | + services: |
| 29 | + - name: mooncake-master |
| 30 | + type: mooncake-master |
| 31 | + # The first container start on a node unpacks the image and has taken over the default 120 s. |
| 32 | + readiness: |
| 33 | + port: 8700 |
| 34 | + timeout_seconds: 300 |
| 35 | + args: |
| 36 | + - "--default_kv_lease_ttl=60000" |
| 37 | + - "--eviction_high_watermark_ratio=0.95" |
| 38 | + - "--eviction_ratio=0.10" |
| 39 | + options: |
| 40 | + store_config: |
| 41 | + metadata_server: "P2PHANDSHAKE" |
| 42 | + global_segment_size: "160GB" |
| 43 | + local_buffer_size: "4GB" |
| 44 | + protocol: "rdma" |
| 45 | + device_name: "@fabric.rdma-devices" |
| 46 | + mode: "embedded" |
| 47 | + enable_offload: false |
| 48 | + |
| 49 | + frontend: |
| 50 | + type: llm-d |
| 51 | + enable_multiple_frontends: false |
| 52 | + container_image: "ghcr.io/llm-d/llm-d-router-consolidated:v1.0.0@sha256:644be0359dfb462527b7cb9a4e535b42fe8cc900ed382bd62bc06d6ba26a1810" |
| 53 | + env: |
| 54 | + GOGC: "400" |
| 55 | + GOMEMLIMIT: "20GiB" |
| 56 | + args: |
| 57 | + v: 1 |
| 58 | + allow-experimental-plugins: true |
| 59 | + grpc-max-recv-msg-size: "32MiB" |
| 60 | + grpc-max-send-msg-size: "32MiB" |
| 61 | + tracing: false |
| 62 | + metrics-endpoint-auth: false |
| 63 | + epp_config: |
| 64 | + plugins: |
| 65 | + - type: metrics-data-source |
| 66 | + parameters: |
| 67 | + scheme: http |
| 68 | + path: /metrics |
| 69 | + insecureSkipVerify: true |
| 70 | + families: |
| 71 | + - "vllm:num_requests_waiting" |
| 72 | + - "vllm:num_requests_running" |
| 73 | + - "vllm:kv_cache_usage_perc" |
| 74 | + - type: core-metrics-extractor |
| 75 | + parameters: |
| 76 | + engineConfigs: |
| 77 | + - name: vllm |
| 78 | + queuedRequestsSpec: "vllm:num_requests_waiting" |
| 79 | + runningRequestsSpec: "vllm:num_requests_running" |
| 80 | + kvUsageSpec: "vllm:kv_cache_usage_perc" |
| 81 | + loraSpec: "" |
| 82 | + cacheInfoSpec: "" |
| 83 | + - type: inflight-load-producer |
| 84 | + parameters: |
| 85 | + addEstimatedOutputTokens: false |
| 86 | + syncCrossReplicaState: false |
| 87 | + - type: active-request-scorer |
| 88 | + parameters: |
| 89 | + idleThreshold: 0 |
| 90 | + inFlightLoadProducerName: inflight-load-producer |
| 91 | + - type: queue-scorer |
| 92 | + - type: kv-cache-utilization-scorer |
| 93 | + - type: max-score-picker |
| 94 | + - type: utilization-detector |
| 95 | + parameters: |
| 96 | + queueDepthThreshold: 100000 |
| 97 | + kvCacheUtilThreshold: 1.0 |
| 98 | + headroom: 1.0 |
| 99 | + metricsStalenessThreshold: "3600s" |
| 100 | + dataLayer: |
| 101 | + injectDefaults: false |
| 102 | + sources: |
| 103 | + - pluginRef: metrics-data-source |
| 104 | + extractors: |
| 105 | + - pluginRef: core-metrics-extractor |
| 106 | + schedulingProfiles: |
| 107 | + - name: default |
| 108 | + plugins: |
| 109 | + - pluginRef: utilization-detector |
| 110 | + - pluginRef: active-request-scorer |
| 111 | + weight: 5 |
| 112 | + - pluginRef: queue-scorer |
| 113 | + weight: 3 |
| 114 | + - pluginRef: kv-cache-utilization-scorer |
| 115 | + weight: 3 |
| 116 | + - pluginRef: max-score-picker |
| 117 | + |
| 118 | + engine: |
| 119 | + type: vllm |
| 120 | + connector: |
| 121 | + dp_launch_mode: per_node |
| 122 | + |
| 123 | + roles: |
| 124 | + agg: |
| 125 | + nodes: 2 |
| 126 | + env: |
| 127 | + PYTHONHASHSEED: "42" |
| 128 | + VLLM_HTTP_TIMEOUT_KEEP_ALIVE: "120" |
| 129 | + VLLM_USE_DIRECT_DCP_A2A: "1" |
| 130 | + VLLM_USE_DIRECT_DCP_Q_GATHER: "1" |
| 131 | + VLLM_USE_DIRECT_DCP_KV_GATHER: "1" |
| 132 | + VLLM_ALLREDUCE_USE_FLASHINFER: "1" |
| 133 | + VLLM_KIMI_K3_SHARD_SP_SHARED_EXPERT: "0" |
| 134 | + VLLM_RPC_TIMEOUT: "600000" |
| 135 | + TILELANG_CLEANUP_TEMP_FILES: "1" |
| 136 | + VLLM_USE_NCCL_SYMM_MEM: "0" |
| 137 | + NCCL_CUMEM_ENABLE: "1" |
| 138 | + NCCL_MNNVL_ENABLE: "1" |
| 139 | + NCCL_NVLS_ENABLE: "1" |
| 140 | + VLLM_SERVER_DEV_MODE: "1" |
| 141 | + VLLM_USE_V2_MODEL_RUNNER: "1" |
| 142 | + VLLM_USE_RUST_FRONTEND: "1" |
| 143 | + VLLM_MOONCAKE_LOAD_RECV_THREADS: "4" |
| 144 | + # Lookups lease only the store keys a hit loads. |
| 145 | + VLLM_MOONCAKE_STORE_SELECTIVE_LEASE: "1" |
| 146 | + MC_SLICE_SIZE: "1048576" |
| 147 | + MC_MAX_MR_SIZE: "4294967296" |
| 148 | + NCCL_P2P_LEVEL: "NVL" |
| 149 | + MC_ENABLE_DEST_DEVICE_AFFINITY: "1" |
| 150 | + WITH_NVIDIA_PEERMEM: "0" |
| 151 | + NCCL_NET_PLUGIN: "none" |
| 152 | + UCX_MEMTYPE_REG_WHOLE: "n" |
| 153 | + UCX_TCP_AF_PRIO: "inet" |
| 154 | + VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: "1800" |
| 155 | + VLLM_SSM_CONV_STATE_LAYOUT: "DS" |
| 156 | + TOKENSPEED_MLA_FP16_PARTIALS: "0" |
| 157 | + VLLM_ENGINE_READY_TIMEOUT_S: "3600" |
| 158 | + VLLM_ENABLE_GEMM_RS: "0" |
| 159 | + args: |
| 160 | + # DRAM offload through the Mooncake store only: no NIXL, no P/D. |
| 161 | + kv-transfer-config: '{"kv_connector":"MooncakeStoreConnector","kv_role":"kv_both","kv_load_failure_policy":"recompute","kv_connector_extra_config":{"load_async":true,"lookup_async":true,"enable_cross_layers_blocks":false,"enable_offload":false}}' |
| 162 | + served-model-name: "moonshotai/Kimi-K3.1-Pro" |
| 163 | + prefix-match-unit: 128 |
| 164 | + load-format: "fastsafetensors" |
| 165 | + kv-cache-dtype: "fp8" |
| 166 | + attention-config: '{"indexer_kv_dtype":"mxfp4"}' |
| 167 | + mamba-ssm-cache-dtype: "float32" |
| 168 | + mamba-cache-dtype: "float32" |
| 169 | + gpu-memory-utilization: 0.95 |
| 170 | + tensor-parallel-size: 8 |
| 171 | + decode-context-parallel-size: 8 |
| 172 | + dcp-comm-backend: "a2a" |
| 173 | + cp-kv-cache-interleave-size: 1 |
| 174 | + no-enable-flashinfer-autotune: true |
| 175 | + enable-cumem-allocator: true |
| 176 | + trust-remote-code: true |
| 177 | + stream-interval: 10 |
| 178 | + language-model-only: true |
| 179 | + enable-prefix-caching: true |
| 180 | + additional-config: '{"decode_backend":"latency_specialized"}' |
| 181 | + use-replayssm: true |
| 182 | + # A lone prompt prefills in 16384-token chunks (8 of the 2048-token Mamba blocks); |
| 183 | + # next to other requests each prompt's chunk stops at 4096 tokens. |
| 184 | + max-num-batched-tokens: 16384 |
| 185 | + long-prefill-token-threshold: 4096 |
| 186 | + speculative-config: '{"model":"Inferact/Kimi-K3.1-Pro-DSpark","revision":"e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f","method":"dspark","num_speculative_tokens":4,"draft_sample_method":"probabilistic","rejection_sample_method":"block"}' |
| 187 | + |
| 188 | + sbatch_directives: |
| 189 | + mem: "0" |
| 190 | + cpus-per-task: "144" |
| 191 | + comment: >- |
| 192 | + '{"OccupiedIdleGPUsJobReaper":{"exemptIdleTimeMins":"60","reason":"model_loading","description":"Very large model will |
| 193 | + take extra loading time."}}' |
| 194 | +
|
| 195 | + srun_options: |
| 196 | + mem: "0" |
| 197 | + container-remap-root: "" |
| 198 | + |
| 199 | + telemetry: |
| 200 | + collector_join_timeout_seconds: 12 |
| 201 | + |
| 202 | + benchmark: |
| 203 | + placement: |
| 204 | + node: head |
| 205 | + env: |
| 206 | + AIPERF_REQUIRED_SERVER_METRIC_PREFIX: "vllm:" |
| 207 | + AIPERF_HTTP_X_SESSION_ID_FROM_CORRELATION_ID: "true" |
| 208 | + |
| 209 | +override_agg16_c1: |
| 210 | + roles: |
| 211 | + agg: |
| 212 | + nodes: 4 |
| 213 | + # Opt-in c=1 decode paths of this image (default off): published-mailbox MoE tail (PUB8), |
| 214 | + # one-pass decode prep (NP1), fused drafter layers (DRF/S31), KDA/attention kernels for 8 rows. |
| 215 | + env: &override_agg16_c1_env |
| 216 | + K31_PUB8: "1" |
| 217 | + K31_PUB8_JOIN: "1" |
| 218 | + K31_PUB8_DPUSH: "1" |
| 219 | + K31_PUB8_AHEAD: "16" |
| 220 | + K31_NP1: "1" |
| 221 | + K31_S31MK: "1" |
| 222 | + K31_S31FC: "1" |
| 223 | + K31_S31DG: "1" |
| 224 | + K31_KDA8: "1" |
| 225 | + K31_S24FM: "1" |
| 226 | + K31_S24FL_HEADS: "12,6" |
| 227 | + K31_S22SP: "1" |
| 228 | + K31_DRF_ATTN: "1" |
| 229 | + K31_DRF_ACT: "1" |
| 230 | + K31_DRF_NORM: "1" |
| 231 | + args: &override_agg16_c1_args |
| 232 | + tensor-parallel-size: 16 |
| 233 | + gpu-memory-utilization: 0.90 |
| 234 | + decode-context-parallel-size: 16 |
| 235 | + speculative-config: '{"model":"Inferact/Kimi-K3.1-Pro-DSpark","revision":"e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f","method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block"}' |
| 236 | + # The released drafter's KV block at TP16 x DCP16. |
| 237 | + prefix-match-unit: 768 |
| 238 | + max-num-seqs: 1 |
| 239 | + max-cudagraph-capture-size: 2048 |
| 240 | + compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[7,8,14,16,28,32,56,64,128,256,512,1024,2048]}' |
| 241 | + |
| 242 | +override_agg16_c1_eval: |
| 243 | + roles: |
| 244 | + agg: |
| 245 | + nodes: 4 |
| 246 | + env: *override_agg16_c1_env |
| 247 | + args: |
| 248 | + <<: *override_agg16_c1_args |
| 249 | + reasoning-parser: kimi_k3 |
| 250 | + tool-call-parser: kimi_k3 |
| 251 | + enable-auto-tool-choice: true |
0 commit comments