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

Usage of flash attention #12

Open
shaharbar1 opened this issue Jan 14, 2024 · 1 comment
Open

Usage of flash attention #12

shaharbar1 opened this issue Jan 14, 2024 · 1 comment
Assignees

Comments

@shaharbar1
Copy link

Consider wrapping the call to self.attention in InterpretableMultiHeadAttention with
with torch.backends.cuda.sdp_kernel(enable_flash=True, enable_math=False, enable_mem_efficient=True):
In order to improve speed and memory efficiency.

@Dvirbeno Dvirbeno self-assigned this Jan 14, 2024
@otto-dev
Copy link

no pytorch/pytorch#125674

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

3 participants