Skip to content
← Build
Hypothesis, not validatedstage: hypothesis63

Cross-tier, cross-engine KV-cache observability

Problem, hypothesis and first deliverable

Problem
Operators running vLLM or SGLang with an offload tier (LMCache, llm-d KV cache, Mooncake) cannot easily answer 'where does this prefix live, how long does it stay, and why did it miss?' across GPU, CPU and remote tiers. Each layer exports its own metrics. Routers need the same block-level state, and layout or namespace bugs in persistent offload caches are silent.
Hypothesis
A small engine-agnostic collector that ingests vLLM KV events and Prometheus residency metrics plus LMCache metrics, and joins them per prefix hash, would give one view of hit and miss per tier and per request. It would be adopted because KV-aware routing and offload are now standard in llm-d, Dynamo and AIBrix. Each of those has its own internal view, and none offers a shared debugging lens.
A credible first version
An OpenTelemetry/Prometheus exporter plus a CLI/Grafana dashboard. It consumes vLLM KV-cache events (ZMQ) and LMCache metrics, reconstructs a global prefix-tree view, and reports per-tier hit rate, block lifetime and the reason for each eviction or miss for a replayed multi-turn trace.

Evidence

5 links, opened when curated
  • Closed RFC (2025-04-15, 10 reactions). Proposes publishing block add/remove events so a router can build a global prefix tree, plus real-time metrics for load balancing.

  • Documents KV Cache Residency Metrics (block lifetime, idle-before-evict, reuse gap) sampled via --kv-cache-metrics-sample. These are GPU-tier only. The KV Cache Offloading section covers only removed legacy swap metrics.

  • docLMCache Observabilitydocs.lmcache.ai

    LMCache has its own metrics, logging and tracing docs, separate from the engine's metrics.

  • Open roadmap (19 reactions). Lists unchecked items 'Inspect and update KV caches' and runtime-configurable eviction, store and prefetch policy.

  • Open bug (2026-09-08). Example of a silent correctness hazard in offload tiers that better visibility would surface.

Existing solutions

who already addresses it, and how well
  • Repo description reads 'Distributed KV cache scheduling & offloading libraries'. Scheduling-oriented, not an operator debugging view.

  • lib/kv-router (github.com/ai-dynamo/dynamo/blob/main/lib/kv-router/README.md) keeps a radix-tree prefix-overlap index fed by RouterEvents for routing. Internal to Dynamo.

  • partialAIBrix

    Its docs list KVCache Offloading and KV Cache Events Synchronization features (aibrix.readthedocs.io). Platform-internal.

  • partialLMCache

    Exposes metrics for its own tiers only.

  • partialvLLM

    GPU-tier residency histograms and KV events. No cross-tier join.

Attached signals

45 raw signals concerning the same projects, techniques or categories

Demand · 9

DemandvLLM#38171

[Feature]: Add TurboQuant Support for KV Cache Quantization

[Feature]: Add TurboQuant Support for KV Cache Quantization 🚀 The feature, motivation and pitch TurboQuant is a novel online vector quantization method that achieves near-optimal distortion rates for both MSE and inner product preservation, specifically designed for KV cache…

252 reactions52 commentsfeature request
DemandvLLM#27433

[Feature]: Batch Invariant Feature and Performance Optimization

🚀 The feature, motivation and pitch We have basically support Batch Invariant based on But there are still some work to be done, so here is the issue to track the work TODOs: - [x] Basic framework @bwasti - [x] Flashinfer support @bwasti - [x] Deepseek-v3 @bwasti - [x] DeepGEMM…

41 reactions107 commentsfeature request
Demandllama.cpp#21725

Feature Request: XDNA backend

Prerequisites - [x] I am running the latest code. Mention the version if possible as well. - [x] I carefully followed the README.md. - [x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed). - [x] I…

39 reactions39 commentsfeature request
Demandllama.cpp#5365

Support for Sparse MoE models like Camelidae and Sparsetral

A new technique for broadening the capabilities of LLMs without massively increasing resource requirements has recently emerged. Instead of shuffling tokens in between expert models like a standard MoE, it shuffles them between expert LoRAs. This gives much of the benefit of a…

35 reactions6 commentsfeature request

Papers without code · 4

Recurring pain · 30

Recurring pain

“silently drops” in open issues of 34 projects

AIBrix, Apache Iceberg, Apache TVM, Bifrost, cognee, CrewAI, CUTLASS, DeepEval, DeepGEMM, DSPy, GraphRAG, IREE, JAX, Kubernetes, LangChain, LangGraph, llama.cpp, LLM Compressor, LobeHub, MCP Python SDK, Milvus, NVIDIA NeMo, OpenAI Agents SDK, OpenHands, PaddlePaddle, PyTorch, SGLang, TensorFlow, TensorRT, TensorRT-LLM, TileLang, Transformers, vLLM, XGrammar

34 projects61 open issues
Recurring pain

“returns wrong” in open issues of 24 projects

Apache TVM, bitsandbytes, Composable Kernel, CUTLASS, ExecuTorch, FlashAttention, FlashInfer, JAX, Liger Kernel, llama.cpp, LobeHub, Milvus, MLX, Modular Platform (Mojo & MAX), NCCL, PyTorch, Ray, SGLang, TensorFlow, TensorRT-LLM, TileLang, Transformers, Triton, vLLM

24 projects56 open issues
Recurring pain

“silently ignores” in open issues of 22 projects

Apache TVM, Cline, Colossal-AI, CUDA Python, Diffusers, FlashAttention, FlashInfer, GraphRAG, LiteLLM, lm-evaluation-harness, Milvus, NVIDIA Dynamo, NVIDIA GPU Operator, NVIDIA NeMo, Ollama, ONNX, OpenXLA XLA, Pydantic AI, PyTorch, smolagents, TileLang, vLLM

22 projects29 open issues
Recurring pain

“wrong results” in open issues of 20 projects

Apache Iceberg, Composable Kernel, CUTLASS, Dask, FlashInfer, IREE, JAX, llama.cpp, Megatron-LM, Modular Platform (Mojo & MAX), NCCL, ONNX Runtime, OpenXLA XLA, Pydantic AI, PyTorch, TensorFlow, TensorRT, TileLang, Triton, vLLM

20 projects60 open issues
Recurring pain

“illegal memory” in open issues of 20 projects

bitsandbytes, ComfyUI, ExecuTorch, FlashAttention, FlashInfer, Liger Kernel, llama.cpp, Megatron-LM, NCCL, NVIDIA Dynamo, ONNX Runtime, PyTorch, ROCm, SGLang, TensorFlow, TensorRT-LLM, Triton, Unsloth, verl, vLLM

20 projects72 open issues
Recurring pain

“silently dropped” in open issues of 19 projects

Agent Development Kit (ADK), Bifrost, Chroma, ComfyUI, CrewAI, Dify, Graphiti, GraphRAG, LibreChat, LlamaIndex, Marker, MCP TypeScript SDK, MinerU, ONNX Runtime, PyTorch, SGLang, TileLang, Triton, vLLM

19 projects29 open issues

Research gap · 2

Cross-tier, cross-engine KV-cache observability · Build · AI Infra Atlas