[CI] Enable merge trigger unit test and accuracy test schedule job (#1345)
### What this PR does / why we need it? - Enable merge trigger unit test and accuracy test schedule job - Pin lm-eval==0.4.8 to resovle Qwen3 8B accuracy ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI passed Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
This commit is contained in:
14
.github/workflows/accuracy_test.yaml
vendored
14
.github/workflows/accuracy_test.yaml
vendored
@@ -22,6 +22,9 @@
|
|||||||
name: Benchmarks / accuracy
|
name: Benchmarks / accuracy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
# Runs every 6 hours
|
||||||
|
- cron: '0 */6 * * *'
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [ labeled ]
|
types: [ labeled ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -43,6 +46,7 @@ on:
|
|||||||
options:
|
options:
|
||||||
- main
|
- main
|
||||||
- v0.7.3-dev
|
- v0.7.3-dev
|
||||||
|
- v0.9.1-dev
|
||||||
models:
|
models:
|
||||||
description: 'model:'
|
description: 'model:'
|
||||||
required: true
|
required: true
|
||||||
@@ -75,7 +79,7 @@ jobs:
|
|||||||
contains(github.event.pull_request.labels.*.name, 'vl-accuracy-test') ||
|
contains(github.event.pull_request.labels.*.name, 'vl-accuracy-test') ||
|
||||||
contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test')) &&
|
contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test')) &&
|
||||||
contains(github.event.pull_request.labels.*.name, 'ready-for-test') ||
|
contains(github.event.pull_request.labels.*.name, 'ready-for-test') ||
|
||||||
github.event_name == 'workflow_dispatch'
|
github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
|
||||||
}}
|
}}
|
||||||
runs-on: >-
|
runs-on: >-
|
||||||
${{
|
${{
|
||||||
@@ -94,6 +98,8 @@ jobs:
|
|||||||
# - dense-accuracy-test: Qwen/Qwen2.5-7B-Instruct
|
# - dense-accuracy-test: Qwen/Qwen2.5-7B-Instruct
|
||||||
# - vl-accuracy-test: Qwen/Qwen2.5-VL-7B-Instruct
|
# - vl-accuracy-test: Qwen/Qwen2.5-VL-7B-Instruct
|
||||||
model_name: ${{ fromJSON(
|
model_name: ${{ fromJSON(
|
||||||
|
(github.event_name == 'schedule' &&
|
||||||
|
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct","Qwen/Qwen3-8B-Base"]') ||
|
||||||
(github.event.inputs.models == 'all' &&
|
(github.event.inputs.models == 'all' &&
|
||||||
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct","Qwen/Qwen3-8B-Base"]') ||
|
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct","Qwen/Qwen3-8B-Base"]') ||
|
||||||
(github.event.inputs.models == 'Qwen/Qwen2.5-7B-Instruct' &&
|
(github.event.inputs.models == 'Qwen/Qwen2.5-7B-Instruct' &&
|
||||||
@@ -103,9 +109,9 @@ jobs:
|
|||||||
(github.event.inputs.models == 'Qwen/Qwen3-8B-Base' &&
|
(github.event.inputs.models == 'Qwen/Qwen3-8B-Base' &&
|
||||||
'["Qwen/Qwen3-8B-Base"]') ||
|
'["Qwen/Qwen3-8B-Base"]') ||
|
||||||
contains(github.event.pull_request.labels.*.name, 'accuracy-test') &&
|
contains(github.event.pull_request.labels.*.name, 'accuracy-test') &&
|
||||||
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct"]' ||
|
'["Qwen/Qwen3-8B-Base","Qwen/Qwen2.5-VL-7B-Instruct"]' ||
|
||||||
contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test') &&
|
contains(github.event.pull_request.labels.*.name, 'dense-accuracy-test') &&
|
||||||
'["Qwen/Qwen2.5-7B-Instruct"]' ||
|
'["Qwen/Qwen3-8B-Base"]' ||
|
||||||
contains(github.event.pull_request.labels.*.name, 'vl-accuracy-test') &&
|
contains(github.event.pull_request.labels.*.name, 'vl-accuracy-test') &&
|
||||||
'["Qwen/Qwen2.5-VL-7B-Instruct"]'
|
'["Qwen/Qwen2.5-VL-7B-Instruct"]'
|
||||||
) }}
|
) }}
|
||||||
@@ -181,7 +187,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install lm-eval, ray, and datasets
|
- name: Install lm-eval, ray, and datasets
|
||||||
run: |
|
run: |
|
||||||
pip install lm-eval
|
pip install lm-eval==0.4.8
|
||||||
|
|
||||||
- name: Collect version info
|
- name: Collect version info
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.github/workflows/image_310p_openeuler.yml
vendored
2
.github/workflows/image_310p_openeuler.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: 'image / openEuler'
|
name: 'image / openEuler / 310p'
|
||||||
# This is a docker build check and publish job:
|
# This is a docker build check and publish job:
|
||||||
# 1. PR Triggered docker image build check
|
# 1. PR Triggered docker image build check
|
||||||
# - is for image build check
|
# - is for image build check
|
||||||
|
|||||||
4
.github/workflows/image_310p_ubuntu.yml
vendored
4
.github/workflows/image_310p_ubuntu.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: 'image / Ubuntu'
|
name: 'image / Ubuntu / 310p'
|
||||||
# This is a docker build check and publish job:
|
# This is a docker build check and publish job:
|
||||||
# 1. PR Triggered docker image build check
|
# 1. PR Triggered docker image build check
|
||||||
# - is for image build check
|
# - is for image build check
|
||||||
@@ -16,7 +16,7 @@ on:
|
|||||||
- 'main'
|
- 'main'
|
||||||
- '*-dev'
|
- '*-dev'
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/image_310p.ubuntu.yml'
|
- '.github/workflows/image_310p_ubuntu.yml'
|
||||||
- 'Dockerfile.310p'
|
- 'Dockerfile.310p'
|
||||||
- 'vllm_ascend/**'
|
- 'vllm_ascend/**'
|
||||||
- 'setup.py'
|
- 'setup.py'
|
||||||
|
|||||||
8
.github/workflows/vllm_ascend_test.yaml
vendored
8
.github/workflows/vllm_ascend_test.yaml
vendored
@@ -66,6 +66,8 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
# Only trigger lint on pull request
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -131,7 +133,8 @@ jobs:
|
|||||||
ut:
|
ut:
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
name: unit test
|
name: unit test
|
||||||
if: ${{ needs.lint.result == 'success' }}
|
# only trigger e2e test on [pull request after lint passed] and [merged commit]
|
||||||
|
if: ${{ needs.lint.result == 'success' || github.event_name == 'push' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: m.daocloud.io/quay.io/ascend/cann:8.1.rc1-910b-ubuntu22.04-py3.10
|
image: m.daocloud.io/quay.io/ascend/cann:8.1.rc1-910b-ubuntu22.04-py3.10
|
||||||
@@ -191,7 +194,8 @@ jobs:
|
|||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
if: ${{ needs.lint.result == 'success' }}
|
# only trigger e2e test on pull request after lint passed
|
||||||
|
if: ${{ needs.lint.result == 'success' && github.event_name == 'pull_request' }}
|
||||||
strategy:
|
strategy:
|
||||||
max-parallel: 2
|
max-parallel: 2
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
Reference in New Issue
Block a user