Skip to content

Commit bd063ea

Browse files
ci: add CUDA 13.2 build and nightly test support
- Add CUDA 13.2.0 to the build matrix (Linux + Windows) - Bump Jimver/cuda-toolkit from v0.2.29 to v0.2.35 for CUDA 13.2 Windows support - Add CUDA 13.2.0 nightly test with torch 2.12+cu132 (nightly only, not PR tests) - Add torch_nightly input to test-runner for pre-release torch installs Ref: pytorch/pytorch#178665 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 79b9901 commit bd063ea

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ jobs:
7474
- os: windows-2025
7575
arch: x86_64
7676
cuda_version:
77-
["11.8.0", "12.0.1", "12.1.1", "12.2.2", "12.3.2", "12.4.1", "12.5.1", "12.6.3", "12.8.1", "12.9.1", "13.0.2"]
77+
["11.8.0", "12.0.1", "12.1.1", "12.2.2", "12.3.2", "12.4.1", "12.5.1", "12.6.3", "12.8.1", "12.9.1", "13.0.2", "13.2.0"]
7878
runs-on: ${{ matrix.os }}
7979
steps:
8080
- uses: actions/checkout@v4
8181
# Windows: We install Cuda on the agent (slow)
82-
- uses: Jimver/cuda-toolkit@6008063726ffe3309d1b22e413d9e88fed91a2f2 # v0.2.29
82+
- uses: Jimver/cuda-toolkit@3d45d157f327c09c04b50ee6ccdea2d9d017ec76 # v0.2.35
8383
if: startsWith(matrix.os, 'windows')
8484
id: cuda-toolkit
8585
with:

.github/workflows/test-runner.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
type: string
3333
default: ""
3434
description: "CPU architecture for testing: icelake, cascadelake (default: platform default runner)"
35+
torch_nightly:
36+
type: boolean
37+
default: false
38+
description: "Install nightly torch (--pre, no version pin) instead of a stable release"
3539

3640
env:
3741
BNB_SKIP_CMAKE: 1
@@ -144,7 +148,7 @@ jobs:
144148
# Windows + CUDA: Install CUDA Toolkit
145149
- name: Install CUDA Toolkit
146150
if: inputs.backend == 'cuda' && inputs.platform == 'windows'
147-
uses: Jimver/cuda-toolkit@6008063726ffe3309d1b22e413d9e88fed91a2f2 # v0.2.29
151+
uses: Jimver/cuda-toolkit@3d45d157f327c09c04b50ee6ccdea2d9d017ec76 # v0.2.35
148152
with:
149153
cuda: ${{ inputs.cuda_version }}
150154
method: "network"
@@ -208,9 +212,14 @@ jobs:
208212

209213
- name: Install dependencies
210214
run: |
211-
pip install torch==${{ inputs.torch_version }} --index-url ${{ inputs.pypi_index }}
215+
if [[ "${{ inputs.torch_nightly }}" == "true" ]]; then
216+
pip install --pre torch --index-url ${{ inputs.pypi_index }}
217+
else
218+
pip install torch==${{ inputs.torch_version }} --index-url ${{ inputs.pypi_index }}
219+
fi
212220
pip install -e ".[test]" -v
213221
pip install pytest-cov
222+
shell: bash
214223

215224
# Windows: Downgrade NumPy for torch<2.4.1 compatibility
216225
# See: https://github.com/pytorch/pytorch/issues/131668

.github/workflows/tests-nightly.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
# Linux x64 cross-product
5858
platform: [linux-x64]
5959
gpu_type: [T4, A10, L40S]
60-
cuda_version: ["11.8.0", "12.6.3", "12.8.1", "13.0.2"]
60+
cuda_version: ["11.8.0", "12.6.3", "12.8.1", "13.0.2", "13.2.0"]
6161

6262
include:
6363
# Map CUDA version to torch version and PyPI index
@@ -73,6 +73,10 @@ jobs:
7373
- cuda_version: "13.0.2"
7474
torch_version: "2.11.0"
7575
pypi_index: "https://download.pytorch.org/whl/cu130"
76+
- cuda_version: "13.2.0"
77+
torch_version: "2.12.0"
78+
torch_nightly: true
79+
pypi_index: "https://download.pytorch.org/whl/nightly/cu132"
7680

7781
# Windows CUDA Tests - T4 GPU (CUDA 11.8 only, multiple torch versions)
7882
- platform: windows
@@ -98,4 +102,5 @@ jobs:
98102
cuda_version: ${{ matrix.cuda_version }}
99103
gpu_type: ${{ matrix.gpu_type }}
100104
torch_version: ${{ matrix.torch_version }}
105+
torch_nightly: ${{ matrix.torch_nightly || false }}
101106
pypi_index: ${{ matrix.pypi_index }}

0 commit comments

Comments
 (0)