vllm icon indicating copy to clipboard operation
vllm copied to clipboard

[Feature]: Alternating local-global attention layers

Open griff4692 opened this issue 1 year ago • 1 comments

🚀 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...

  • [X] 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.

griff4692 avatar Oct 17 '24 12:10 griff4692

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

simon-mo avatar Oct 17 '24 16:10 simon-mo

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[bot] avatar Jan 16 '25 01:01 github-actions[bot]

This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!

github-actions[bot] avatar Feb 15 '25 01:02 github-actions[bot]