@@ -77,14 +77,14 @@ jobs:
7777 if : startsWith(matrix.os, 'windows')
7878 uses :
ilammy/[email protected] # to use cl 7979
80- # We're running on T4 only for now, so we only target sm75 .
80+ # Target just the architectures used for our runners .
8181 - name : Build C++ / CUDA
8282 run : bash .github/scripts/build-cuda.sh
8383 env :
8484 build_os : ${{ matrix.os }}
8585 build_arch : ${{ matrix.arch }}
8686 cuda_version : ${{ matrix.cuda_version }}
87- cuda_targets : " 75"
87+ cuda_targets : " 75;89 "
8888
8989 - name : Upload build artifact
9090 uses : actions/upload-artifact@v4
@@ -104,13 +104,14 @@ jobs:
104104 include :
105105 - os : ubuntu-22.04
106106 arch : x86_64
107+ runner : banb-aws-general-8-plus-use1-public-80
107108 - os : ubuntu-22.04-arm
108109 arch : aarch64
109110 - os : windows-2025
110111 arch : x86_64
111112 - os : macos-15
112113 arch : arm64
113- runs-on : ${{ matrix.os }}
114+ runs-on : ${{ matrix.runner || matrix. os }}
114115 env :
115116 BNB_TEST_DEVICE : cpu
116117 steps :
@@ -148,6 +149,7 @@ jobs:
148149 matrix :
149150 os : [ubuntu-22.04, windows-2025]
150151 arch : [x86_64]
152+ gpu : [T4, L4]
151153 cuda_version : ["11.8.0", "12.8.1"]
152154 include :
153155 - cuda_version : " 11.8.0"
@@ -156,13 +158,29 @@ jobs:
156158 - cuda_version : " 12.8.1"
157159 torch_version : " 2.7.0"
158160 pypi_index : " https://download.pytorch.org/whl/cu128"
161+
162+ # L4 runners
163+ - os : ubuntu-22.04
164+ gpu : L4
165+ runner : bandb-aws-g6-4xlarge-plus-use1-public-80
166+
167+ # T4 runners
168+ - os : ubuntu-22.04
169+ gpu : T4
170+ runner : CUDA-Linux-x64
171+ - os : windows-2025
172+ gpu : T4
173+ runner : CUDA-Windows-x64
159174 exclude :
160175 # Our current T4 Windows runner has a driver too old (471.11)
161176 # and cannot support CUDA 12+. Skip for now.
162177 - os : windows-2025
163178 cuda_version : " 12.8.1"
164- runs-on :
165- labels : ${{ contains(matrix.os, 'windows') && 'CUDA-Windows-x64' || 'CUDA-Linux-x64' }}
179+
180+ # No Windows L4 runners.
181+ - os : windows-2025
182+ gpu : L4
183+ runs-on : ${{ matrix.runner }}
166184 env :
167185 BNB_TEST_DEVICE : cuda
168186 steps :
0 commit comments