You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Extend the v1 KV cache manager with a disk (L3) tier and per-request retention #16251
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
[NVIDIA#16251][feat] KV-cache disk tier: config plumbing, poolless di…
[NVIDIA#16251][feat] disk tier: retained-only gate, per-request disk …
[NVIDIA#16251][feat] disk tier: re-stamp reused blocks, deadline-heap…
[NVIDIA#16251][feat] disk tier: trailing-default ctor params (non-bre…
[NVIDIA#16251][test] disk tier: C++ unit test suite (DiskTier spill/g…
[NVIDIA#16251][feat] disk tier: protect-unexpired admission mode (ref…
[NVIDIA#16251][fix] disk tier: fix spill-all eviction order (consume …
[NVIDIA#16251][perf] disk tier: async per-slot store baseline (pre re…
[NVIDIA#16251][perf] disk tier: unstaged reserved-block-pool store (p…
[NVIDIA#16251][chore] disk tier: profiling instrumentation (load-wait…
[NVIDIA#16251][perf] disk tier: N background writer threads on the sh…
[NVIDIA#16251][chore] disk tier: drop profiling instrumentation
[NVIDIA#16251][perf] batch_manager: detach disk-tier onboard from the…
[NVIDIA#16251][feat] batch_manager: reuse-count disk spill gate (TLLM…
82 remaining items
[NVIDIA#16251][chore] minor comment cleanup
[NVIDIA#16251][fix] erase disk deadline entries when their blocks lea…
[NVIDIA#16251][fix] refuse TLLM_KV_DISK_DROP_ON_PRESSURE with tensor …
[NVIDIA#16251][fix] anchor retention decisions to a rank-consistent c…
[NVIDIA#16251][chore] rename a parameter flagged by codespell
[NVIDIA#16251][chore] add disk write-pressure getter and fix onboard …
[NVIDIA#16251][fix] disk tier: anchor retention deadline at commit, n…
[NVIDIA#16251][fix] disk tier: thread the rank-consistent clock into …
[NVIDIA#16251][fix] kv cache: shut down disk workers before releasing…
[NVIDIA#16251][infra] dedup spill enqueue paths and scope test env vars
[NVIDIA#16251][fix] disk tier: converge the transfer manager on the v…
[NVIDIA#16251][fix] spec-decode: keep the slot when a parked onboard …
[NVIDIA#16251][fix] disk tier: fix per-manager slot collisions under …
[NVIDIA#16251][fix] sync retention clock in disagg-gen path; annotate…
[NVIDIA#16251][fix] disk-tier: use getUInt64Env for env knobs; test c…