|
| 1 | +# DSV4.1-Flash two-node PD KV pool watch (A leg: pool, B leg: local prefix cache). |
| 2 | +# Local runs: set cluster_hosts to [prefill_ip, decode_ip]; CI resolves nodes via LWS. |
| 3 | +test_name: "DSv41-Flash-PD-KVPool" |
| 4 | +model: "Eco-Tech/DeepSeek-V4.1-Flash-1017-w4a8" |
| 5 | +num_nodes: 2 |
| 6 | +npu_per_node: 16 |
| 7 | + |
| 8 | +routing: |
| 9 | + type: "disaggregated_prefill" |
| 10 | + proxy_script: "examples/disaggregated_prefill_v1/load_balance_proxy_layerwise_server_example.py" |
| 11 | + groups: |
| 12 | + prefiller: [ 0 ] |
| 13 | + decoder: [ 1 ] |
| 14 | + |
| 15 | +config: |
| 16 | + - node_index: 0 |
| 17 | + port_start: 17100 |
| 18 | + dp_rpc_port: 19321 |
| 19 | + dp_size: 4 |
| 20 | + dp_size_local: 4 |
| 21 | + dp_rank_start: 0 |
| 22 | + tp_size: 1 |
| 23 | + cp_size: 4 |
| 24 | + dp_address: "${NODE_0_IP}" |
| 25 | + |
| 26 | + - node_index: 1 |
| 27 | + port_start: 17100 |
| 28 | + dp_rpc_port: 19321 |
| 29 | + dp_size: 16 |
| 30 | + dp_size_local: 16 |
| 31 | + dp_rank_start: 0 |
| 32 | + tp_size: 1 |
| 33 | + cp_size: 1 |
| 34 | + dp_address: "${NODE_1_IP}" |
| 35 | + |
| 36 | +kv_pool: |
| 37 | + type: memcache |
| 38 | + meta_service_port: 5007 |
| 39 | + config_store_port: 6007 |
| 40 | + config: |
| 41 | + meta: |
| 42 | + ock.mmc.log_level: error |
| 43 | + local: |
| 44 | + ock.mmc.log_level: error |
| 45 | + ock.mmc.local_service.world_size: 256 |
| 46 | + ock.mmc.local_service.protocol: device_sdma |
| 47 | + ock.mmc.local_service.dram.size: 0GB |
| 48 | + ock.mmc.local_service.max.dram.size: 1024GB |
| 49 | + |
| 50 | +# A/B watch parameters: the driver replays this prompt cold -> hit -> hit -> |
| 51 | +# disjoint through the proxy, then samples throughput on both legs. |
| 52 | +pool_ab: |
| 53 | + case_name: "nightly_dsv41_flash_pd_memcache_128k" |
| 54 | + model_env: "DEEPSEEK_V41_PD_MODEL_PATH" |
| 55 | + prompt_tokens: 131076 |
| 56 | + lcm_block_size: 16384 |
| 57 | + control_port: 19555 |
| 58 | + perf_gate: true |
| 59 | + check_output: false |
| 60 | + perf_aisbench: |
| 61 | + dataset_path: vllm-ascend/GSM8K-in128k-bs512-prefix90-ds |
| 62 | + dataset_conf: gsm8k/gsm8k_gen_0_shot_cot_str_perf |
| 63 | + request_conf: vllm_api_stream_chat |
| 64 | + num_prompts: 128 |
| 65 | + batch_size: 32 |
| 66 | + max_out_len: 1 |
| 67 | + request_rate: 0 |
| 68 | + seed: 1024 |
| 69 | + hit_rate_target: 0.9 |
| 70 | + hit_rate_tolerance: 0.03 |
| 71 | + warmup: |
| 72 | + num_prompts: 4 |
| 73 | + batch_size: 4 |
| 74 | + |
| 75 | +env_common: &env_common |
| 76 | + VLLM_USE_V2_MODEL_RUNNER: "1" |
| 77 | + VLLM_USE_MODELSCOPE: "true" |
| 78 | + VLLM_ENGINE_READY_TIMEOUT_S: "36000" |
| 79 | + PYTORCH_NPU_ALLOC_CONF: "expandable_segments:True" |
| 80 | + PYTHONHASHSEED: "0" |
| 81 | + VLLM_HOST_IP: "${LOCAL_IP}" |
| 82 | + ASCEND_RT_VISIBLE_DEVICES: "${VISIBLE_DEVICES}" |
| 83 | + |
| 84 | +env_prefill: &env_prefill |
| 85 | + <<: *env_common |
| 86 | + HCCL_BUFFSIZE: "1024" |
| 87 | + HCCL_OP_EXPANSION_MODE: "AIV" |
| 88 | + |
| 89 | +env_decode: &env_decode |
| 90 | + <<: *env_common |
| 91 | + HCCL_BUFFSIZE: "4096" |
| 92 | + |
| 93 | +templates: |
| 94 | + - node_index: 0 |
| 95 | + envs: |
| 96 | + <<: *env_prefill |
| 97 | + server_cmd_template: |
| 98 | + - --host |
| 99 | + - "0.0.0.0" |
| 100 | + - --port |
| 101 | + - ${PORT} |
| 102 | + - --data-parallel-size |
| 103 | + - ${DP_SIZE} |
| 104 | + - --data-parallel-rank |
| 105 | + - ${DP_RANK} |
| 106 | + - --data-parallel-address |
| 107 | + - ${DP_ADDRESS} |
| 108 | + - --data-parallel-rpc-port |
| 109 | + - ${DP_RPC_PORT} |
| 110 | + - --tensor-parallel-size |
| 111 | + - ${TP_SIZE} |
| 112 | + - --prefill-context-parallel-size |
| 113 | + - ${CP_SIZE} |
| 114 | + - --enable-expert-parallel |
| 115 | + - --seed |
| 116 | + - "1024" |
| 117 | + - --served-model-name |
| 118 | + - "dsv41" |
| 119 | + - --max-model-len |
| 120 | + - "132096" |
| 121 | + - --max-num-batched-tokens |
| 122 | + - "16384" |
| 123 | + - --max-num-seqs |
| 124 | + - "16" |
| 125 | + - --speculative-config |
| 126 | + - '{"num_speculative_tokens": 5, "method": "dspark"}' |
| 127 | + - --trust-remote-code |
| 128 | + - --block-size |
| 129 | + - "128" |
| 130 | + - --tokenizer-mode |
| 131 | + - "deepseek_v41" |
| 132 | + - --reasoning-parser |
| 133 | + - "deepseek_v41" |
| 134 | + - --tool-call-parser |
| 135 | + - "deepseek_v41" |
| 136 | + - --enable-auto-tool-choice |
| 137 | + - --safetensors-load-strategy |
| 138 | + - "lazy" |
| 139 | + - --gpu-memory-utilization |
| 140 | + - "0.9" |
| 141 | + - --quantization |
| 142 | + - "ascend" |
| 143 | + - --enforce-eager |
| 144 | + - --swa-bounded-replay |
| 145 | + - --no-enable-prefix-caching |
| 146 | + - --engram-config |
| 147 | + - '{"cpu_offload": true, "dp_shared_memory": true}' |
| 148 | + - --additional-config |
| 149 | + - '{"enable_cpu_binding": true, "enable_fused_mc2": 2, "enable_flashcomm1": false, "enable_shared_expert_dp": true, "multistream_overlap_shared_expert": false}' |
| 150 | + - --kv-transfer-config |
| 151 | + - '{"kv_connector": "MultiConnector", "kv_role": "kv_producer", "kv_port": "30000", "kv_connector_extra_config": {"connectors": [{"kv_connector": "MooncakeConnectorV2", "kv_role": "kv_producer", "kv_port": "30000", "kv_connector_extra_config": {"use_layerwise": true}}, {"kv_connector": "AscendStoreConnector", "kv_role": "kv_producer", "kv_connector_extra_config": {"backend": "memcache", "lookup_rpc_port": "0", "use_layerwise": true}}]}}' |
| 152 | + |
| 153 | + - node_index: 1 |
| 154 | + envs: |
| 155 | + <<: *env_decode |
| 156 | + server_cmd_template: |
| 157 | + - --host |
| 158 | + - "0.0.0.0" |
| 159 | + - --port |
| 160 | + - ${PORT} |
| 161 | + - --data-parallel-size |
| 162 | + - ${DP_SIZE} |
| 163 | + - --data-parallel-rank |
| 164 | + - ${DP_RANK} |
| 165 | + - --data-parallel-address |
| 166 | + - ${DP_ADDRESS} |
| 167 | + - --data-parallel-rpc-port |
| 168 | + - ${DP_RPC_PORT} |
| 169 | + - --tensor-parallel-size |
| 170 | + - ${TP_SIZE} |
| 171 | + - --prefill-context-parallel-size |
| 172 | + - ${CP_SIZE} |
| 173 | + - --enable-expert-parallel |
| 174 | + - --seed |
| 175 | + - "1024" |
| 176 | + - --served-model-name |
| 177 | + - "dsv41" |
| 178 | + - --max-model-len |
| 179 | + - "132096" |
| 180 | + - --max-num-batched-tokens |
| 181 | + - "512" |
| 182 | + - --max-num-seqs |
| 183 | + - "72" |
| 184 | + - --async-scheduling |
| 185 | + - --speculative-config |
| 186 | + - '{"num_speculative_tokens": 5, "method": "dspark"}' |
| 187 | + - --trust-remote-code |
| 188 | + - --block-size |
| 189 | + - "128" |
| 190 | + - --tokenizer-mode |
| 191 | + - "deepseek_v41" |
| 192 | + - --reasoning-parser |
| 193 | + - "deepseek_v41" |
| 194 | + - --tool-call-parser |
| 195 | + - "deepseek_v41" |
| 196 | + - --enable-auto-tool-choice |
| 197 | + - --safetensors-load-strategy |
| 198 | + - "lazy" |
| 199 | + - --gpu-memory-utilization |
| 200 | + - "0.95" |
| 201 | + - --quantization |
| 202 | + - "ascend" |
| 203 | + - --no-enable-prefix-caching |
| 204 | + - --no-swa-bounded-replay |
| 205 | + - --compilation-config |
| 206 | + - '{"cudagraph_mode": "FULL_DECODE_ONLY"}' |
| 207 | + - --engram-config |
| 208 | + - '{"cpu_offload": true, "dp_shared_memory": true}' |
| 209 | + - --additional-config |
| 210 | + - '{"ascend_compilation_config": {"enable_npugraph_ex": true, "enable_static_kernel": false}, "enable_cpu_binding": true, "multistream_overlap_shared_expert": true, "recompute_scheduler_enable": true}' |
| 211 | + - --kv-transfer-config |
| 212 | + - '{"kv_connector": "MultiConnector", "kv_role": "kv_consumer", "kv_port": "31100", "kv_connector_extra_config": {"connectors": [{"kv_connector": "MooncakeConnectorV2", "kv_role": "kv_consumer", "kv_port": "31100", "kv_connector_extra_config": {"use_layerwise": true}}, {"kv_connector": "AscendStoreConnector", "kv_role": "kv_consumer", "kv_connector_extra_config": {"backend": "memcache", "lookup_rpc_port": "0", "use_layerwise": false}}]}}' |
| 213 | + |
| 214 | +benchmarks: {} |
0 commit comments