Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flash_sparse_attn/ops/triton/flash_dense_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def _bwd_dense_kernel(
TILE_M=TILE_M,
TILE_N=TILE_N,
IS_MASK=True,
MASK_CAUSAL=True,
MASK_CAUSAL=IS_CAUSAL,
MASK_LOCAL=True if IS_LOCAL else False,
)
)
Expand Down
2 changes: 1 addition & 1 deletion flash_sparse_attn/ops/triton/flash_dense_fwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def _fwd_dense_kernel(
TILE_N=TILE_N,
QHEAD_PER_KVHEAD_PACKGQA=QHEAD_PER_KVHEAD_PACKGQA,
IS_MASK=True,
MASK_CAUSAL=True,
MASK_CAUSAL=IS_CAUSAL,
MASK_LOCAL=True if IS_LOCAL else False,
CHECK_INF=True,
)
Expand Down
2 changes: 1 addition & 1 deletion flash_sparse_attn/ops/triton/flash_gated_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def _bwd_gated_kernel(
TILE_M=TILE_M,
TILE_N=TILE_N,
IS_MASK=True,
MASK_CAUSAL=True,
MASK_CAUSAL=IS_CAUSAL,
MASK_LOCAL=True if IS_LOCAL else False,
IS_LOGSIGMOID_GATE=IS_LOGSIGMOID_GATE,
)
Expand Down
2 changes: 1 addition & 1 deletion flash_sparse_attn/ops/triton/flash_gated_fwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def _fwd_gated_kernel(
TILE_N=TILE_N,
QHEAD_PER_KVHEAD_PACKGQA=QHEAD_PER_KVHEAD_PACKGQA,
IS_MASK=True,
MASK_CAUSAL=True,
MASK_CAUSAL=IS_CAUSAL,
MASK_LOCAL=True if IS_LOCAL else False,
IS_LOGSIGMOID_GATE=IS_LOGSIGMOID_GATE,
CHECK_INF=True,
Expand Down
2 changes: 1 addition & 1 deletion flash_sparse_attn/ops/triton/flash_sparse_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def _bwd_sparse_kernel(
TILE_M=TILE_M,
TILE_N=TILE_N,
IS_MASK=True,
MASK_CAUSAL=True,
MASK_CAUSAL=IS_CAUSAL,
MASK_LOCAL=True if IS_LOCAL else False,
)
)
Expand Down
2 changes: 1 addition & 1 deletion flash_sparse_attn/ops/triton/flash_sparse_fwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def _fwd_sparse_kernel(
TILE_N=TILE_N,
QHEAD_PER_KVHEAD_PACKGQA=QHEAD_PER_KVHEAD_PACKGQA,
IS_MASK=True,
MASK_CAUSAL=True,
MASK_CAUSAL=IS_CAUSAL,
MASK_LOCAL=True if IS_LOCAL else False,
CHECK_INF=True,
)
Expand Down
Loading