@@ -49,22 +49,23 @@ jobs:
4949 build-cuda :
5050 strategy :
5151 matrix :
52- cuda_version : ["11.8.0", "12.6.3", "12.8.1"]
53- os : [ubuntu-22.04, ubuntu-22.04-arm, windows-2025 ]
52+ cuda_version : ["11.8.0", "12.6.3", "12.8.1", "12.9.1" ]
53+ os : [ubuntu-22.04, ubuntu-22.04-arm]
5454 include :
5555 - os : ubuntu-22.04
5656 arch : x86_64
5757 - os : ubuntu-22.04-arm
5858 arch : aarch64
5959 - os : windows-2025
6060 arch : x86_64
61+ cuda_version : " 11.8.0"
6162 runs-on : ${{ matrix.os }}
6263
6364 steps :
6465 - uses : actions/checkout@v4
6566
6667 - name : Install CUDA Toolkit
67- uses : Jimver/cuda-toolkit@v0.2.23
68+ uses : Jimver/cuda-toolkit@c35baa1a18fd1fc9dcf47c5bd839bf30559c0bc3 # v0.2.24
6869 if : startsWith(matrix.os, 'windows')
6970 id : cuda-toolkit
7071 with :
@@ -100,8 +101,8 @@ jobs:
100101 fail-fast : false
101102 matrix :
102103 os : [ubuntu-22.04, ubuntu-22.04-arm, windows-2025, macos-15]
103- # Test with the oldest supported torch version and the two newest .
104- torch_version : ["2.2.2 ", "2.6.0 ", "2.7.1 "]
104+ # Test with the oldest supported torch version, the newest two stable/RC .
105+ torch_version : ["2.3.1 ", "2.7.1 ", "2.8.0 "]
105106 include :
106107 - os : ubuntu-22.04
107108 arch : x86_64
@@ -117,7 +118,7 @@ jobs:
117118 arch : arm64
118119 exclude :
119120 - os : ubuntu-22.04-arm
120- torch_version : " 2.2.2 "
121+ torch_version : " 2.3.1 "
121122
122123 runs-on : ${{ matrix.runner || matrix.os }}
123124 env :
@@ -147,9 +148,10 @@ jobs:
147148 pip install -e ".[test]"
148149 pip install pytest-cov
149150
150- # 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
151153 - name : Downgrade NumPy
152- if : startsWith(matrix.torch_version, '2.2 .')
154+ if : startsWith(matrix.os, 'windows') && startsWith(matrix. torch_version, '2.3 .')
153155 run : pip install "numpy<2"
154156
155157 - name : Show installed packages
@@ -161,7 +163,7 @@ jobs:
161163 - name : Run tests
162164 run : pytest --durations=100
163165
164- test-cpu-ipex :
166+ test-cpu-intel :
165167 if : github.repository == 'bitsandbytes-foundation/bitsandbytes'
166168 needs : build-cpu
167169 runs-on : banb-aws-general-8-plus-use1-public-80
@@ -185,7 +187,6 @@ jobs:
185187 - name : Install dependencies
186188 run : |
187189 pip install torch==2.7.1 --index-url https://download.pytorch.org/whl/cpu
188- pip install intel_extension_for_pytorch==2.7.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
189190 pip install -e ".[test]"
190191 pip install pytest-cov
191192
@@ -195,9 +196,6 @@ jobs:
195196 - name : Show environment information
196197 run : python -m torch.utils.collect_env
197198
198- - name : IPEX smoke test
199- run : python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__);"
200-
201199 - name : Run tests
202200 run : pytest --durations=100
203201
@@ -223,7 +221,7 @@ jobs:
223221 # run: pip list
224222
225223 test-hpu :
226- if : github.repository == 'bitsandbytes-foundation/bitsandbytes'
224+ if : false # github.repository == 'bitsandbytes-foundation/bitsandbytes'
227225 needs : build-cpu
228226 strategy :
229227 fail-fast : false
@@ -279,21 +277,12 @@ jobs:
279277 run : pytest --durations=100
280278
281279 test-xpu :
282- if : github.repository == 'bitsandbytes-foundation/bitsandbytes'
280+ if : false # github.repository == 'bitsandbytes-foundation/bitsandbytes'
283281 needs : build-cpu
284282 strategy :
285283 fail-fast : false
286284 matrix :
287285 torch_version : ["2.7.1"] # ["2.6.0", "2.7.1"]
288- ipex : [false]
289- # ipex: [true, false]
290- # include:
291- # - torch_version: "2.6.0"
292- # ipex: true
293- # ipex_version: "2.6.10+xpu"
294- # - torch_version: "2.7.1"
295- # ipex: true
296- # ipex_version: "2.7.10+xpu"
297286 runs-on :
298287 group : bandb-itac-bmsprpvc1550-8-1gpu
299288 env :
@@ -329,10 +318,6 @@ jobs:
329318 - name : Install PyTorch
330319 run : pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/xpu
331320
332- - name : Install IPEX
333- if : matrix.ipex == true
334- run : pip install intel_extension_for_pytorch==${{ matrix.ipex_version }} --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
335-
336321 - name : Install dependencies
337322 run : |
338323 pip install -e ".[test]"
@@ -358,17 +343,20 @@ jobs:
358343 os : [ubuntu-22.04, windows-2025]
359344 arch : [x86_64]
360345 gpu : [T4, L40S]
361- cuda_version : ["11.8.0", "12.6.3", "12.8.1"]
346+ cuda_version : ["11.8.0", "12.6.3", "12.8.1", "12.9.1" ]
362347 include :
363348 - cuda_version : " 11.8.0"
364- torch_version : " 2.2.2 "
349+ torch_version : " 2.3.1 "
365350 pypi_index : " https://download.pytorch.org/whl/cu118"
366351 - cuda_version : " 12.6.3"
367352 torch_version : " 2.6.0"
368353 pypi_index : " https://download.pytorch.org/whl/cu126"
369354 - cuda_version : " 12.8.1"
370355 torch_version : " 2.7.1"
371356 pypi_index : " https://download.pytorch.org/whl/cu128"
357+ - cuda_version : " 12.9.1"
358+ torch_version : " 2.8.0"
359+ pypi_index : " https://download.pytorch.org/whl/cu129"
372360
373361
374362 # Linux L40S runners
@@ -387,7 +375,7 @@ jobs:
387375 gpu : T4
388376 runner : CUDA-Windows-x64
389377 cuda_version : " 11.8.0"
390- torch_version : " 2.2.0 "
378+ torch_version : " 2.3.1 "
391379 pypi_index : " https://download.pytorch.org/whl/cu118"
392380 - os : windows-2025
393381 arch : x86_64
@@ -401,12 +389,14 @@ jobs:
401389 gpu : T4
402390 runner : CUDA-Windows-x64
403391 cuda_version : " 11.8.0"
404- torch_version : " 2.7.1"
392+ torch_version : " 2.7.1" # Note: this is the last PyTorch release supporting CUDA 11.8.
405393 pypi_index : " https://download.pytorch.org/whl/cu118"
406394
407395 exclude :
408396 # Our current T4 Windows runner has a driver too old (471.11)
409397 # and cannot support CUDA 12+. Skip for now.
398+ - os : windows-2025
399+ cuda_version : " 12.9.1"
410400 - os : windows-2025
411401 cuda_version : " 12.8.1"
412402 - os : windows-2025
@@ -438,15 +428,9 @@ jobs:
438428
439429 - name : Install dependencies
440430 run : |
441- pip install torch== ${{ matrix.torch_version }} --index-url ${{ matrix.pypi_index }}
431+ pip install --pre torch~= ${{ matrix.torch_version }}.dev0 --index-url ${{ matrix.pypi_index }}
442432 pip install -e ".[test]"
443433 pip install pytest-cov
444-
445- # We need to downgrade to numpy<2 for torch<2.3 compatibility.
446- - name : Downgrade NumPy
447- if : startsWith(matrix.torch_version, '2.2.')
448- run : pip install "numpy<2"
449-
450434 - name : Show installed packages
451435 run : pip list
452436
0 commit comments