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

Context parallel implementation for Mamba 2 #597

Open
josiahbjorgaard opened this issue Oct 18, 2024 · 0 comments
Open

Context parallel implementation for Mamba 2 #597

josiahbjorgaard opened this issue Oct 18, 2024 · 0 comments

Comments

@josiahbjorgaard
Copy link

I have a working context parallel implementation forked from this repo for forward/backward passes which required two modifications

  1. padding conv layer input chunks on each GPU with the last N_padding tokens of the previous GPU and then discarding padding token output indices
  2. transferring final states in state passing point-to-point between GPUs sequentially

And then vice-a-versa for the backward pass. I believe I've also worked out a way to do this without sequential point-to-point.

Would this be useful to contribute? If so, would like to know best way to do so since it requires modification of the core wrapper of the mamba 2 triton code.

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