File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ def test_cascade(
93
93
fa_version : int ,
94
94
) -> None :
95
95
torch .set_default_device ("cuda" )
96
- if is_fa_version_supported (fa_version ):
97
- pytest .skip ("Flash attention version not supported due to: " + \
98
- fa_version_unsupported_reason (fa_version ))
96
+ if not is_fa_version_supported (fa_version ):
97
+ pytest .skip (f "Flash attention version { fa_version } not supported due "
98
+ f"to: \" { fa_version_unsupported_reason (fa_version )} \" " )
99
99
100
100
current_platform .seed_everything (0 )
101
101
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ def test_flash_attn_with_paged_kv(
97
97
fa_version : int ,
98
98
) -> None :
99
99
torch .set_default_device ("cuda" )
100
- if is_fa_version_supported (fa_version ):
101
- pytest .skip (f"Flash attention version { fa_version } not supported due "
100
+ if not is_fa_version_supported (fa_version ):
101
+ pytest .skip (f"Flash attention version { fa_version } not supported due "
102
102
f"to: \" { fa_version_unsupported_reason (fa_version )} \" " )
103
103
104
104
current_platform .seed_everything (0 )
@@ -183,8 +183,8 @@ def test_varlen_with_paged_kv(
183
183
fa_version : int ,
184
184
) -> None :
185
185
torch .set_default_device ("cuda" )
186
- if is_fa_version_supported (fa_version ):
187
- pytest .skip (f"Flash attention version { fa_version } not supported due "
186
+ if not is_fa_version_supported (fa_version ):
187
+ pytest .skip (f"Flash attention version { fa_version } not supported due "
188
188
f"to: \" { fa_version_unsupported_reason (fa_version )} \" " )
189
189
current_platform .seed_everything (0 )
190
190
num_seqs = len (seq_lens )
You can’t perform that action at this time.
0 commit comments