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

Example scripts to implement and train Mamba-2 on Trainium #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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