Skip to content

Conversation

alexachille
Copy link

Based on the implementation of Mamba-2 in transformers, but uses custom NKI kernels to run the key SSM operations efficiently on Trainium.

Issue #, if available:

Description of changes:

  • Adds code implementing the kernels to run a Mamba-2 model using NKI.
  • Integrate the kernels in a modified version of transformers.models.mamba2
  • Provides an example training script

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…nium.

Uses custom NKI kernels to run the key SSM operations efficiently on Trainium.
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

Successfully merging this pull request may close these issues.

1 participant