-
Notifications
You must be signed in to change notification settings - Fork 96
57 lines (47 loc) · 1.28 KB
/
pr_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test Suite on PRs
on:
pull_request:
branches:
- main
push:
branches:
- ci-*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
OPTIMUM_NVIDIA_IS_CI: ON
RUN_CPU_ONLY: ON
jobs:
run_fast_tests:
strategy:
fail-fast: false
matrix:
config:
- name: Fast Optimum-Nvidia Test Suite
runner: [ci, nvidia-gpu]
image: huggingface/optimum-nvidia:devel
report: dev
# cuda_arch: [sm_86, sm_89]
cuda_arch: [sm_89]
name: ${{ matrix.config.name }}
runs-on: [ci, nvidia-gpu, multi-gpu, "${{ matrix.cuda_arch }}"]
container:
image: ${{ matrix.config.image }}
options: --shm-size "16gb" --gpus all --ipc host -v /mnt/hf_cache:/mnt/cache/
env:
HF_TOKEN: ${{ secrets.OPTIMUM_NVIDIA_HUB_READ_TOKEN }}
defaults:
run:
shell: bash
steps:
- name: Checkout optimum-nvidia
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install dependencies
run: |
python -m pip install --upgrade -e .[quality,tests]
- name: Run fast optimum-nvidia CPU tests
run: |
python -m pytest -n 4 -s -v -p no:warnings tests