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

Is Infini-attention support possible? #7213

Open
sdmorrey opened this issue May 11, 2024 · 1 comment
Open

Is Infini-attention support possible? #7213

sdmorrey opened this issue May 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@sdmorrey
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ x] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
  • [x ] I carefully followed the README.md.
  • [ x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • [x ] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Feature Description

Infini-attention as described here... https://arxiv.org/pdf/2404.07143
There is a python implementation here: https://github.com/mustafaaljadery/gemma-2B-10M

Motivation

This new attention mechanism allows an effectively unlimited context without the quadratic penalty. There is a proof of concept with 10M context in < 32GB of RAM. I feel like this would be extremely useful to support but I'm uncertain what if any changes to llama.cpp would be required.

Possible Implementation

There is a python implementation here: https://github.com/mustafaaljadery/gemma-2B-10M

Thanks so much for looking!

@sdmorrey sdmorrey added the enhancement New feature or request label May 11, 2024
@arnfaldur
Copy link

The paper describes a new model architecture which would have to be implemented which takes some work.

The model they released with the paper is a "very early checkpoint" so it might be wise to wait until at least one fully baked model exists in this architecture.

It's a very cool model though so it might be worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants