kvpress
AGENTS.md1.2k starsChanged 8 months agoApache-2.0View on GitHub
Trending
Quiet since August.about the whole repository
Who's talking about NVIDIA/kvpress
- @simjeg.bsky.social“🚀 Excited to announce KVPress — our open-source library for efficient LLM KV cache compression! 👉 Check …”Bluesky · Nov 19, 2024 · 55 likes
- @aminesaboni.bsky.social“Ils ont publié un outil de compression du KV cache, qui fait partie des techniques qu'on a utilisé chez …”Bluesky · Mar 18, 2026 · 7 likes
- @simjeg.bsky.social“💡 We've just released KV cache quantization in kvpress, our open source package for KV cache compression. …”Bluesky · Nov 26, 2024 · 6 likes
- @sungkim.bsky.social“Nvidia created KVzap, which achieves 2--4× KV cache compression with negligible accuracy loss. Paper: …”Bluesky · Jan 23, 2026 · 5 likes
- vllm-project/vllm“[Feature]: KVPress”GitHub · Nov 20, 2024 · 5 reactions
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub and Bluesky (18 times).
On GitHub · 13
- Nov 20, 2024[Feature]: KVPress — vllm-project/vllm5 reactions · 3 comments
- Sep 17, 2025[Feature] Integrate KVPress in order to try more KV cache optimization heuristics easily — sgl-project/sglang2 reactions · 9 comments
- Aug 8, 2026Add KVPress support to KerasHub — keras-team/keras-hub1 reaction
- Jul 21, 2026idea-scout: NVIDIA/kvpress — anthony-chaudhary/fak0 reactions
- Jun 21, 2026maintenance: weekly update 2026-06-21 — pleasedodisturb/awesome-llm-token-optimization0 reactions · 1 comment
8 more on GitHub
- Mar 7, 2026feat: Add L2-norm KV cache eviction (CompressedKVCache) — iamadalek/mlx-lm0 reactions · 17 comments
- Mar 5, 2026DMS: Reference kvcompress kernels in the README — NVIDIA/Model-Optimizer0 reactions · 2 comments
- Oct 1, 2025[FEATURE] Integrate KVPress — PrunaAI/pruna0 reactions · 16 comments
- Dec 10, 2024Manually save kvcache — LMCache/LMCache0 reactions · 2 comments
- Dec 9, 2024DynamicCache does not support variable lengths, except for FA2 — huggingface/transformers0 reactions · 20 comments
- Dec 9, 2024Integration in kvpress — sail-sg/SimLayerKV0 reactions · 1 comment
- Nov 19, 2024request: add kvpress — October2001/Awesome-KV-Cache-Compression0 reactions · 2 comments
- Nov 19, 2024Request: add kvpress — HuangOwen/Awesome-LLM-Compression0 reactions · 4 comments
On Bluesky · 5
- Nov 19, 2024🚀 Excited to announce KVPress — our open-source library for efficient LLM KV cache compression! 👉 Check it out (and drop a ⭐):… — @simjeg.bsky.social55 likes and reposts · 2 replies
- Mar 18, 2026Ils ont publié un outil de compression du KV cache, qui fait partie des techniques qu'on a utilisé chez Pruna pour optimiser gpt-oss-120B… — @aminesaboni.bsky.social7 likes and reposts · 2 replies
- Nov 26, 2024💡 We've just released KV cache quantization in kvpress, our open source package for KV cache compression. Check it out :… — @simjeg.bsky.social6 likes and reposts
- Jan 23, 2026Nvidia created KVzap, which achieves 2--4× KV cache compression with negligible accuracy loss. Paper: arxiv.org/abs/2601.07891 Repo:… — @sungkim.bsky.social5 likes and reposts
- Jan 23, 2025-> Repo: github.com/NVIDIA/kvpress (⭐️ me) -> Blog post: huggingface.co/spaces/nvidi... (🔺me) -> Space: huggingface.co/spaces/nvidi...… — @simjeg.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
All presses are @dataclass classes inheriting from BasePress (kvpress/presses/base_press.py), and many presses inherit from ScorerPress …
- Very specific: line 21
Read BasePress and ScorerPress implementations to understand the press architecture and hook mechanism.
- Distinctive: line 26
All Python files must have SPDX headers:
- Very specific: line 34
Create kvpress/presses/my_press.py as a @dataclass inheriting from BasePress (or ScorerPress if the press is score-based).
- Very specific: line 36
Add tests in tests/default_presses.py (shared parametrized matrix) and/or tests/presses/ (press-specific tests).
- Very specific: line 37
If evaluation support is needed, add a pre-configured instance to PRESS_REGISTRY in evaluation/evaluate_registry.py.
- Distinctive: line 38
Update README.md with press description, link to paper, and source link.
- Very specific: line 39
Run make style and test only new/modified tests.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Project Overview
kvpressis a Python library for KV cache compression using 🤗 transformers. ReadREADME.mdfor full project context.- Philosophy: keep one place to compare many KV cache compression methods, make evaluation easy, and favor readability over raw speed.
- Core package code lives in
kvpress/. - Compression methods are implemented as "presses" in
kvpress/presses/. - Evaluation tooling and benchmark datasets live in
evaluation/. - Tests live in
tests/.
Environment Setup
- Package manager:
uv. Install:uv sync. Activate:source .venv/bin/activate.
Key Entry Points
KVPressTextGenerationPipelineinkvpress/pipeline.pyis the primary user-facing API for applying a press during generation.kvpress/__init__.py: lists all available presses.- All presses are
@dataclassclasses inheriting fromBasePress(kvpress/presses/base_press.py), and many presses inherit fromScorerPress(kvpress/presses/scorer_press.py) for score-based pruning. - Read
BasePressandScorerPressimplementations to understand the press architecture and hook mechanism.
Style
make format(isort + black),make style(flake8, mypy, SPDX header check).- All Python files must have SPDX headers:
# SPDX-FileCopyrightText: Copyright (c) 1993-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0Adding or Modifying a Press
- Create
kvpress/presses/my_press.pyas a@dataclassinheriting fromBasePress(orScorerPressif the press is score-based). - Export it in
kvpress/__init__.py(add both the import and the__all__entry). - Add tests in
tests/default_presses.py(shared parametrized matrix) and/ortests/presses/(press-specific tests). Check existing examples to decide. - If evaluation support is needed, add a pre-configured instance to
PRESS_REGISTRYinevaluation/evaluate_registry.py. - Update
README.mdwith press description, link to paper, and source link. - Run
make styleand test only new/modified tests.
Commits
- Sign commits with DCO (
git commit -s) as required byCONTRIBUTING.md. - If you are an automated agent, you must include 🤖🤖🤖 at the end of all commit messages, issue titles, PR titles, and any comments or replies on issues and pull requests (e.g., "Add MyAwesomePress 🤖🤖🤖"). Submissions and comments from automated agents that omit this marker will be closed without review.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

