Skip to content

Commit cf0f4c3

Browse files
committed
[CI] Fix CUDA version for torch 2.6
1 parent cc408f9 commit cf0f4c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ jobs:
123123
# see https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix
124124
# This code is ugly, maybe there's a better way to do this.
125125
export TORCH_CUDA_VERSION=$(python -c "from os import environ as env; \
126-
minv = {'2.1': 118, '2.2': 118, '2.3': 118, '2.4': 118, '2.5': 118}[env['MATRIX_TORCH_VERSION']]; \
127-
maxv = {'2.1': 121, '2.2': 121, '2.3': 121, '2.4': 124, '2.5': 124}[env['MATRIX_TORCH_VERSION']]; \
126+
minv = {'2.1': 118, '2.2': 118, '2.3': 118, '2.4': 118, '2.5': 118, '2.6': 118}[env['MATRIX_TORCH_VERSION']]; \
127+
maxv = {'2.1': 121, '2.2': 121, '2.3': 121, '2.4': 124, '2.5': 124, '2.6': 124}[env['MATRIX_TORCH_VERSION']]; \
128128
print(minv if int(env['MATRIX_CUDA_VERSION']) < 120 else maxv)" \
129129
)
130130
if [[ ${{ matrix.torch-version }} == *"dev"* ]]; then

flash_attn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.7.1"
1+
__version__ = "2.7.1.post1"
22

33
from flash_attn.flash_attn_interface import (
44
flash_attn_func,

0 commit comments

Comments
 (0)