agentleFS
NVIDIAKnown publisherNVIDIA/kvpress/AGENTS.md

kvpress

AGENTS.md1.2k starsChanged 8 months agoApache-2.0View on GitHub

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 3 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/kvpress repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/kvpress

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

8 more on GitHub

On Bluesky · 5

  • 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
  1. Very specific:

    All presses are @dataclass classes inheriting from BasePress (kvpress/presses/base_press.py), and many presses inherit from ScorerPress …

    line 20
  2. Very specific:

    Read BasePress and ScorerPress implementations to understand the press architecture and hook mechanism.

    line 21
  3. Distinctive:

    All Python files must have SPDX headers:

    line 26
  4. Very specific:

    Create kvpress/presses/my_press.py as a @dataclass inheriting from BasePress (or ScorerPress if the press is score-based).

    line 34
  5. Very specific:

    Add tests in tests/default_presses.py (shared parametrized matrix) and/or tests/presses/ (press-specific tests).

    line 36
  6. Very specific:

    If evaluation support is needed, add a pre-configured instance to PRESS_REGISTRY in evaluation/evaluate_registry.py.

    line 37
  7. Distinctive:

    Update README.md with press description, link to paper, and source link.

    line 38
  8. Very specific:

    Run make style and test only new/modified tests.

    line 39

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Project Overview

  • kvpress is a Python library for KV cache compression using 🤗 transformers. Read README.md for 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

  • KVPressTextGenerationPipeline in kvpress/pipeline.py is the primary user-facing API for applying a press during generation.
  • kvpress/__init__.py: lists all available presses.
  • All presses are @dataclass classes inheriting from BasePress (kvpress/presses/base_press.py), and many presses inherit from ScorerPress (kvpress/presses/scorer_press.py) for score-based pruning.
  • Read BasePress and ScorerPress implementations 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.0

Adding or Modifying a Press

  1. Create kvpress/presses/my_press.py as a @dataclass inheriting from BasePress (or ScorerPress if the press is score-based).
  2. Export it in kvpress/__init__.py (add both the import and the __all__ entry).
  3. Add tests in tests/default_presses.py (shared parametrized matrix) and/or tests/presses/ (press-specific tests). Check existing examples to decide.
  4. If evaluation support is needed, add a pre-configured instance to PRESS_REGISTRY in evaluation/evaluate_registry.py.
  5. Update README.md with press description, link to paper, and source link.
  6. Run make style and test only new/modified tests.

Commits

  • Sign commits with DCO (git commit -s) as required by CONTRIBUTING.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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.