Skip to content

Commit 3372935

Browse files
committed
update single cases
Signed-off-by: songyang <songyang719@163.com>
1 parent 07fb739 commit 3372935

14 files changed

Lines changed: 2767 additions & 20 deletions

File tree

‎.github/workflows/_e2e_nightly_multi_node.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,13 @@ jobs:
867867
mkdir -p "${DEST}/node${i}/${EXT_LOG_PATH}"
868868
cp "$EXT_SRC" "${DEST}/node${i}/${EXT_LOG_PATH}/" 2>/dev/null || true
869869
fi
870+
# KV pool A/B legs pack per-rank raw logs into one archive per leg.
871+
for kv_archive in "${LOG_PREFIX}"/node_${i}_kv_pool_pd_*.tar.gz; do
872+
if [ -f "$kv_archive" ]; then
873+
mkdir -p "${DEST}/node${i}/kv-pool-pd"
874+
cp "$kv_archive" "${DEST}/node${i}/kv-pool-pd/" 2>/dev/null || true
875+
fi
876+
done
870877
done
871878
872879
tar -czf /tmp/ascend-logs.tar.gz -C /tmp collected-logs

‎.github/workflows/configs/nightly_config.yaml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ a3:
107107
config_file_path: Kimi-K3-W4A8-A3-1M-PD.yaml
108108
config_base_path: tests/SIT/cases/models/configs/Kimi
109109
size: 8
110+
- name: glm53-w8a8c8-pd-memcache-64k
111+
tests: tests/SIT/cases/features/kv_pool/test_pool_ab.py::test_pool_ab
112+
config_file_path: GLM53-W8A8C8-PD-KVPool.yaml
113+
config_base_path: tests/SIT/cases/features/kv_pool
114+
size: 4
110115
- name: DeepSeek-V4-Pro-w4a8-prefix-cache-PD
111116
config_file_path: DeepSeek-V4-Pro-w4a8-prefix-cache-PD.yaml
112117
config_base_path: tests/SIT/cases/models/configs/DeepSeek
@@ -153,6 +158,32 @@ a3:
153158
config_file_path: GLM-5.1-W8A8C8-A3_128k_90_50.yaml
154159
config_base_path: tests/SIT/cases/models/configs/GLM
155160
size: 2
161+
- name: dsv41-pd-memcache-128k
162+
tests: tests/SIT/cases/features/kv_pool/test_pool_ab.py::test_pool_ab
163+
config_file_path: DSv41-Flash-PD-KVPool.yaml
164+
config_base_path: tests/SIT/cases/features/kv_pool
165+
size: 2
166+
- name: dsv41-pd-mooncake-128k
167+
tests: tests/SIT/cases/features/kv_pool/test_pool_ab.py::test_pool_ab
168+
config_file_path: DSv41-Flash-PD-Mooncake-KVPool.yaml
169+
config_base_path: tests/SIT/cases/features/kv_pool
170+
size: 2
171+
- name: glm53-flash-pd-mooncake-130k
172+
tests: tests/SIT/cases/features/kv_pool/test_pool_ab.py::test_pool_ab
173+
config_file_path: GLM53-Flash-PD-Mooncake-KVPool.yaml
174+
config_base_path: tests/SIT/cases/features/kv_pool
175+
size: 2
176+
single_node:
177+
test_config:
178+
- name: dsv4-memcache-colocation-64k
179+
os: linux-aarch64-a3-800i-16
180+
tests: tests/SIT/cases/features/kv_pool/test_pool_nightly.py::test_dsv4_memcache_colocation_64k
181+
- name: qwen38-memcache-mtp-align
182+
os: linux-aarch64-a3-800i-4
183+
tests: tests/SIT/cases/features/kv_pool/test_pool_nightly.py::test_qwen38_memcache_mtp_align
184+
- name: dsv4-mooncake-dp4-colocation
185+
os: linux-aarch64-a3-800i-16
186+
tests: tests/SIT/cases/features/kv_pool/test_pool_nightly.py::test_dsv4_mooncake_dp4_colocation
156187

157188
a3-560t:
158189
single_node:

‎release_notes/fragments/23195.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pr: 23195
2+
entries:
3+
- category: bugfix
4+
text: Fixed incorrect answers on external KV cache hits when the V2 model runner synchronously reloads a prefix into newly allocated blocks.
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
# DSV4.1-Flash two-node PD KV pool watch.
2+
# A leg: pool enabled; B leg: no pool, local prefix cache only.
3+
# The proxy node drives both legs and serves prefill, the D node serves decode.
4+
#
5+
# Engine flags follow the local dsv41-pd P/D scripts, including the layerwise
6+
# push path for the P->D link (MooncakeConnectorV2 use_layerwise=true). The
7+
# pool-watch limits stay local: max-model-len 132096 leaves headroom for both
8+
# the 131,076-token secret prompt and the 128K prefix90 perf dataset (up to
9+
# ~131,219 tokens); the prefill max-num-batched-tokens of 16384 equals one lcm
10+
# block, so every prefill chunk is a whole pool block and hit counts stay exact.
11+
# The layerwise push path needs the layerwise
12+
# load-balance proxy: the proxy sends the decode first, D publishes its block
13+
# metadata to /v1/metaserver, and only then does the proxy dispatch P so P can
14+
# push the KV layer by layer. The AscendStore pool connector keeps its own
15+
# layerwise setting (P=true, D=false).
16+
#
17+
# CI runs resolve the two nodes through LWS DNS and LWS_WORKER_INDEX.
18+
# Local A3 runs (non-Kubernetes): set cluster_hosts to the two node IPs in
19+
# rank order (P first, D second), then point CONFIG_YAML_PATH at this file.
20+
# cluster_hosts: [<prefill_ip>, <decode_ip>]
21+
test_name: "DSv41-Flash-PD-KVPool"
22+
model: "Eco-Tech/DeepSeek-V4.1-Flash-w8a8"
23+
num_nodes: 2
24+
npu_per_node: 16
25+
26+
routing:
27+
type: "disaggregated_prefill"
28+
proxy_script: "examples/disaggregated_prefill_v1/load_balance_proxy_layerwise_server_example.py"
29+
groups:
30+
prefiller: [ 0 ]
31+
decoder: [ 1 ]
32+
33+
config:
34+
- node_index: 0
35+
port_start: 17100
36+
dp_rpc_port: 19321
37+
dp_size: 4
38+
dp_size_local: 4
39+
dp_rank_start: 0
40+
tp_size: 1
41+
cp_size: 4
42+
dp_address: "${NODE_0_IP}"
43+
44+
- node_index: 1
45+
port_start: 17100
46+
dp_rpc_port: 19321
47+
dp_size: 16
48+
dp_size_local: 16
49+
dp_rank_start: 0
50+
tp_size: 1
51+
cp_size: 1
52+
dp_address: "${NODE_1_IP}"
53+
54+
kv_pool:
55+
type: memcache
56+
meta_service_port: 5007
57+
config_store_port: 6007
58+
config:
59+
meta:
60+
ock.mmc.log_level: error
61+
local:
62+
ock.mmc.log_level: error
63+
ock.mmc.local_service.world_size: 256
64+
ock.mmc.local_service.protocol: device_sdma
65+
ock.mmc.local_service.dram.size: 0GB
66+
ock.mmc.local_service.max.dram.size: 1024GB
67+
68+
# A/B watch parameters: the driver replays this prompt cold -> hit -> hit ->
69+
# disjoint through the proxy, then samples throughput on both legs.
70+
pool_ab:
71+
case_name: "nightly_dsv41_flash_pd_memcache_128k"
72+
model_env: "DEEPSEEK_V41_PD_MODEL_PATH"
73+
prompt_tokens: 131076
74+
lcm_block_size: 16384
75+
control_port: 19555
76+
perf_gate: true
77+
check_output: false
78+
perf_aisbench:
79+
dataset_path: vllm-ascend/GSM8K-in128k-bs512-prefix90-ds
80+
dataset_conf: gsm8k/gsm8k_gen_0_shot_cot_str_perf
81+
request_conf: vllm_api_stream_chat
82+
num_prompts: 128
83+
batch_size: 32
84+
max_out_len: 1
85+
request_rate: 0
86+
seed: 1024
87+
hit_rate_target: 0.9
88+
hit_rate_tolerance: 0.03
89+
warmup:
90+
num_prompts: 4
91+
batch_size: 4
92+
93+
env_common: &env_common
94+
VLLM_USE_V2_MODEL_RUNNER: "1"
95+
VLLM_USE_MODELSCOPE: "true"
96+
VLLM_ENGINE_READY_TIMEOUT_S: "36000"
97+
PYTORCH_NPU_ALLOC_CONF: "expandable_segments:True"
98+
PYTHONHASHSEED: "0"
99+
VLLM_HOST_IP: "${LOCAL_IP}"
100+
ASCEND_RT_VISIBLE_DEVICES: "${VISIBLE_DEVICES}"
101+
102+
env_prefill: &env_prefill
103+
<<: *env_common
104+
HCCL_BUFFSIZE: "1024"
105+
HCCL_OP_EXPANSION_MODE: "AIV"
106+
107+
env_decode: &env_decode
108+
<<: *env_common
109+
HCCL_BUFFSIZE: "4096"
110+
111+
templates:
112+
- node_index: 0
113+
envs:
114+
<<: *env_prefill
115+
server_cmd_template:
116+
- --host
117+
- "0.0.0.0"
118+
- --port
119+
- ${PORT}
120+
- --data-parallel-size
121+
- ${DP_SIZE}
122+
- --data-parallel-rank
123+
- ${DP_RANK}
124+
- --data-parallel-address
125+
- ${DP_ADDRESS}
126+
- --data-parallel-rpc-port
127+
- ${DP_RPC_PORT}
128+
- --tensor-parallel-size
129+
- ${TP_SIZE}
130+
- --prefill-context-parallel-size
131+
- ${CP_SIZE}
132+
- --enable-expert-parallel
133+
- --seed
134+
- "1024"
135+
- --served-model-name
136+
- "dsv41"
137+
- --max-model-len
138+
- "132096"
139+
- --max-num-batched-tokens
140+
- "16384"
141+
- --max-num-seqs
142+
- "16"
143+
- --speculative-config
144+
- '{"num_speculative_tokens": 5, "method": "dspark"}'
145+
- --trust-remote-code
146+
- --block-size
147+
- "128"
148+
- --tokenizer-mode
149+
- "deepseek_v41"
150+
- --reasoning-parser
151+
- "deepseek_v41"
152+
- --tool-call-parser
153+
- "deepseek_v41"
154+
- --enable-auto-tool-choice
155+
- --safetensors-load-strategy
156+
- "lazy"
157+
- --gpu-memory-utilization
158+
- "0.9"
159+
- --quantization
160+
- "ascend"
161+
- --enforce-eager
162+
- --swa-bounded-replay
163+
- --no-enable-prefix-caching
164+
- --engram-config
165+
- '{"cpu_offload": true, "dp_shared_memory": true}'
166+
- --additional-config
167+
- '{"enable_cpu_binding": true, "enable_fused_mc2": 2, "enable_flashcomm1": false, "enable_shared_expert_dp": true, "multistream_overlap_shared_expert": false}'
168+
- --kv-transfer-config
169+
- '{"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}}]}}'
170+
171+
- node_index: 1
172+
envs:
173+
<<: *env_decode
174+
server_cmd_template:
175+
- --host
176+
- "0.0.0.0"
177+
- --port
178+
- ${PORT}
179+
- --data-parallel-size
180+
- ${DP_SIZE}
181+
- --data-parallel-rank
182+
- ${DP_RANK}
183+
- --data-parallel-address
184+
- ${DP_ADDRESS}
185+
- --data-parallel-rpc-port
186+
- ${DP_RPC_PORT}
187+
- --tensor-parallel-size
188+
- ${TP_SIZE}
189+
- --prefill-context-parallel-size
190+
- ${CP_SIZE}
191+
- --enable-expert-parallel
192+
- --seed
193+
- "1024"
194+
- --served-model-name
195+
- "dsv41"
196+
- --max-model-len
197+
- "132096"
198+
- --max-num-batched-tokens
199+
- "512"
200+
- --max-num-seqs
201+
- "72"
202+
- --async-scheduling
203+
- --speculative-config
204+
- '{"num_speculative_tokens": 5, "method": "dspark"}'
205+
- --trust-remote-code
206+
- --block-size
207+
- "128"
208+
- --tokenizer-mode
209+
- "deepseek_v41"
210+
- --reasoning-parser
211+
- "deepseek_v41"
212+
- --tool-call-parser
213+
- "deepseek_v41"
214+
- --enable-auto-tool-choice
215+
- --safetensors-load-strategy
216+
- "lazy"
217+
- --gpu-memory-utilization
218+
- "0.95"
219+
- --quantization
220+
- "ascend"
221+
- --no-enable-prefix-caching
222+
- --no-swa-bounded-replay
223+
- --compilation-config
224+
- '{"cudagraph_mode": "FULL_DECODE_ONLY"}'
225+
- --engram-config
226+
- '{"cpu_offload": true, "dp_shared_memory": true}'
227+
- --additional-config
228+
- '{"ascend_compilation_config": {"enable_npugraph_ex": true, "enable_static_kernel": false}, "enable_cpu_binding": true, "multistream_overlap_shared_expert": true, "recompute_scheduler_enable": true}'
229+
- --kv-transfer-config
230+
- '{"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}}]}}'
231+
232+
benchmarks: {}

0 commit comments

Comments
 (0)