Support torch 2.8.0 (#120)

This commit is contained in:
Fangjun Kuang 2025-08-07 21:09:15 +08:00 committed by GitHub
parent 8cda08e0c5
commit 9165e73a3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 30 additions and 5 deletions

View File

@ -4,7 +4,7 @@ on:
push:
branches:
# - wheel
- torch-2.7.1
- torch-2.8.0
tags:
- '*'
workflow_dispatch:

View File

@ -4,7 +4,7 @@ on:
push:
branches:
# - wheel
- torch-2.7.1
- torch-2.8.0
tags:
- '*'
workflow_dispatch:

View File

@ -4,7 +4,7 @@ on:
push:
branches:
# - wheel
- torch-2.7.1
- torch-2.8.0
tags:
- '*'
workflow_dispatch:

View File

@ -4,7 +4,7 @@ on:
push:
branches:
# - wheel
- torch-2.7.1
- torch-2.8.0
tags:
- '*'
workflow_dispatch:

View File

@ -319,10 +319,18 @@ def generate_build_matrix(
else ["11.8.0", "12.6.2", "12.8.1"]
),
},
"2.8.0": {
"python-version": ["3.9", "3.10", "3.11", "3.12", "3.13"],
"cuda": (
["12.6", "12.8", "12.9"] # default 12.8
if not for_windows
else ["12.6.2", "12.8.1", "12.9.1"]
),
},
# https://github.com/Jimver/cuda-toolkit/blob/master/src/links/windows-links.ts
}
if test_only_latest_torch:
latest = "2.7.1"
latest = "2.8.0"
matrix = {latest: matrix[latest]}
if for_windows or for_macos:

View File

@ -281,6 +281,23 @@ case ${torch} in
;;
esac
;;
2.8.*)
case ${cuda} in
12.6)
package="torch==${torch}+cu126"
# https://download.pytorch.org/whl/nightly/torch/
url=https://download.pytorch.org/whl/torch/
;;
12.8)
package="torch==${torch}+cu128"
url=https://download.pytorch.org/whl/torch/
;;
12.9)
package="torch==${torch}+cu129"
url=https://download.pytorch.org/whl/torch/
;;
esac
;;
*)
echo "Unsupported PyTorch version: ${torch}"
exit 1