Skip to content

Commit c786e49

Browse files
minor clean up
1 parent e9aeb0a commit c786e49

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

flash_attn/cute/flash_fwd_combine.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ def kernel(
365365

366366
# Handle semaphore reset — wait for dependent grids first
367367
if const_expr(semaphore_to_reset is not None):
368-
# maybe handle on first CTA?
369368
if (
370369
tidx == 0
371370
and m_block == cute.arch.grid_dim()[0] - 1

tests/cute/test_flash_attn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
_flash_attn_fwd,
3535
_flash_attn_bwd,
3636
)
37-
from flash_attn.cute.prepare_scheduler import SchedulerMetadataTensorsTorch
3837

3938
def retry_on_oom(func):
4039
@wraps(func)
@@ -1001,7 +1000,7 @@ def _gen_unused_masks(padding_mask, add_unused, max_seq_len, bs, device):
10011000
@pytest.mark.parametrize("has_leftpad", [False])
10021001
# @pytest.mark.parametrize("has_batch_idx", [False, True])
10031002
@pytest.mark.parametrize("has_batch_idx", [False])
1004-
@pytest.mark.parametrize("varlen_q", [True])
1003+
@pytest.mark.parametrize("varlen_q", [False, True])
10051004
# @pytest.mark.parametrize("varlen_q", [False])
10061005
# @pytest.mark.parametrize("d", [32, 59, 64, 80, 128, 256])
10071006
# @pytest.mark.parametrize("d", [32, 64, 96, 128, 160, 192, 224, 256])

0 commit comments

Comments
 (0)