Skip to content

[Feature]: Extend the v1 KV cache manager with a disk (L3) tier and per-request retention #16251

Open

Description

@nafis271

🚀 The feature, motivation and pitch

The v1 KV cache block manager currently supports two tiers — GPU (primary) and host
(secondary). We'd like to extend it with a third, disk-backed tier: blocks evicted from
the host tier spill to local disk and are reused on a later prefix hit instead of recomputed,
extending KV reuse well beyond DRAM.

We'd also like to add a per-request retention period — a request can ask that its KV cache
stay reusable for a given amount of time. The engine has no such control today.

We've implemented both for the v1 manager and validated them under production traffic at
DeepInfra. A PR is ready and will be opened shortly.

Alternatives

KVCacheManagerv2 does have a disk tier, but in our production testing at DeepInfra it
cannot sustain production traffic (it has to run with the overlap scheduler disabled, and
even then it can't keep up), and it has no per-request retention. So it does not cover the
default v1 path, nor the retention capability we need.

Additional context

Implementation (C++ + Python, with a disk-tier unit-test suite and benchmarks) is ready; we
will open the PR shortly.


  • I searched existing/past issues and checked the documentation and examples.

Activity

  1. added
    KV-Cache Management
    on Jul 10, 2026
  2. added 14 commits that reference this issue on Jul 10, 2026
  3. 82 remaining items

  4. added 5 commits that reference this issue on Jul 20, 2026
  5. added 9 commits that reference this issue on Jul 29, 2026
  6. added a commit that references this issue on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    KV-Cache Management

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions