Skip to content

Commit 41ed3ee

Browse files
[Test] Add test for deepseek-v3.2-exp-w8a8
Signed-off-by: hfadzxy <starmoon_zhang@163.com>
1 parent a899f61 commit 41ed3ee

File tree

7 files changed

+275
-159
lines changed

7 files changed

+275
-159
lines changed

.github/workflows/_e2e_nightly_multi_node.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ jobs:
103103
- name: Decode kubeconfig from secrets
104104
run: |
105105
# Decode and save kubeconfig
106-
echo "${{ secrets.KUBECONFIG_B64 }}" | base64 -d > $KUBECONFIG
106+
# echo "${{ secrets.KUBECONFIG_B64 }}" | base64 -d > $KUBECONFIG
107+
cp /root/.cache/.kube/kubeconfig.yaml "$KUBECONFIG"
107108
108109
- name: Checkout code
109110
uses: actions/checkout@v4

.github/workflows/_e2e_nightly_single_node.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ on:
3333
tests:
3434
required: true
3535
type: string
36+
name:
37+
required: false
38+
type: string
3639

3740
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
3841
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -94,6 +97,28 @@ jobs:
9497
pip install -r requirements-dev.txt
9598
pip install -v -e .
9699
100+
- name: Install custom-ops & MLAPO (for DeepSeek-V3.2-Exp)
101+
if: ${{ inputs.name == 'deepseek3_2-exp-w8a8' }}
102+
shell: bash -l {0}
103+
run: |
104+
wget https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/a3/CANN-custom_ops-sfa-linux.aarch64.run
105+
chmod +x ./CANN-custom_ops-sfa-linux.aarch64.run
106+
./CANN-custom_ops-sfa-linux.aarch64.run --quiet
107+
export ASCEND_CUSTOM_OPP_PATH=/usr/local/Ascend/ascend-toolkit/latest/opp/vendors/customize:${ASCEND_CUSTOM_OPP_PATH}
108+
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/opp/vendors/customize/op_api/lib/:${LD_LIBRARY_PATH}
109+
wget https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/a3/custom_ops-1.0-cp311-cp311-linux_aarch64.whl
110+
pip install custom_ops-1.0-cp311-cp311-linux_aarch64.whl
111+
112+
wget https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/a3/CANN-custom_ops-mlapo-linux.aarch64.run
113+
chmod +x ./CANN-custom_ops-mlapo-linux.aarch64.run
114+
./CANN-custom_ops-mlapo-linux.aarch64.run --quiet --install-path=/vllm-workspace/CANN
115+
wget https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/a3/torch_npu-2.7.1%2Bgitb7c90d0-cp311-cp311-linux_aarch64.whl
116+
pip install torch_npu-2.7.1+gitb7c90d0-cp311-cp311-linux_aarch64.whl
117+
wget https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/a3/libopsproto_rt2.0.so
118+
cp libopsproto_rt2.0.so /usr/local/Ascend/ascend-toolkit/8.2.RC1/opp/built-in/op_proto/lib/linux/aarch64/libopsproto_rt2.0.so
119+
. /vllm-workspace/CANN/vendors/customize/bin/set_env.bash
120+
export LD_PRELOAD=/vllm-workspace/CANN/vendors/customize/op_proto/lib/linux/aarch64/libcust_opsproto_rt2.0.so:${LD_PRELOAD}
121+
97122
- name: Checkout aisbench repo and Install aisbench
98123
run: |
99124
git clone https://gitee.com/aisbench/benchmark.git

.github/workflows/vllm_ascend_test_nightly_a3.yaml

Lines changed: 56 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
pull_request:
2929
branches:
3030
- 'main'
31+
push:
32+
branches:
33+
- 'main'
3134

3235
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
3336
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -43,74 +46,78 @@ concurrency:
4346
jobs:
4447
single-node-tests:
4548
name: single-node
46-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
49+
# if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
4750
strategy:
4851
fail-fast: false
4952
matrix:
5053
test_config:
51-
- name: qwen3-32b-in8-a3
52-
os: linux-aarch64-a3-4
53-
tests: tests/e2e/nightly/models/test_qwen3_32b_int8.py
54-
- name: qwen3-32b-int8-a3-feature-stack3
55-
os: linux-aarch64-a3-4
56-
tests: tests/e2e/nightly/features/test_qwen3_32b_int8_a3_feature_stack3.py
57-
- name: qwen3-235b-a22b-w8a8-eplb
58-
os: linux-aarch64-a3-16
59-
tests: tests/e2e/nightly/models/test_qwen3_235b_a22b_w8a8_eplb.py
60-
- name: deepseek-r1-w8a8-eplb
61-
os: linux-aarch64-a3-16
62-
tests: tests/e2e/nightly/models/test_deepseek_r1_w8a8_eplb.py
63-
- name: qwen2-5-vl-7b
64-
os: linux-aarch64-a3-4
65-
tests: tests/e2e/nightly/models/test_qwen2_5_vl_7b.py
66-
- name: qwen2-5-vl-32b
67-
os: linux-aarch64-a3-4
68-
tests: tests/e2e/nightly/models/test_qwen2_5_vl_32b.py
69-
- name: qwen3-32b-int8-prefix-cache
70-
os: linux-aarch64-a3-4
71-
tests: tests/e2e/nightly/features/test_prefix_cache_qwen3_32b_int8.py
72-
- name: deepseek-r1-0528-w8a8
73-
os: linux-aarch64-a3-16
74-
tests: tests/e2e/nightly/models/test_deepseek_r1_0528_w8a8.py
75-
- name: deepseek-r1-0528-w8a8-prefix-cache
54+
# - name: qwen3-32b-in8-a3
55+
# os: linux-aarch64-a3-4
56+
# tests: tests/e2e/nightly/models/test_qwen3_32b_int8.py
57+
# - name: qwen3-32b-int8-a3-feature-stack3
58+
# os: linux-aarch64-a3-4
59+
# tests: tests/e2e/nightly/features/test_qwen3_32b_int8_a3_feature_stack3.py
60+
# - name: qwen3-235b-a22b-w8a8-eplb
61+
# os: linux-aarch64-a3-16
62+
# tests: tests/e2e/nightly/models/test_qwen3_235b_a22b_w8a8_eplb.py
63+
# - name: deepseek-r1-w8a8-eplb
64+
# os: linux-aarch64-a3-16
65+
# tests: tests/e2e/nightly/models/test_deepseek_r1_w8a8_eplb.py
66+
# - name: qwen2-5-vl-7b
67+
# os: linux-aarch64-a3-4
68+
# tests: tests/e2e/nightly/models/test_qwen2_5_vl_7b.py
69+
# - name: qwen2-5-vl-32b
70+
# os: linux-aarch64-a3-4
71+
# tests: tests/e2e/nightly/models/test_qwen2_5_vl_32b.py
72+
# - name: qwen3-32b-int8-prefix-cache
73+
# os: linux-aarch64-a3-4
74+
# tests: tests/e2e/nightly/features/test_prefix_cache_qwen3_32b_int8.py
75+
# - name: deepseek-r1-0528-w8a8
76+
# os: linux-aarch64-a3-16
77+
# tests: tests/e2e/nightly/models/test_deepseek_r1_0528_w8a8.py
78+
# - name: deepseek-r1-0528-w8a8-prefix-cache
79+
# os: linux-aarch64-a3-16
80+
# tests: tests/e2e/nightly/features/test_prefix_cache_deepseek_r1_0528_w8a8.py
81+
# - name: qwq-32b-a3
82+
# os: linux-aarch64-a3-4
83+
# tests: tests/e2e/nightly/models/test_qwq_32b.py
84+
- name: deepseek3_2-exp-w8a8
7685
os: linux-aarch64-a3-16
77-
tests: tests/e2e/nightly/features/test_prefix_cache_deepseek_r1_0528_w8a8.py
78-
- name: qwq-32b-a3
79-
os: linux-aarch64-a3-4
80-
tests: tests/e2e/nightly/models/test_qwq_32b.py
86+
tests: tests/e2e/nightly/models/test_deepseek_v3_2_exp_w8a8.py
8187
uses: ./.github/workflows/_e2e_nightly_single_node.yaml
8288
with:
8389
vllm: v0.11.0
8490
runner: ${{ matrix.test_config.os }}
8591
image: swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:8.3.rc1-a3-ubuntu22.04-py3.11
8692
tests: ${{ matrix.test_config.tests }}
93+
name: ${{ matrix.test_config.name }}
8794

8895
multi-node-tests:
8996
name: multi-node
90-
needs: single-node-tests
91-
if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
97+
# needs: single-node-tests
98+
# if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
9299
strategy:
93100
fail-fast: false
94101
max-parallel: 1
95102
matrix:
96103
test_config:
97-
- name: multi-node-deepseek-pd
98-
config_file_path: DeepSeek-V3.yaml
99-
size: 2
100-
- name: multi-node-qwen3-dp
101-
config_file_path: Qwen3-235B-A3B.yaml
102-
size: 2
103-
- name: multi-node-deepseek3.2-exp-dp
104-
config_file_path: tests/e2e/nightly/multi_node/config/models/DeepSeek3_2-Exp-W8A8.yaml
105-
size: 2
106-
- name: multi-node-dpsk-4node-pd
107-
config_file_path: DeepSeek-R1-W8A8.yaml
108-
size: 4
109-
- name: multi-node-qwenw8a8-2node
110-
config_file_path: Qwen3-235B-W8A8.yaml
111-
size: 2
112-
- name: multi-node-glm-2node
113-
config_file_path: GLM-4_5.yaml
104+
# - name: multi-node-deepseek-pd
105+
# config_file_path: DeepSeek-V3.yaml
106+
# size: 2
107+
# - name: multi-node-qwen3-dp
108+
# config_file_path: Qwen3-235B-A3B.yaml
109+
# size: 2
110+
# - name: multi-node-dpsk-4node-pd
111+
# config_file_path: DeepSeek-R1-W8A8.yaml
112+
# size: 4
113+
# - name: multi-node-qwenw8a8-2node
114+
# config_file_path: Qwen3-235B-W8A8.yaml
115+
# size: 2
116+
# - name: multi-node-glm-2node
117+
# config_file_path: GLM-4_5.yaml
118+
# size: 2
119+
- name: multi-node-dpsk3.2-exp-dp
120+
config_file_path: DeepSeek-V3_2-Exp-W8A8.yaml
114121
size: 2
115122
uses: ./.github/workflows/_e2e_nightly_multi_node.yaml
116123
with:
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
2+
# Copyright 2023 The vLLM team.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
# This file is a part of the vllm-ascend project.
16+
#
17+
from typing import Any
18+
19+
import openai
20+
import pytest
21+
from vllm.utils import get_open_port
22+
23+
from tests.e2e.conftest import RemoteOpenAIServer
24+
from tools.aisbench import run_aisbench_cases
25+
26+
MODELS = [
27+
"vllm-ascend/DeepSeek-V3.2-Exp-W8A8",
28+
]
29+
30+
TENSOR_PARALLELS = [8]
31+
DATA_PARALLELS = [2]
32+
FULL_GRAPH = [True, False]
33+
34+
prompts = [
35+
"San Francisco is a",
36+
]
37+
38+
api_keyword_args = {
39+
"max_tokens": 10,
40+
}
41+
42+
aisbench_cases = [{
43+
"case_type": "accuracy",
44+
"dataset_path": "vllm-ascend/gsm8k-lite",
45+
"request_conf": "vllm_api_general_chat",
46+
"dataset_conf": "gsm8k/gsm8k_gen_0_shot_cot_chat_prompt",
47+
"max_out_len": 4096,
48+
"batch_size": 8,
49+
"baseline": 95,
50+
"threshold": 5
51+
}, {
52+
"case_type": "performance",
53+
"dataset_path": "vllm-ascend/GSM8K-in3500-bs400",
54+
"request_conf": "vllm_api_stream_chat",
55+
"dataset_conf": "gsm8k/gsm8k_gen_0_shot_cot_str_perf",
56+
"num_prompts": 16,
57+
"max_out_len": 1500,
58+
"batch_size": 8,
59+
"request_rate": 0,
60+
"baseline": 1,
61+
"threshold": 0.97
62+
}]
63+
64+
65+
@pytest.mark.asyncio
66+
@pytest.mark.parametrize("model", MODELS)
67+
@pytest.mark.parametrize("tp_size", TENSOR_PARALLELS)
68+
@pytest.mark.parametrize("dp_size", DATA_PARALLELS)
69+
@pytest.mark.parametrize("full_graph", FULL_GRAPH)
70+
async def test_models(model: str, tp_size: int, dp_size: int,
71+
full_graph: bool) -> None:
72+
port = get_open_port()
73+
env_dict = {"HCCL_BUFFSIZE": "1024", "VLLM_ASCEND_ENABLE_MLAPO": "1"}
74+
server_args = [
75+
"--no-enable-prefix-caching",
76+
"--enable-expert-parallel",
77+
"--tensor-parallel-size",
78+
str(tp_size),
79+
"--data-parallel-size",
80+
str(dp_size),
81+
"--port",
82+
str(port),
83+
"--max-model-len",
84+
"16384",
85+
"--max-num-batched-tokens",
86+
"16384",
87+
"--block-size",
88+
"16",
89+
"--trust-remote-code",
90+
"--quantization",
91+
"ascend",
92+
"--gpu-memory-utilization",
93+
"0.9",
94+
"--additional-config",
95+
'{"ascend_scheduler_config":{"enabled":true},'
96+
'"torchair_graph_config":{"enabled":true,"graph_batch_sizes":[16]}}',
97+
]
98+
if full_graph:
99+
server_args += [
100+
"--compilation-config",
101+
'{"cudagraph_capture": [16], "cudagraph_model":"FULL_DECODE_ONLY"}'
102+
]
103+
request_keyword_args: dict[str, Any] = {
104+
**api_keyword_args,
105+
}
106+
with RemoteOpenAIServer(model,
107+
server_args,
108+
server_port=port,
109+
env_dict=env_dict,
110+
auto_port=False) as server:
111+
client = server.get_async_client()
112+
batch = await client.completions.create(
113+
model=model,
114+
prompt=prompts,
115+
**request_keyword_args,
116+
)
117+
choices: list[openai.types.CompletionChoice] = batch.choices
118+
assert choices[0].text, "empty response"
119+
# aisbench test
120+
run_aisbench_cases(model, port, aisbench_cases)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
test_name: "test DeepSeek-V3.2-Exp-bf16 multi-dp"
2+
model: "Yanguan/DeepSeek-V3.2-Exp-bf16"
3+
num_nodes: 2
4+
npu_per_node: 16
5+
env_common:
6+
VLLM_USE_MODELSCOPE: true
7+
OMP_PROC_BIND: false
8+
OMP_NUM_THREADS: 100
9+
HCCL_BUFFSIZE: 1024
10+
SERVER_PORT: 8080
11+
VLLM_ASCEND_ENABLE_MLAPO: 1
12+
13+
deployment:
14+
-
15+
server_cmd: >
16+
vllm serve Yanguan/DeepSeek-V3.2-Exp-bf16 \
17+
--host 0.0.0.0
18+
--port $SERVER_PORT
19+
--data-parallel-address $LOCAL_IP
20+
--data-parallel-size 2
21+
--data-parallel-size-local 1
22+
--data-parallel-rpc-port 13389
23+
--tensor-parallel-size 16
24+
--seed 1024
25+
--enable-expert-parallel
26+
--max-num-seqs 16
27+
--max-model-len 17450
28+
--max-num-batched-tokens 17450
29+
--trust-remote-code
30+
--no-enable-prefix-caching
31+
--gpu-memory-utilization 0.9
32+
--additional-config '{"ascend_scheduler_config":{"enabled":true},"torchair_graph_config":{"enabled":true,"graph_batch_sizes":[16]}}'
33+
34+
-
35+
server_cmd: >
36+
vllm serve Yanguan/DeepSeek-V3.2-Exp-bf16 \
37+
--host 0.0.0.0
38+
--port $SERVER_PORT
39+
--headless
40+
--data-parallel-size 2
41+
--data-parallel-size-local 1
42+
--data-parallel-start-rank 1
43+
--data-parallel-address $MASTER_IP
44+
--data-parallel-rpc-port 13389
45+
--tensor-parallel-size 16
46+
--seed 1024
47+
--max-num-seqs 16
48+
--max-model-len 17450
49+
--max-num-batched-tokens 17450
50+
--enable-expert-parallel
51+
--trust-remote-code
52+
--no-enable-prefix-caching
53+
--gpu-memory-utilization 0.92
54+
--additional-config '{"ascend_scheduler_config":{"enabled":true},"torchair_graph_config":{"enabled":true,"graph_batch_sizes":[16]}}'
55+
benchmarks:

0 commit comments

Comments
 (0)