Will split intel macOS build to use older torch (#1138)

This commit is contained in:
Raivis Dejus 2025-04-05 12:27:29 +03:00 committed by GitHub
commit e136cebf31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 153 additions and 157 deletions

View file

@ -64,6 +64,11 @@ jobs:
- name: Test ffmpeg
run: ffmpeg -i ./testdata/audio-long.mp3 ./testdata/audio-long.wav
- name: Downgrade torch for Intel macOS
run: |
poetry add torch==2.2.2 torchaudio==2.2.2
if: "matrix.os == 'macos-13'"
- name: Install dependencies
run: poetry install
@ -128,23 +133,19 @@ jobs:
- name: Install CUDA torch for Windows
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
poetry source add --priority=supplemental torch https://download.pytorch.org/whl/cu121
poetry source add --priority=supplemental torch https://download.pytorch.org/whl/cu124
poetry source add --priority=supplemental nvidia https://pypi.ngc.nvidia.com
poetry add torch==2.2.2+cu121
poetry add torchaudio==2.2.2+cu121
poetry add nvidia-cublas-cu12==12.1.3.1
poetry add nvidia-cuda-cupti-cu12==12.1.105
poetry add nvidia-cuda-nvrtc-cu12==12.1.105
poetry add nvidia-cuda-runtime-cu12==12.1.105
poetry add nvidia-cufft-cu12==11.0.2.54
poetry add nvidia-curand-cu12==10.3.2.106
poetry add nvidia-cusolver-cu12==11.4.5.107
poetry add nvidia-cusparse-cu12==12.1.0.106
poetry add nvidia-nvtx-cu12==12.1.105
poetry add torch==2.6.0+cu124 torchaudio==2.6.0+cu124
poetry add nvidia-cublas-cu12==12.4.5.8 nvidia-cuda-cupti-cu12==12.4.127 nvidia-cuda-nvrtc-cu12==12.4.127 nvidia-cuda-runtime-cu12==12.4.127 nvidia-cufft-cu12==11.2.1.3 nvidia-curand-cu12==10.3.5.147 nvidia-cusolver-cu12==11.6.1.9 nvidia-cusparse-cu12==12.3.1.170 nvidia-nvtx-cu12==12.4.127
fi
shell: bash
- name: Downgrade torch for Intel macOS
run: |
poetry add torch==2.2.2 torchaudio==2.2.2
if: "matrix.os == 'macos-13'"
- name: Install dependencies
run: poetry install
@ -227,8 +228,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4