Skip to content

Commit 9165e73

Browse files
authored
Support torch 2.8.0 (#120)
1 parent 8cda08e commit 9165e73

6 files changed

Lines changed: 30 additions & 5 deletions

File tree

.github/workflows/macos-cpu-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
# - wheel
7-
- torch-2.7.1
7+
- torch-2.8.0
88
tags:
99
- '*'
1010
workflow_dispatch:

.github/workflows/ubuntu-arm64-cpu-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
# - wheel
7-
- torch-2.7.1
7+
- torch-2.8.0
88
tags:
99
- '*'
1010
workflow_dispatch:

.github/workflows/ubuntu-cpu-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
# - wheel
7-
- torch-2.7.1
7+
- torch-2.8.0
88
tags:
99
- '*'
1010
workflow_dispatch:

.github/workflows/windows-x64-cpu-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
# - wheel
7-
- torch-2.7.1
7+
- torch-2.8.0
88
tags:
99
- '*'
1010
workflow_dispatch:

scripts/github_actions/generate_build_matrix.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,18 @@ def generate_build_matrix(
319319
else ["11.8.0", "12.6.2", "12.8.1"]
320320
),
321321
},
322+
"2.8.0": {
323+
"python-version": ["3.9", "3.10", "3.11", "3.12", "3.13"],
324+
"cuda": (
325+
["12.6", "12.8", "12.9"] # default 12.8
326+
if not for_windows
327+
else ["12.6.2", "12.8.1", "12.9.1"]
328+
),
329+
},
322330
# https://github.com/Jimver/cuda-toolkit/blob/master/src/links/windows-links.ts
323331
}
324332
if test_only_latest_torch:
325-
latest = "2.7.1"
333+
latest = "2.8.0"
326334
matrix = {latest: matrix[latest]}
327335

328336
if for_windows or for_macos:

scripts/github_actions/install_torch.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,23 @@ case ${torch} in
281281
;;
282282
esac
283283
;;
284+
2.8.*)
285+
case ${cuda} in
286+
12.6)
287+
package="torch==${torch}+cu126"
288+
# https://download.pytorch.org/whl/nightly/torch/
289+
url=https://download.pytorch.org/whl/torch/
290+
;;
291+
12.8)
292+
package="torch==${torch}+cu128"
293+
url=https://download.pytorch.org/whl/torch/
294+
;;
295+
12.9)
296+
package="torch==${torch}+cu129"
297+
url=https://download.pytorch.org/whl/torch/
298+
;;
299+
esac
300+
;;
284301
*)
285302
echo "Unsupported PyTorch version: ${torch}"
286303
exit 1

0 commit comments

Comments
 (0)