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

[Feature question] key_padding_mask in flash attention #424

Open
kanghui0204 opened this issue Aug 6, 2023 · 0 comments
Open

[Feature question] key_padding_mask in flash attention #424

kanghui0204 opened this issue Aug 6, 2023 · 0 comments

Comments

@kanghui0204
Copy link

kanghui0204 commented Aug 6, 2023

https://github.com/Dao-AILab/flash-attention/blob/main/flash_attn/modules/mha.py#L461
Hi exports , I saw in flash-attention MHA implementation don't support key_padding_mask feature, If we want to support it , do flash-attention have a API? or how can we do it with flash-attention?

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

No branches or pull requests

1 participant