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

Distributed Attention Methods #44

Open
tsrikris opened this issue Sep 20, 2024 · 2 comments
Open

Distributed Attention Methods #44

tsrikris opened this issue Sep 20, 2024 · 2 comments
Labels
question Further information is requested

Comments

@tsrikris
Copy link

tsrikris commented Sep 20, 2024

Do you have plans to enable distributed attention methods (Ring Attention, Striped Attention, Tree Attention, etc.) via a FlexAttention-like interface? Most of the functional implementations today are on JAX.

@drisspg
Copy link
Contributor

drisspg commented Oct 1, 2024

It should be possible to build to use FlexAttention as a component in many of these algorithms, we have an arg to "return_lse" which is typically required to merge different attention chunks. We would accept + add an example showing how to do this

@MayDomine
Copy link

Do you have plans to enable distributed attention methods (Ring Attention, Striped Attention, Tree Attention, etc.) via a FlexAttention-like interface? Most of the functional implementations today are on JAX.

I am working on this. I am trying to intergate BurstAttention with efficient sparse attention implementation.
(BurstAttention is like a RingAttention++ version, with lots of features like Striped/ZigZag workload balance, a novel way to optimize backward communication and some things like TreeAttention to optimize communication)

@drisspg drisspg added the question Further information is requested label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants