@@ -21,36 +21,37 @@ jobs:
21
21
fail-fast : false
22
22
matrix :
23
23
python-version : ["3.8", "3.12"]
24
- transformers-version : ["4.36.0", "4.42 .*"]
24
+ transformers-version : ["4.36.0", "4.43 .*"]
25
25
os : [ubuntu-latest]
26
26
27
27
runs-on : ${{ matrix.os }}
28
28
steps :
29
- - uses : actions/checkout@v4
30
- - name : Setup Python ${{ matrix.python-version }}
31
- uses : actions/setup-python@v5
32
- with :
33
- python-version : ${{ matrix.python-version }}
34
- - name : Install dependencies
35
- run : |
36
- python -m pip install --upgrade pip
37
- # install PyTorch CPU version to avoid installing CUDA packages on GitHub runner without GPU
38
- pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
39
- pip install transformers==${{ matrix.transformers-version }}
40
- pip install .[openvino,openvino-tokenizers,tests,diffusers] onnxruntime
41
- - name : Test with Pytest
42
- env :
43
- HF_HUB_READ_TOKEN : ${{ secrets.HF_HUB_READ_TOKEN }}
44
- run : |
45
- pytest tests/openvino/ --ignore tests/openvino/test_modeling_basic.py --durations=0
46
- - name : Test basic
47
- run : |
48
- pip uninstall -y nncf
49
- pytest tests/openvino/test_modeling_basic.py
50
- - name : Test openvino-nightly
51
- run : |
52
- pip uninstall -y openvino
53
- pip install openvino-nightly
54
- python -c "from optimum.intel import OVModelForCausalLM; OVModelForCausalLM.from_pretrained('hf-internal-testing/tiny-random-gpt2', export=True, compile=False)"
55
- optimum-cli export openvino -m hf-internal-testing/tiny-random-gpt2 gpt2-ov
29
+ - uses : actions/checkout@v4
30
+ - name : Setup Python ${{ matrix.python-version }}
31
+ uses : actions/setup-python@v5
32
+ with :
33
+ python-version : ${{ matrix.python-version }}
56
34
35
+ - name : Install dependencies
36
+ run : |
37
+ python -m pip install --upgrade pip
38
+ # install PyTorch CPU version to avoid installing CUDA packages on GitHub runner without GPU
39
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
40
+ pip install .[openvino,openvino-tokenizers,tests,diffusers] onnxruntime
41
+ pip install transformers==${{ matrix.transformers-version }}
42
+
43
+ - name : Test with Pytest
44
+ env :
45
+ HF_HUB_READ_TOKEN : ${{ secrets.HF_HUB_READ_TOKEN }}
46
+ run : |
47
+ pytest tests/openvino/ --ignore tests/openvino/test_modeling_basic.py --durations=0
48
+ - name : Test basic
49
+ run : |
50
+ pip uninstall -y nncf
51
+ pytest tests/openvino/test_modeling_basic.py
52
+ - name : Test openvino-nightly
53
+ run : |
54
+ pip uninstall -y openvino
55
+ pip install openvino-nightly
56
+ python -c "from optimum.intel import OVModelForCausalLM; OVModelForCausalLM.from_pretrained('hf-internal-testing/tiny-random-gpt2', export=True, compile=False)"
57
+ optimum-cli export openvino -m hf-internal-testing/tiny-random-gpt2 gpt2-ov
0 commit comments