Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

alanwaketan
Copy link
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
Collaborator Author

Thanks, Jack.

@alanwaketan alanwaketan merged commit 046f910 into r2.3 Mar 27, 2024
17 checks passed
@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