Skip to content

Commit 3bd8aa6

Browse files
committed
tmp
Signed-off-by: Yikun Jiang <[email protected]>
1 parent 854edfa commit 3bd8aa6

File tree

1 file changed

+33
-23
lines changed

1 file changed

+33
-23
lines changed

.github/workflows/accuracy_test.yaml

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ on:
4646
- all
4747
- Qwen/Qwen2.5-7B-Instruct
4848
- Qwen/Qwen2.5-VL-7B-Instruct
49-
- Qwen/Qwen3-8B-Base
5049
default: 'all'
5150

5251
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
@@ -59,7 +58,13 @@ defaults:
5958
jobs:
6059
model_tests:
6160
# test will be triggered when tag '*-accuracy-test' & 'ready-for-test' or schedule job
62-
if: ${{ contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test') && contains(github.event.pull_request.labels.*.name, 'ready-for-test') || github.event_name == 'workflow_dispatch' }}
61+
if: >-
62+
${{
63+
(contains(github.event.pull_request.labels.*.name, 'vl-accuracy-test') ||
64+
contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test')) &&
65+
contains(github.event.pull_request.labels.*.name, 'ready-for-test') ||
66+
github.event_name == 'workflow_dispatch'
67+
}}
6368
name: Model Test - ${{ matrix.model_name }}
6469
runs-on: 'linux-arm64-npu-2'
6570
strategy:
@@ -72,9 +77,9 @@ jobs:
7277
# - dense-accuracy-test: Qwen/Qwen2.5-7B-Instruct
7378
# - vl-accuracy-test: Qwen/Qwen2.5-VL-7B-Instruct
7479
include: ${{ fromJSON(
75-
github.event_name == 'workflow_dispatch' ||
76-
(github.event.inputs.models == 'all' && '[{"model_name":"Qwen/Qwen2.5-7B-Instruct"},{"model_name":"Qwen/Qwen2.5-VL-7B-Instruct"},{"model_name":"Qwen/Qwen3-8B-Base"}]') ||
77-
(github.event.inputs.models != '' && '[{"model_name":"${{ github.event.inputs.models }}"}]') ||
80+
(github.event.inputs.models == 'all' && '[{"model_name":"Qwen/Qwen2.5-7B-Instruct"},{"model_name":"meta-llama/Llama-3.1-8B-Instruct"},{"model_name":"Qwen/Qwen2.5-VL-7B-Instruct"}, {"model_name":"Qwen/Qwen3-8B-Base"}]') ||
81+
(github.event.inputs.models == 'Qwen/Qwen2.5-7B-Instruct' && '[{"model_name":"Qwen/Qwen2.5-7B-Instruct"}]') ||
82+
(github.event.inputs.models == 'Qwen/Qwen2.5-VL-7B-Instruct' && '[{"model_name":"Qwen/Qwen2.5-VL-7B-Instruct"}]') ||
7883
contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test') && '[{"model_name":"Qwen/Qwen2.5-7B-Instruct"}]' ||
7984
contains(github.event.pull_request.labels.*.name, 'vl-accuracy-test') && '[{"model_name":"Qwen/Qwen2.5-VL-7B-Instruct"}]'
8085
) }}
@@ -86,6 +91,7 @@ jobs:
8691
HF_ENDPOINT: https://hf-mirror.com
8792
HF_TOKEN: ${{ secrets.HF_TOKEN }}
8893
DATASET_SOURCE: ModelScope
94+
VLLM_USE_MODELSCOPE: True
8995

9096
steps:
9197
- name: Checkout repository
@@ -114,26 +120,27 @@ jobs:
114120
with:
115121
repository: vllm-project/vllm
116122
path: ./vllm-empty
117-
ref: ${{ github.event.inputs.vllm-version }}
123+
ref: ${{ github.event.inputs.vllm-version || 'v0.9.0' }}
118124

119-
- name: Install vllm-project/vllm from source
120-
working-directory: ./vllm-empty
121-
run: VLLM_TARGET_DEVICE=empty pip install -e .
122-
125+
# - name: Install vllm-project/vllm from source
126+
# working-directory: ./vllm-empty
127+
# run: VLLM_TARGET_DEVICE=empty pip install -e .
123128

124129
- name: Checkout vllm-project/vllm-ascend repo
125130
uses: actions/checkout@v4
126131
with:
127132
repository: vllm-project/vllm-ascend
128133
path: ./vllm-ascend
134+
# 1. If version specified (work_dispatch), do specified branch test
135+
# 2. If no version (labeled PR), do PR accuracy test
129136
ref: ${{ github.event.inputs.vllm-ascend-version }}
130137
fetch-depth: 0
131138

132-
- name: Install vllm-project/vllm-ascend
133-
working-directory: ./vllm-ascend
134-
run: |
135-
pip install -r requirements-dev.txt
136-
pip install -e .
139+
# - name: Install vllm-project/vllm-ascend
140+
# working-directory: ./vllm-ascend
141+
# run: |
142+
# pip install -r requirements-dev.txt
143+
# pip install -e .
137144

138145
- name: Install lm-eval, ray, and datasets
139146
run: |
@@ -175,16 +182,19 @@ jobs:
175182
PYTORCH_NPU_ALLOC_CONF: max_split_size_mb:256
176183
run: |
177184
model_base_name=$(basename ${{ matrix.model_name }})
185+
echo "model_base_name=$model_base_name"
178186
echo "model_base_name=$model_base_name" >> $GITHUB_OUTPUT
179187
mkdir -p ./accuracy/V0
180-
python ./scripts/run_accuracy.py \
181-
--model "${{ matrix.model_name }}" \
182-
--output "./accuracy/V0/${model_base_name}.md" \
183-
--vllm_ascend_version "${{ github.event.inputs.vllm-ascend-version }}" \
184-
--cann_version "${{ env.CANN_VERSION }}" \
185-
--torch_npu_version "${{ env.TORCH_NPU_VERSION }}" \
186-
--torch_version "${{ env.TORCH_VERSION }}" \
187-
--vllm_version "${{ env.VLLM_VERSION }}"
188+
echo "test111" > ./accuracy/V0/${model_base_name}.md
189+
# python ./scripts/run_accuracy.py \
190+
# --model "${{ matrix.model_name }}" \
191+
# --output "./accuracy/V0/${model_base_name}.md" \
192+
# --vllm_ascend_version "${{ github.event.inputs.vllm-ascend-version || 'current' }}" \
193+
# --cann_version "${{ env.CANN_VERSION }}" \
194+
# --torch_npu_version "${{ env.TORCH_NPU_VERSION }}" \
195+
# --torch_version "${{ env.TORCH_VERSION }}" \
196+
# --vllm_version "${{ env.VLLM_VERSION }}"
197+
cat ./accuracy/V0/${model_base_name}.md
188198
189199
- name: Upload Report for V0
190200
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)