Skip to content

Commit

Permalink
[CI fix] Disable paged attn with PT Flash (fairinternal/xformers#1174)
Browse files Browse the repository at this point in the history
Co-authored-by: danthe3rd <danthe3rd>

__original_commit__ = fairinternal/xformers@d4a5d82
  • Loading branch information
danthe3rd authored and xFormers Bot committed Aug 6, 2024
1 parent fd6821a commit 567cb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xformers/ops/fmha/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def _is_causal(attn_bias: Optional[Union[torch.Tensor, AttentionBias]]) -> bool:

def _is_paged_attention_supported(attn_bias_type) -> bool:
if issubclass(attn_bias_type, PagedBlockDiagonalPaddedKeysMask):
return FLASH_VERSION > "2.5.6"
return FLASH_VERSION > "2.5.6" and not _USE_PT_FLASH_ATTN

return True

Expand Down

0 comments on commit 567cb66

Please sign in to comment.