Skip to content

Commit bdf1ea8

Browse files
committed
Add back the workflows
1 parent b5f5399 commit bdf1ea8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-wheels.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ permissions:
2121

2222
jobs:
2323
build_wheels:
24-
name: Build wheels for Python ${{ matrix.pyver }} and CUDA ${{ matrix.cuda }}
24+
name: Build wheels for Python ${{ matrix.pyver }}, CUDA ${{ matrix.cuda }}, and Torch ${{ matrix.torchver }}
2525
runs-on: windows-latest
2626
strategy:
2727
matrix:
2828
pyver: ["3.10", "3.11"]
29-
cuda: ["12.1.1"]
29+
cuda: ["12.2.2"]
30+
torchver: ["2.1.2", "2.2.0"]
3031
defaults:
3132
run:
3233
shell: pwsh
@@ -37,8 +38,6 @@ jobs:
3738
steps:
3839
- uses: actions/checkout@v4
3940
with:
40-
repository: 'Dao-AILab/flash-attention'
41-
ref: ${{ inputs.version }}
4241
submodules: 'recursive'
4342

4443
- uses: actions/setup-python@v4
@@ -67,7 +66,7 @@ jobs:
6766
if (!(mamba list cuda)[-1].contains('cuda')) {sleep -s 10; mamba install -y 'cuda' $cudaChannels.TrimEnd().Split()}
6867
if (!(mamba list cuda)[-1].contains('cuda')) {throw 'CUDA Toolkit failed to install!'}
6968
70-
python -m pip install --upgrade build setuptools wheel packaging ninja torch==2.1.0 --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
69+
python -m pip install --upgrade build setuptools wheel packaging ninja torch==${{ matrix.torchver }} --extra-index-url "https://download.pytorch.org/whl/cu121"
7170
7271
- name: Build Wheel
7372
id: build-wheel
@@ -85,7 +84,7 @@ jobs:
8584
python -m build -n --wheel
8685
8786
$wheel = (gi '.\dist\*.whl')[0]
88-
$wheelname = $wheel.name.replace("flash_attn-$packageVersion-","flash_attn-$packageVersion+cu$cudaVersion"+"torch2.1cxx11abiFALSE-")
87+
$wheelname = $wheel.name.replace("flash_attn-$packageVersion-","flash_attn-$packageVersion+cu$cudaVersion"+"torch${{ matrix.torchver }}cxx11abiFALSE-")
8988
Move-Item $wheel.fullname ".\dist\$wheelname"
9089
9190
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)