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

Integrate xlstm cleanly. #35377

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

kpoeppel
Copy link

What does this PR do?

This PR integrates xLSTM via the xlstm-library including certain optimizations (potentially use torch.compile and cuda graphs for speed up). This enables using the NX-AI/xLSTM-7b without a special fork of transformers.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests? Yes, I adapted the tests of the recurrent Mamba2 model.

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@ArthurZucker

@kpoeppel kpoeppel force-pushed the integrate_xlstm_clean branch from 3fd7959 to b4ebec5 Compare December 20, 2024 23:05
@kpoeppel kpoeppel force-pushed the integrate_xlstm_clean branch from b4ebec5 to ba5c457 Compare December 20, 2024 23:15
@kpoeppel kpoeppel force-pushed the integrate_xlstm_clean branch from 7cfd46b to f2e77c0 Compare December 21, 2024 00:06
@kpoeppel kpoeppel force-pushed the integrate_xlstm_clean branch from 4a4e347 to fe5759b Compare December 21, 2024 13:41
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