[CI] Use arm node for unit tests (#4819)
### What this PR does / why we need it? Use arm node for unit tests Signed-off-by: wangli <wangli858794774@gmail.com>
This commit is contained in:
12
.github/workflows/vllm_ascend_test.yaml
vendored
12
.github/workflows/vllm_ascend_test.yaml
vendored
@@ -75,7 +75,7 @@ jobs:
|
|||||||
name: unit test
|
name: unit test
|
||||||
# only trigger unit test after lint passed and the change is e2e and ut related.
|
# only trigger unit test after lint passed and the change is e2e and ut related.
|
||||||
if: ${{ needs.lint.result == 'success' && (needs.changes.outputs.e2e_tracker == 'true' || needs.changes.outputs.ut_tracker == 'true') }}
|
if: ${{ needs.lint.result == 'success' && (needs.changes.outputs.e2e_tracker == 'true' || needs.changes.outputs.ut_tracker == 'true') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04-arm
|
||||||
container:
|
container:
|
||||||
image: quay.io/ascend/cann:8.2.rc1-910b-ubuntu22.04-py3.11
|
image: quay.io/ascend/cann:8.2.rc1-910b-ubuntu22.04-py3.11
|
||||||
env:
|
env:
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
- name: Install vllm-project/vllm from source
|
- name: Install vllm-project/vllm from source
|
||||||
working-directory: ./vllm-empty
|
working-directory: ./vllm-empty
|
||||||
run: |
|
run: |
|
||||||
VLLM_TARGET_DEVICE=empty python3 -m pip install . --extra-index https://download.pytorch.org/whl/cpu/
|
VLLM_TARGET_DEVICE=empty python3 -m pip install .
|
||||||
python3 -m pip uninstall -y triton
|
python3 -m pip uninstall -y triton
|
||||||
|
|
||||||
- name: Checkout vllm-project/vllm-ascend repo
|
- name: Checkout vllm-project/vllm-ascend repo
|
||||||
@@ -109,16 +109,16 @@ jobs:
|
|||||||
- name: Install vllm-project/vllm-ascend
|
- name: Install vllm-project/vllm-ascend
|
||||||
run: |
|
run: |
|
||||||
export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
|
export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/arm64-linux/devlib
|
||||||
python3 -m pip install -r requirements-dev.txt --extra-index https://download.pytorch.org/whl/cpu/
|
python3 -m pip install -r requirements-dev.txt
|
||||||
python3 -m pip install -v . --extra-index https://download.pytorch.org/whl/cpu/
|
python3 -m pip install -v .
|
||||||
|
|
||||||
- name: Run unit test
|
- name: Run unit test
|
||||||
env:
|
env:
|
||||||
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
TORCH_DEVICE_BACKEND_AUTOLOAD: 0
|
TORCH_DEVICE_BACKEND_AUTOLOAD: 0
|
||||||
run: |
|
run: |
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/arm64-linux/devlib
|
||||||
pytest -sv --cov --cov-report=xml:unittests-coverage.xml tests/ut \
|
pytest -sv --cov --cov-report=xml:unittests-coverage.xml tests/ut \
|
||||||
--ignore tests/ut/attention/test_attention_v1.py
|
--ignore tests/ut/attention/test_attention_v1.py
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
|
|||||||
Reference in New Issue
Block a user