Skip to content

Context parallelism #31

Description

@rlrs

To train long-context models, or in some cases simply as an alternative to adding TP, we need to have an implementation of context parallelism. For MLP, this is simply sharding on the sequence dim. For attn, this is some variant of ring attention.

Scope:

  • Gemma and Llama models for now.
  • Some MFU degradation expected, but needs to work with compile and do reasonable overlapping.

Acceptance criteria:

  • Allows training models with many times longer sequence length on LUMI.
  • Relevant correctness test suite that passes.

Decision: previously discussed and already started.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions