Skip to content

Commit

Permalink
Improve INC CI test torch version (#1027)
Browse files Browse the repository at this point in the history
* improve inc and ipex test ci torch version

Signed-off-by: changwa1 <[email protected]>

* only improve test_inc.yml

Signed-off-by: changwa1 <[email protected]>

* recover test_ipex.yml

Signed-off-by: changwa1 <[email protected]>

---------

Signed-off-by: changwa1 <[email protected]>
  • Loading branch information
changwangss authored Nov 25, 2024
1 parent a9c4772 commit 8fcc0ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test_inc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
torch-version: ["2.2.0", "2.3.*", "2.4.*"]
torch-version: ["2.4.*", "2.5.0"]

runs-on: ubuntu-22.04

Expand All @@ -37,10 +37,6 @@ jobs:
pip install torch==${{ matrix.torch-version }} torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
pip install .[neural-compressor,ipex,diffusers,peft,tests] transformers[testing] intel-extension-for-pytorch==${{ matrix.torch-version }}
- if: ${{ matrix.torch-version == '2.2.0' }}
name: Downgrade Numpy
run: pip install numpy==1.*

- name: Assert versions
run: |
python -c "import torch; print(torch.__version__); assert torch.__version__.startswith('${{ matrix.torch-version }}'.replace('.*', ''))"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ipex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
- name: Test with Pytest
run: |
pytest tests/ipex
pytest tests/ipex

0 comments on commit 8fcc0ec

Please sign in to comment.