forked from huggingface/optimum-intel
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_openvino_preview_models.yml
More file actions
66 lines (54 loc) · 1.49 KB
/
test_openvino_preview_models.yml
File metadata and controls
66 lines (54 loc) · 1.49 KB
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
58
59
60
61
62
63
64
65
66
name: Preview Models Support Validation
on:
workflow_dispatch:
push:
branches:
- main
- v*-release
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
env:
UV_TORCH_BACKEND: cpu
UV_SYSTEM_PYTHON: true
TRANSFORMERS_IS_CI: true
HF_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
jobs:
build:
strategy:
fail-fast: false
matrix:
test-pattern:
[
"*export*",
"*seq2seq*",
"*quantization*",
]
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install --upgrade pip uv
uv pip install .[tests] librosa diffusers
- name: Login with fork PRs CI token
if: ${{ env.HF_TOKEN == '' }}
run: |
python tests/scripts/login_with_ci_token.py
- name: Install latest openvino nightly
run: |
uv pip install --pre -U openvino openvino-tokenizers openvino-genai --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
- name: Gemma 4 Validation
run: |
uv pip install transformers==5.5.0
pytest tests/openvino/${{ matrix.test-pattern }} -m gemma4 --durations=0