Skip to content

Commit

Permalink
fix accelerate version for test (#927)
Browse files Browse the repository at this point in the history
* fix accelerate version for test

* fix np for ipex
  • Loading branch information
echarlaix authored Oct 8, 2024
1 parent 542347b commit e0c6aaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test_ipex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
pip install Pillow parameterized
pip install transformers[testing]==${{ matrix.transformers-version }}
pip install .[ipex]
- if: ${{ matrix.ipex-version == '2.2.0' }}
run: pip install numpy==1.*

- name: Test with Pytest
run: |
pytest tests/ipex/
3 changes: 3 additions & 0 deletions .github/workflows/test_openvino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
pip install .[openvino,openvino-tokenizers,tests,diffusers] onnxruntime
pip install transformers==${{ matrix.transformers-version }}
- if: ${{ matrix.transformers-version == '4.36.0' }}
run: pip install accelerate==0.*

- name: Test with Pytest
env:
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
Expand Down

0 comments on commit e0c6aaa

Please sign in to comment.