#197 · Primary category: Inference & Local Deploy
attention_sinks
Extend existing LLMs way beyond the original training length with constant memory usage, without retraining
Project last updated:04/10/24
GitHub Stars
735
Forks
44
Contributors
4
License
Apache-2.0
Why we included this project
Long-running chat sessions and streaming pipelines eventually push a model past its training window, and that's where this library earns its keep. It implements the attention-sinks technique from the Efficient Streaming Language Models paper, letting a pre-trained model stay fluent well beyond its original context length while keeping memory usage roughly flat. The practical part is that it drops into the Hugging Face transformers API: you swap in AutoModel from attention_sinks, add a couple of parameters, and you're done, no retraining or changes to your generation loop. The README's benchmark charts compare perplexity and VRAM across several models, which helps you judge whether the trade-off.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ollama
Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
llama.cpp
LLM inference in C/C++
vllm
A high-throughput and memory-efficient inference and serving engine for LLMs
gpt4all
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
LocalAI
LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.