Skip to main content

KV Cache Runner — Data Plane Architecture

KV Cache Runner

Modern AI workloads require KV cache infrastructure that delivers speed, scale, and resilience.

KV Cache Runner (KVCR) reimagines KV cache as a system-wide distributed resource: available across memory and storage tiers, resilient by design, and managed holistically to unlock system-level optimizations and maximize end-to-end performance.

KVCR is agentic-native and built to accelerate AI workloads of every kind.

Architecture

KVCR is at its most powerful when working in tandem with a KV-aware request router. The router knows where the KV cache resides and can provide the selected worker with hints about where to retrieve it. The cache can be sourced locally or from remote peers, within or across memory and storage tiers, or from any combination of these sources.

KVCR leaves local KV cache offloading to host memory under the engine's control. It focuses on system-level optimizations enabled by this architecture, including cross-node KV cache sharing, KV-aware request load balancing, and KV cache prefetching — all guided by the router’s system-wide view. By maximizing KV cache reuse and overlapping cache onboarding with computation, KVCR reduces redundant work and improves prefill efficiency.

KVCR is resilient by design. KVCR-Guard is a sidecar KVCR process operating in active-passive mode and can outlive an engine failure. In such an event, KVCR-Guard remains available as a remote source of KV cache, minimizing disruption to serving in the face of failures.

KVCR provides a flexible policy interface that allows its behavior to be customized for different workloads.

KV Cache Runner architecture

For more details, see the design document.

  • kvcr.api: Contains the user-facing API for configuring KVCR and interacting with its core.
  • kvcr.policy: Contains the policy interface for customizing KVCR's behavior for different workloads.

Framework support

KVCR is vendor and framework agnostic, with no dependency on a specific request router. The list below summarizes framework integrations that are complete or in progress. We plan to extend support to additional frameworks and routers in the future.

KV Hint Protocol

Engine support

Routers

Using KVCR

Quick start

The quick start is a public preview that builds and runs KVCR with vLLM, Dynamo, and NIXL using pinned source revisions and a compatible base image. See the developer guide for source installation and verification.

Development

For local development, API lifecycle guidance, validation, integration, and KVCR guard service usage, see the developer guide.

License

KVCR is released under the Apache License 2.0. The full license text is in LICENSE.

KVCR package source files carry an SPDX Apache-2.0 identifier and the NVIDIA copyright notice. The vLLM source files used in the public quick-start build retain their Apache-2.0 contributor headers.

Third-party software

vLLM and Dynamo are installed separately in the quick-start image and are not bundled into the kvcr wheel. The build uses the public sources and pinned revisions described in the quick start.

KVCR declares runtime dependencies on msgspec, pyzmq, and nixl. Each is installed from its own distribution under its own license. None of them are redistributed by this repository or bundled into the kvcr wheel, which packages only src/kvcr.

Contributing

This project accepts external contributions. See CONTRIBUTING.md for the workflow.

Contributions require a Developer Certificate of Origin sign-off (git commit -s), whose full text is reproduced in that file and which is enforced on every pull request by the dco CI workflow. Participation is governed by CODE_OF_CONDUCT.md.

To report a security vulnerability, do not open a public issue — follow SECURITY.md.

Metadata

Release files for kvcr 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kvcr 0.1.1
File Size Uploaded
kvcr-0.1.1.tar.gz 483.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kvcr 0.1.1
File Interpreter ABI Platform
kvcr-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 599.9 kB

Release files / kvcr-0.1.1.tar.gz

Download URL kvcr-0.1.1.tar.gz
Size 483.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea0d22175d6db97b81bfe0aeccac6caddf88eeadf9cecb918eee420996f00596
BLAKE2b-256 checksum
How to use checksums
5b40a3c8dc5fa5ee0a6468dd5ac68eabd5f9bce7272aa76470d484bfe13a7d69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / kvcr-0.1.1-py3-none-any.whl

Download URL kvcr-0.1.1-py3-none-any.whl
Size 116.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6014c1f303e2dc6d6f2817c39ebe0e9634371c65332baaa876642cba20fd0643
BLAKE2b-256 checksum
How to use checksums
d6e6ea03fa69146f41d12c6115b6ab5b2624f1fc7fd78f202392d94402fbc3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page