Unverified Commit c0177256 authored by Muyang Li's avatar Muyang Li Committed by GitHub
Browse files

chore: support torch2.9, bump the version to 1.0.2 (#781)

parent b502a6b3
Pipeline #3053 failed with stages
in 0 seconds
...@@ -77,10 +77,7 @@ jobs: ...@@ -77,10 +77,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python: ["3.10", "3.11", "3.12", "3.13"] python: ["3.10", "3.11", "3.12", "3.13"]
torch: ["2.5", "2.6", "2.7", "2.8", "2.9"] torch: ["2.7", "2.8", "2.9", "pre"]
exclude:
- python: "3.13"
torch: "2.5"
steps: steps:
- name: Checkout to the tag - name: Checkout to the tag
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -92,12 +89,12 @@ jobs: ...@@ -92,12 +89,12 @@ jobs:
run: git log -1 --oneline run: git log -1 --oneline
- name: Build wheels - name: Build wheels
run: | run: |
if [[ "${{ matrix.torch }}" == "2.7" || "${{ matrix.torch }}" == "2.8" ]]; then if [[ "${{ matrix.torch }}" == "2.7" || "${{ matrix.torch }}" == "2.8" || "${{ matrix.torch }}" == "2.9" ]]; then
cuda_version="12.8" cuda_version="12.8"
else else
cuda_version="12.4" cuda_version="12.4"
fi fi
if [[ "${{ matrix.torch }}" == "2.9" ]]; then if [[ "${{ matrix.torch }}" == "pre" ]]; then
bash scripts/build_linux_wheel_torch_nightly.sh ${{ matrix.python }} ${{ matrix.torch }} 12.8 bash scripts/build_linux_wheel_torch_nightly.sh ${{ matrix.python }} ${{ matrix.torch }} 12.8
else else
bash scripts/build_linux_wheel.sh ${{ matrix.python }} ${{ matrix.torch }} $cuda_version bash scripts/build_linux_wheel.sh ${{ matrix.python }} ${{ matrix.torch }} $cuda_version
...@@ -122,10 +119,7 @@ jobs: ...@@ -122,10 +119,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python: ["3.10", "3.11", "3.12", "3.13"] python: ["3.10", "3.11", "3.12", "3.13"]
torch: ["2.5", "2.6", "2.7", "2.8", "2.9"] torch: ["2.7", "2.8", "2.9", "pre"]
exclude:
- python: "3.13"
torch: "2.5"
steps: steps:
- name: Checkout to the tag - name: Checkout to the tag
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -144,11 +138,13 @@ jobs: ...@@ -144,11 +138,13 @@ jobs:
SET CUDA_VERSION=12.8 SET CUDA_VERSION=12.8
) ELSE IF "%TORCH_VERSION%"=="2.8" ( ) ELSE IF "%TORCH_VERSION%"=="2.8" (
SET CUDA_VERSION=12.8 SET CUDA_VERSION=12.8
) ELSE IF "%TORCH_VERSION%"=="2.9" (
SET CUDA_VERSION=12.8
) ELSE ( ) ELSE (
SET CUDA_VERSION=12.4 SET CUDA_VERSION=12.4
) )
call C:\Users\muyangl\miniconda3\condabin\activate.bat activate call C:\Users\muyangl\miniconda3\condabin\activate.bat activate
IF "%TORCH_VERSION%"=="2.9" ( IF "%TORCH_VERSION%"=="pre" (
call scripts\build_windows_wheel_torch_nightly.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION% call scripts\build_windows_wheel_torch_nightly.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION%
) ELSE ( ) ELSE (
call scripts\build_windows_wheel.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION% call scripts\build_windows_wheel.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION%
......
...@@ -51,10 +51,7 @@ jobs: ...@@ -51,10 +51,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python: ["3.10", "3.11", "3.12", "3.13"] python: ["3.10", "3.11", "3.12", "3.13"]
torch: ["2.5", "2.6", "2.7", "2.8", "2.9"] torch: ["2.7", "2.8", "2.9", "pre"]
exclude:
- python: "3.13"
torch: "2.5"
steps: steps:
- name: Checkout to the tag - name: Checkout to the tag
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -66,12 +63,12 @@ jobs: ...@@ -66,12 +63,12 @@ jobs:
run: git log -1 --oneline run: git log -1 --oneline
- name: Build wheels - name: Build wheels
run: | run: |
if [[ "${{ matrix.torch }}" == "2.7" || "${{ matrix.torch }}" == "2.8" ]]; then if [[ "${{ matrix.torch }}" == "2.7" || "${{ matrix.torch }}" == "2.8" || "${{ matrix.torch }}" == "2.9" ]]; then
cuda_version="12.8" cuda_version="12.8"
else else
cuda_version="12.4" cuda_version="12.4"
fi fi
if [[ "${{ matrix.torch }}" == "2.9" ]]; then if [[ "${{ matrix.torch }}" == "pre" ]]; then
bash scripts/build_linux_wheel_torch_nightly.sh ${{ matrix.python }} ${{ matrix.torch }} 12.8 bash scripts/build_linux_wheel_torch_nightly.sh ${{ matrix.python }} ${{ matrix.torch }} 12.8
else else
bash scripts/build_linux_wheel.sh ${{ matrix.python }} ${{ matrix.torch }} $cuda_version bash scripts/build_linux_wheel.sh ${{ matrix.python }} ${{ matrix.torch }} $cuda_version
...@@ -107,10 +104,7 @@ jobs: ...@@ -107,10 +104,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python: ["3.10", "3.11", "3.12", "3.13"] python: ["3.10", "3.11", "3.12", "3.13"]
torch: ["2.5", "2.6", "2.7", "2.8", "2.9"] torch: ["2.7", "2.8", "2.9", "pre"]
exclude:
- python: "3.13"
torch: "2.5"
steps: steps:
- name: Checkout to the tag - name: Checkout to the tag
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -129,11 +123,13 @@ jobs: ...@@ -129,11 +123,13 @@ jobs:
SET CUDA_VERSION=12.8 SET CUDA_VERSION=12.8
) ELSE IF "%TORCH_VERSION%"=="2.8" ( ) ELSE IF "%TORCH_VERSION%"=="2.8" (
SET CUDA_VERSION=12.8 SET CUDA_VERSION=12.8
) ELSE IF "%TORCH_VERSION%"=="2.9" (
SET CUDA_VERSION=12.8
) ELSE ( ) ELSE (
SET CUDA_VERSION=12.4 SET CUDA_VERSION=12.4
) )
call C:\Users\muyangl\miniconda3\condabin\activate.bat activate call C:\Users\muyangl\miniconda3\condabin\activate.bat activate
IF "%TORCH_VERSION%"=="2.9" ( IF "%TORCH_VERSION%"=="pre" (
call scripts\build_windows_wheel_torch_nightly.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION% call scripts\build_windows_wheel_torch_nightly.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION%
) ELSE ( ) ELSE (
call scripts\build_windows_wheel.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION% call scripts\build_windows_wheel.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION%
......
__version__ = "1.0.1" __version__ = "1.0.2"
...@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" ...@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
requires = [ requires = [
"ninja", "ninja",
"setuptools", "setuptools",
"torch>=2.5", "torch>=2.7",
"wheel", "wheel",
] ]
......
...@@ -24,8 +24,12 @@ elif [ "$TORCH_VERSION" == "2.8" ]; then ...@@ -24,8 +24,12 @@ elif [ "$TORCH_VERSION" == "2.8" ]; then
TORCHVISION_VERSION="0.23" TORCHVISION_VERSION="0.23"
TORCHAUDIO_VERSION="2.8" TORCHAUDIO_VERSION="2.8"
echo "TORCH_VERSION is 2.8, setting TORCHVISION_VERSION to $TORCHVISION_VERSION and TORCHAUDIO_VERSION to $TORCHAUDIO_VERSION" echo "TORCH_VERSION is 2.8, setting TORCHVISION_VERSION to $TORCHVISION_VERSION and TORCHAUDIO_VERSION to $TORCHAUDIO_VERSION"
elif [ "$TORCH_VERSION" == "2.9" ]; then
TORCHVISION_VERSION="0.24"
TORCHAUDIO_VERSION="2.9"
echo "TORCH_VERSION is 2.9, setting TORCHVISION_VERSION to $TORCHVISION_VERSION and TORCHAUDIO_VERSION to $TORCHAUDIO_VERSION"
else else
echo "TORCH_VERSION is not 2.5, 2.6, 2.7 or 2.8, no changes to versions." echo "TORCH_VERSION is not 2.5, 2.6, 2.7, 2.8 or 2.9, no changes to versions."
fi fi
docker run --rm \ docker run --rm \
......
...@@ -22,8 +22,11 @@ if "%TORCH_VERSION%"=="2.5" ( ...@@ -22,8 +22,11 @@ if "%TORCH_VERSION%"=="2.5" (
) else if "%TORCH_VERSION%"=="2.8" ( ) else if "%TORCH_VERSION%"=="2.8" (
set TORCHVISION_VERSION=0.23 set TORCHVISION_VERSION=0.23
set TORCHAUDIO_VERSION=2.8 set TORCHAUDIO_VERSION=2.8
) else if "%TORCH_VERSION%"=="2.9" (
set TORCHVISION_VERSION=0.24
set TORCHAUDIO_VERSION=2.9
) else ( ) else (
echo TORCH_VERSION is not 2.5, 2.6, 2.7 or 2.8, no changes to versions. echo TORCH_VERSION is not 2.5, 2.6, 2.7, 2.8 or 2.9, no changes to versions.
) )
echo setting TORCHVISION_VERSION to %TORCHVISION_VERSION% and TORCHAUDIO_VERSION to %TORCHAUDIO_VERSION% echo setting TORCHVISION_VERSION to %TORCHVISION_VERSION% and TORCHAUDIO_VERSION to %TORCHAUDIO_VERSION%
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment