Skip to content

Context parallel implementation for Mamba 2 #597

@josiahbjorgaard

Description

@josiahbjorgaard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions