@@ -102,7 +102,7 @@ jobs:
102102 matrix :
103103 os : [ubuntu-22.04, ubuntu-22.04-arm, windows-2025, macos-15]
104104 # Test with the oldest supported torch version, the newest two stable/RC.
105- torch_version : ["2.2.2 ", "2.7.1", "2.8.0"]
105+ torch_version : ["2.3.1 ", "2.7.1", "2.8.0"]
106106 include :
107107 - os : ubuntu-22.04
108108 arch : x86_64
@@ -118,7 +118,7 @@ jobs:
118118 arch : arm64
119119 exclude :
120120 - os : ubuntu-22.04-arm
121- torch_version : " 2.2.2 "
121+ torch_version : " 2.3.1 "
122122
123123 runs-on : ${{ matrix.runner || matrix.os }}
124124 env :
@@ -144,13 +144,14 @@ jobs:
144144
145145 - name : Install dependencies
146146 run : |
147- pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/${{ (matrix.torch_version == '2.8.0' && 'test/ cpu') || 'cpu' }}
147+ pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/cpu
148148 pip install -e ".[test]"
149149 pip install pytest-cov
150150
151- # We need to downgrade to numpy<2 for torch<2.3 compatibility.
151+ # We need to downgrade to numpy<2 for torch<2.4.1 compatibility on Windows
152+ # See: https://github.com/pytorch/pytorch/issues/131668
152153 - name : Downgrade NumPy
153- if : startsWith(matrix.torch_version, '2.2 .')
154+ if : startsWith(matrix.os, 'windows') && startsWith(matrix. torch_version, '2.3 .')
154155 run : pip install "numpy<2"
155156
156157 - name : Show installed packages
@@ -162,7 +163,7 @@ jobs:
162163 - name : Run tests
163164 run : pytest --durations=100
164165
165- test-cpu-ipex :
166+ test-cpu-intel :
166167 if : github.repository == 'bitsandbytes-foundation/bitsandbytes'
167168 needs : build-cpu
168169 runs-on : banb-aws-general-8-plus-use1-public-80
@@ -186,7 +187,6 @@ jobs:
186187 - name : Install dependencies
187188 run : |
188189 pip install torch==2.7.1 --index-url https://download.pytorch.org/whl/cpu
189- pip install intel_extension_for_pytorch==2.7.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
190190 pip install -e ".[test]"
191191 pip install pytest-cov
192192
@@ -196,9 +196,6 @@ jobs:
196196 - name : Show environment information
197197 run : python -m torch.utils.collect_env
198198
199- - name : IPEX smoke test
200- run : python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__);"
201-
202199 - name : Run tests
203200 run : pytest --durations=100
204201
@@ -286,15 +283,6 @@ jobs:
286283 fail-fast : false
287284 matrix :
288285 torch_version : ["2.7.1"] # ["2.6.0", "2.7.1"]
289- ipex : [false]
290- # ipex: [true, false]
291- # include:
292- # - torch_version: "2.6.0"
293- # ipex: true
294- # ipex_version: "2.6.10+xpu"
295- # - torch_version: "2.7.1"
296- # ipex: true
297- # ipex_version: "2.7.10+xpu"
298286 runs-on :
299287 group : bandb-itac-bmsprpvc1550-8-1gpu
300288 env :
@@ -330,10 +318,6 @@ jobs:
330318 - name : Install PyTorch
331319 run : pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/xpu
332320
333- - name : Install IPEX
334- if : matrix.ipex == true
335- run : pip install intel_extension_for_pytorch==${{ matrix.ipex_version }} --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
336-
337321 - name : Install dependencies
338322 run : |
339323 pip install -e ".[test]"
@@ -362,7 +346,7 @@ jobs:
362346 cuda_version : ["11.8.0", "12.6.3", "12.8.1", "12.9.1"]
363347 include :
364348 - cuda_version : " 11.8.0"
365- torch_version : " 2.2.2 "
349+ torch_version : " 2.3.1 "
366350 pypi_index : " https://download.pytorch.org/whl/cu118"
367351 - cuda_version : " 12.6.3"
368352 torch_version : " 2.6.0"
@@ -372,7 +356,7 @@ jobs:
372356 pypi_index : " https://download.pytorch.org/whl/cu128"
373357 - cuda_version : " 12.9.1"
374358 torch_version : " 2.8.0"
375- pypi_index : " https://download.pytorch.org/whl/test/ cu129"
359+ pypi_index : " https://download.pytorch.org/whl/cu129"
376360
377361
378362 # Linux L40S runners
@@ -391,7 +375,7 @@ jobs:
391375 gpu : T4
392376 runner : CUDA-Windows-x64
393377 cuda_version : " 11.8.0"
394- torch_version : " 2.2.0 "
378+ torch_version : " 2.3.1 "
395379 pypi_index : " https://download.pytorch.org/whl/cu118"
396380 - os : windows-2025
397381 arch : x86_64
@@ -447,12 +431,6 @@ jobs:
447431 pip install --pre torch~=${{ matrix.torch_version }}.dev0 --index-url ${{ matrix.pypi_index }}
448432 pip install -e ".[test]"
449433 pip install pytest-cov
450-
451- # We need to downgrade to numpy<2 for torch<2.3 compatibility.
452- - name : Downgrade NumPy
453- if : startsWith(matrix.torch_version, '2.2.')
454- run : pip install "numpy<2"
455-
456434 - name : Show installed packages
457435 run : pip list
458436
0 commit comments