Skip to content

[Backport] Allow setting FlashAttention's causal mask#6837

Merged
alanwaketan merged 1 commit intor2.3from
alanwaketan/backport-1
Mar 27, 2024
Merged

[Backport] Allow setting FlashAttention's causal mask#6837
alanwaketan merged 1 commit intor2.3from
alanwaketan/backport-1

Conversation

@alanwaketan
Copy link
Copy Markdown
Collaborator

Summary:
This pull request channels the causal mask to our wrapper.

Test Plan:
PJRT_DEVICE=TPU python test/test_pallas.py -v -k test_flash_attention_wrapper_causal

Revert the default
@alanwaketan
Copy link
Copy Markdown
Collaborator Author

Thanks, Jack.

@alanwaketan alanwaketan merged commit 046f910 into r2.3 Mar 27, 2024
@alanwaketan alanwaketan deleted the alanwaketan/backport-1 branch March 27, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants