File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,13 @@ permissions:
21
21
22
22
jobs :
23
23
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 }}
25
25
runs-on : windows-latest
26
26
strategy :
27
27
matrix :
28
28
pyver : ["3.10", "3.11"]
29
- cuda : ["12.1.1"]
29
+ cuda : ["12.2.2"]
30
+ torchver : ["2.1.2", "2.2.0"]
30
31
defaults :
31
32
run :
32
33
shell : pwsh
37
38
steps :
38
39
- uses : actions/checkout@v4
39
40
with :
40
- repository : ' Dao-AILab/flash-attention'
41
- ref : ${{ inputs.version }}
42
41
submodules : ' recursive'
43
42
44
43
- uses : actions/setup-python@v4
67
66
if (!(mamba list cuda)[-1].contains('cuda')) {sleep -s 10; mamba install -y 'cuda' $cudaChannels.TrimEnd().Split()}
68
67
if (!(mamba list cuda)[-1].contains('cuda')) {throw 'CUDA Toolkit failed to install!'}
69
68
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 "
71
70
72
71
- name : Build Wheel
73
72
id : build-wheel
85
84
python -m build -n --wheel
86
85
87
86
$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 -")
89
88
Move-Item $wheel.fullname ".\dist\$wheelname"
90
89
91
90
- uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments