Skip to content

Commit

Permalink
Torch: Try update to 2.2
Browse files Browse the repository at this point in the history
Signed-off-by: kingbri <bdashore3@proton.me>
  • Loading branch information
bdashore3 committed Feb 2, 2024
1 parent ff1ae14 commit 0280f3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ permissions:

jobs:
build_wheels:
name: Build wheels for Python ${{ matrix.pyver }} and CUDA ${{ matrix.cuda }}
name: Build wheels for Python ${{ matrix.pyver }}, CUDA ${{ matrix.cuda }}, and Torch ${{ matrix.torchver }}
runs-on: windows-latest
strategy:
matrix:
pyver: ["3.8", "3.9", "3.10", "3.11"]
cuda: ["12.2.2"]
torchver: ["2.1.2", "2.2.0"]
defaults:
run:
shell: pwsh
Expand Down Expand Up @@ -67,7 +68,7 @@ jobs:
if (!(mamba list cuda)[-1].contains('cuda')) {sleep -s 10; mamba install -y 'cuda' $cudaChannels.TrimEnd().Split()}
if (!(mamba list cuda)[-1].contains('cuda')) {throw 'CUDA Toolkit failed to install!'}
python -m pip install --upgrade build setuptools wheel packaging ninja torch==2.1.0 --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
python -m pip install --upgrade build setuptools wheel packaging ninja torch==${{ matrix.torchver }} --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
- name: Build Wheel
id: build-wheel
Expand All @@ -85,7 +86,7 @@ jobs:
python -m build -n --wheel
$wheel = (gi '.\dist\*.whl')[0]
$wheelname = $wheel.name.replace("flash_attn-$packageVersion-","flash_attn-$packageVersion+cu$cudaVersion"+"torch2.1cxx11abiFALSE-")
$wheelname = $wheel.name.replace("flash_attn-$packageVersion-","flash_attn-$packageVersion+cu$cudaVersion"+"torch${{ matrix.torchver }}cxx11abiFALSE-")
Move-Item $wheel.fullname ".\dist\$wheelname"
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 0280f3e

Please # to comment.