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

[Feature]: Alternating local-global attention layers #9464

Open
1 task done
griff4692 opened this issue Oct 17, 2024 · 2 comments
Open
1 task done

[Feature]: Alternating local-global attention layers #9464

griff4692 opened this issue Oct 17, 2024 · 2 comments

Comments

@griff4692
Copy link

🚀 The feature, motivation and pitch

Gemma-2 and new Ministral models use alternating sliding window and full attention layers to reduce the size of the KV cache.

The KV cache is a huge inference bottleneck and this technique could be fine-tuned into other models to make them much more memory efficient, especially for large batch sizes.

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@simon-mo
Copy link
Collaborator

Yes. This will be worked on, added to the roadmap.

Copy link

This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!

@github-actions github-actions bot added the stale label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants