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 and can integrate with any request router that supports the KV Hint Protocol. 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

A hint envelope may carry several hints. KVCR parses and dispatches each one independently and records a per-hint outcome.

Engine support

Using KVCR

Quick start

The vLLM quick start builds and runs KVCR with vLLM, Dynamo, and NIXL using a pinned vLLM image and Dynamo package. See the developer guide for source installation and verification.

The SGLang quick start is a preview for building and running KVCR with SGLang and Dynamo, through either the HiCache storage backend or the experimental direct linker.

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.

Third-party software

The inference engines and Dynamo are not bundled into the kvcr wheel. See the vLLM and SGLang guides for their quick-start dependencies.

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.2.0

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.2.0
File Size Uploaded Provenance Actions
kvcr-0.2.0.tar.gz 587.7 kB Without provenance Details for kvcr-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 743.1 kB

Release files / kvcr-0.2.0.tar.gz

Download URL kvcr-0.2.0.tar.gz
Size 587.7 kB
Tags Source
SHA-256 checksum
How to use checksums
55b8a73129f0fd7780d90200c152257d602472a70c6db4d38a8f2e8dd1577897
BLAKE2b-256 checksum
How to use checksums
48d442972fa8df60722ea17a54bfd37188dab1dcb37fabbbeca327b5616c43d9
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.2.0-py3-none-any.whl

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

Security for kvcr 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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