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

Does FlexAttention Support torch.vmap? #25

Open
MiladInk opened this issue Aug 17, 2024 · 3 comments
Open

Does FlexAttention Support torch.vmap? #25

MiladInk opened this issue Aug 17, 2024 · 3 comments

Comments

@MiladInk
Copy link

I know the scaled_dot_product_attention of torch.nn.functional does not and it is a big problem for me. Does FlexAttention support batched mode?

@drisspg
Copy link
Contributor

drisspg commented Aug 17, 2024

Cc @zou3519

@Chillee
Copy link
Contributor

Chillee commented Aug 17, 2024

@MiladInk We haven't added support yet but it shouldn't be too hard. I've also been meaning to add vmap support for scaled_dot_product_attention... might do it this weekend.

@Chillee
Copy link
Contributor

Chillee commented Aug 22, 2024

btw, we just added vmap support for scaled_dot_product_attention: pytorch/pytorch#133964

We'll also look into doing it for FlexAttention soon.

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