Skip to content

Commit

Permalink
bump tests transformers version
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Oct 24, 2024
1 parent 9e6adb7 commit fe429fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test_openvino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
transformers-version: ["4.36.0", "4.45.*"]
transformers-version: ["4.36.0", "latest"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -32,12 +32,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install lowest compatible transformers version
if: ${{ matrix.transformers-version != 'latest' }}
run: pip install transformers==${{ matrix.transformers-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
# install PyTorch CPU version to avoid installing CUDA packages on GitHub runner without GPU
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install transformers==${{ matrix.transformers-version }}
pip install .[openvino,openvino-tokenizers,tests,diffusers] onnxruntime
- if: ${{ matrix.transformers-version == '4.36.0' }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test_openvino_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install lowest compatible transformers version
if: ${{ matrix.transformers-version != 'latest' }}
run: pip install transformers==${{ matrix.transformers-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -63,9 +67,6 @@ jobs:
pip install ${{ matrix.openvino }}
pip install .[tests]
- if: ${{ matrix.transformers-version != 'latest' }}
run: pip install transformers==${{ matrix.transformers-version }}

- name: Pip freeze
run: pip freeze

Expand Down

0 comments on commit fe429fc

Please sign in to comment.