#129 · Primary category: Inference & Local Deploy

kvpress

inference kv-cache kv-cache-compression large-language-models llm long-context python pytorch transformers

LLM KV cache compression made easy

Project last updated:08/18/26

GitHub Stars

1.2K

Forks

172

Contributors

31

License

Apache-2.0

Why we included this project

The key-value cache in transformers grows linearly with input length, which makes long-context inference genuinely expensive: a single 1M-token prompt can eat hundreds of gigabytes of GPU memory. kvpress goes straight at that bottleneck with a set of prefill-time compression methods, called presses, that plug into existing Hugging Face models through a drop-in transformers pipeline, so you can try them without restructuring your serving setup. Each press is training-free and exposes a compression-ratio attribute, and the project ships a leaderboard and benchmarks comparing methods, so you can gauge the accuracy and latency trade-off before committing. That makes it a practical place to start, whether you want to apply an established method or prototype your own.

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