Skip to content

Commit d4d0716

Browse files
author
lt
committed
fix conflict
2 parents a9584dd + 2dba24d commit d4d0716

File tree

110 files changed

+2859
-859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2859
-859
lines changed

.github/workflows/accuracy_test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ jobs:
173173

174174
- name: Install vllm-project/vllm-ascend
175175
working-directory: ./vllm-ascend
176+
env:
177+
PIP_EXTRA_INDEX_URL: https://mirrors.huaweicloud.com/ascend/repos/pypi
176178
run: |
177179
pip install -r requirements-dev.txt
178180
pip install -e .

.github/workflows/image_openeuler.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'image'
1+
name: 'image / openEuler'
22
# This is a docker build check and publish job:
33
# 1. PR Triggered docker image build check
44
# - is for image build check
@@ -19,6 +19,12 @@ on:
1919
- '.github/workflows/image_openeuler.yml'
2020
- 'Dockerfile.openEuler'
2121
- 'vllm_ascend/**'
22+
- 'setup.py'
23+
- 'pyproject.toml'
24+
- 'requirements.txt'
25+
- 'cmake/**'
26+
- 'CMakeLists.txt'
27+
- 'csrc/**'
2228
push:
2329
# Publish image when tagging, the Dockerfile in tag will be build as tag image
2430
branches:
@@ -33,9 +39,13 @@ on:
3339

3440
jobs:
3541
build:
36-
name: vllm-ascend openEuler image
37-
runs-on: ubuntu-latest
38-
42+
name: vllm-ascend image build
43+
runs-on: >-
44+
${{
45+
github.event_name == 'push' && github.repository_owner == 'vllm-project' &&
46+
'ubuntu-latest' ||
47+
'ubuntu-24.04-arm'
48+
}}
3949
steps:
4050
- uses: actions/checkout@v4
4151

@@ -87,7 +97,12 @@ jobs:
8797
- name: Build and push
8898
uses: docker/build-push-action@v6
8999
with:
90-
platforms: linux/amd64,linux/arm64
100+
platforms: >-
101+
${{
102+
github.event_name == 'push' && github.repository_owner == 'vllm-project' &&
103+
'linux/amd64,linux/arm64' ||
104+
'linux/arm64'
105+
}}
91106
# use the current repo path as the build context, ensure .git is contained
92107
context: .
93108
# only trigger when tag, branch/main push

.github/workflows/image_ubuntu.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'image'
1+
name: 'image / Ubuntu'
22
# This is a docker build check and publish job:
33
# 1. PR Triggered docker image build check
44
# - is for image build check
@@ -19,6 +19,12 @@ on:
1919
- '.github/workflows/image_ubuntu.yml'
2020
- 'Dockerfile'
2121
- 'vllm_ascend/**'
22+
- 'setup.py'
23+
- 'pyproject.toml'
24+
- 'requirements.txt'
25+
- 'cmake/**'
26+
- 'CMakeLists.txt'
27+
- 'csrc/**'
2228
push:
2329
# Publish image when tagging, the Dockerfile in tag will be build as tag image
2430
branches:
@@ -33,7 +39,7 @@ on:
3339
jobs:
3440

3541
build:
36-
name: vllm-ascend Ubuntu image
42+
name: vllm-ascend image build
3743
runs-on: ubuntu-latest
3844

3945
steps:
@@ -87,7 +93,12 @@ jobs:
8793
- name: Build and push
8894
uses: docker/build-push-action@v6
8995
with:
90-
platforms: linux/amd64,linux/arm64
96+
platforms: >-
97+
${{
98+
github.event_name == 'push' && github.repository_owner == 'vllm-project' &&
99+
'linux/amd64,linux/arm64' ||
100+
'linux/amd64'
101+
}}
91102
# use the current repo path as the build context, ensure .git is contained
92103
context: .
93104
# only trigger when tag, branch/main push

.github/workflows/nightly_benchmarks.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
VLLM_TARGET_DEVICE=empty pip install -e .
116116
117117
- name: Install vllm-project/vllm-ascend
118+
env:
119+
PIP_EXTRA_INDEX_URL: https://mirrors.huaweicloud.com/ascend/repos/pypi
118120
run: |
119121
pip install -e .
120122
pip install -r benchmarks/requirements-bench.txt
@@ -165,6 +167,8 @@ jobs:
165167
cp -r benchmarks/* /github/home/benchmarks/
166168
167169
- name: Run benchmark iteration
170+
env:
171+
PIP_EXTRA_INDEX_URL: https://mirrors.huaweicloud.com/ascend/repos/pypi
168172
if: github.event_name != 'pull_request'
169173
run: |
170174
while IFS= read -r line || [[ -n "$line" ]]; do

.github/workflows/vllm_ascend_doctest.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
# Each version should be tested
4747
fail-fast: false
4848
matrix:
49-
vllm_verison: [main, v0.7.3-dev, main-openeuler, v0.7.3-dev-openeuler]
49+
vllm_verison: [v0.9.1-dev, v0.9.1-dev-openeuler, main, main-openeuler]
5050
name: vLLM Ascend test
5151
runs-on: linux-arm64-npu-1
5252
container:
@@ -70,13 +70,13 @@ jobs:
7070
run: |
7171
sed -i 's|ports.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
7272
apt-get update -y
73-
apt install git curl -y
73+
apt install -y gcc g++ libnuma-dev git curl jq
7474
7575
- name: Config OS mirrors - openEuler
7676
if: ${{ endsWith(matrix.vllm_verison, '-openeuler') }}
7777
run: |
7878
yum update -y
79-
yum install git curl -y
79+
yum install -y gcc g++ numactl-devel git curl jq
8080
8181
- name: Config pip mirrors
8282
run: |
@@ -88,11 +88,13 @@ jobs:
8888
- name: Run vllm-ascend/tests/e2e/run_doctests.sh
8989
run: |
9090
# PWD: /__w/vllm-ascend/vllm-ascend
91-
# Address old branch like v0.7.3:
92-
if [ ! -d /vllm-workspace/vllm-ascend/tests/e2e ]; then
93-
echo "Warning: the doctest path doesn't exists, copy now"
94-
cp -r tests/e2e /vllm-workspace/vllm-ascend/tests/
95-
fi
91+
echo "Replacing /vllm-workspace/vllm-ascend/tests/e2e ..."
92+
rm -rf /vllm-workspace/vllm-ascend/tests/e2e
93+
mkdir -p /vllm-workspace/vllm-ascend/tests
94+
cp -r tests/e2e /vllm-workspace/vllm-ascend/tests/
95+
96+
# TODO(yikun): Remove this after conf.py merged
97+
cp docs/source/conf.py /vllm-workspace/vllm-ascend/docs/source/
9698
9799
# Simulate container to enter directory
98100
cd /workspace

0 commit comments

Comments
 (0)