support torch 2.8.0

This commit is contained in:
k2-fsa 2025-08-07 19:27:47 +08:00
parent 8cda08e0c5
commit ce97024c56
6 changed files with 30 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -319,10 +319,18 @@ def generate_build_matrix(
else ["11.8.0", "12.6.2", "12.8.1"] 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 # https://github.com/Jimver/cuda-toolkit/blob/master/src/links/windows-links.ts
} }
if test_only_latest_torch: if test_only_latest_torch:
latest = "2.7.1" latest = "2.8.0"
matrix = {latest: matrix[latest]} matrix = {latest: matrix[latest]}
if for_windows or for_macos: if for_windows or for_macos:

View File

@ -281,6 +281,23 @@ case ${torch} in
;; ;;
esac 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}" echo "Unsupported PyTorch version: ${torch}"
exit 1 exit 1