From 9bead03fe470b2d25ec9b4f2eda2742df31dae47 Mon Sep 17 00:00:00 2001 From: changwa1 Date: Mon, 25 Nov 2024 15:33:08 +0800 Subject: [PATCH 1/3] improve inc and ipex test ci torch version Signed-off-by: changwa1 --- .github/workflows/test_inc.yml | 6 +----- .github/workflows/test_ipex.yml | 8 ++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test_inc.yml b/.github/workflows/test_inc.yml index c1a75a6e3..b31f2055f 100644 --- a/.github/workflows/test_inc.yml +++ b/.github/workflows/test_inc.yml @@ -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 @@ -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('.*', ''))" diff --git a/.github/workflows/test_ipex.yml b/.github/workflows/test_ipex.yml index a14fc7337..17534948b 100644 --- a/.github/workflows/test_ipex.yml +++ b/.github/workflows/test_ipex.yml @@ -18,8 +18,8 @@ jobs: strategy: fail-fast: false matrix: - torch-version: ["2.2.0", "2.3.*", "2.4.*"] - transformers-version: ["4.39.0", "4.44.*"] + torch-version: ["2.4.0", "2.5.0"] + transformers-version: ["4.45.*"] runs-on: ubuntu-22.04 @@ -38,10 +38,6 @@ jobs: pip install torch==${{ matrix.torch-version }} torchaudio torchvision --extra-index-url https://download.pytorch.org/whl/cpu pip install .[ipex,tests] transformers[testing]==${{ matrix.transformers-version }} 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('.*', ''))" From e56a7912350cf55fe032d23b94a87cea7f24e71c Mon Sep 17 00:00:00 2001 From: changwa1 Date: Mon, 25 Nov 2024 15:55:21 +0800 Subject: [PATCH 2/3] only improve test_inc.yml Signed-off-by: changwa1 --- .github/workflows/test_ipex.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_ipex.yml b/.github/workflows/test_ipex.yml index 17534948b..fb6332694 100644 --- a/.github/workflows/test_ipex.yml +++ b/.github/workflows/test_ipex.yml @@ -18,8 +18,8 @@ jobs: strategy: fail-fast: false matrix: - torch-version: ["2.4.0", "2.5.0"] - transformers-version: ["4.45.*"] + torch-version: ["2.2.0", "2.3.*", "2.4.*"] + transformers-version: ["4.39.0", "4.44.*"] runs-on: ubuntu-22.04 From 6ed9a921b5868fac0dd5253ab4e04e53756b05aa Mon Sep 17 00:00:00 2001 From: changwa1 Date: Mon, 25 Nov 2024 16:00:16 +0800 Subject: [PATCH 3/3] recover test_ipex.yml Signed-off-by: changwa1 --- .github/workflows/test_ipex.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_ipex.yml b/.github/workflows/test_ipex.yml index fb6332694..59a316152 100644 --- a/.github/workflows/test_ipex.yml +++ b/.github/workflows/test_ipex.yml @@ -38,6 +38,10 @@ jobs: pip install torch==${{ matrix.torch-version }} torchaudio torchvision --extra-index-url https://download.pytorch.org/whl/cpu pip install .[ipex,tests] transformers[testing]==${{ matrix.transformers-version }} 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('.*', ''))" @@ -46,4 +50,4 @@ jobs: - name: Test with Pytest run: | - pytest tests/ipex + pytest tests/ipex \ No newline at end of file