Open-source probe shows prefix caching cuts TTFT 6x, evicted past 1.1x KV capacity
efeefty · reddit · 2026-12-06
A developer released prefix-cache-observability, an MIT-licensed Streamlit tool that measures cross-session prefix caching in LLM serving engines via TTFT side-channel signals.
Design: paired warm/cold trials with equal-length sham preheating, randomized measurement order, works with any OpenAI-compatible endpoint (vLLM, SGLang, llama.cpp, Ollama, LM Studio), optional vLLM Prometheus metric verification, plus a blind-test tab computing exact binomial p-values.
Results (Colab T4, vLLM, Qwen3-0.6B):
- Caching on: 72.08 ms warm median vs 435.81 ms cold (6.05x ratio, AUC = 1.000)
- Caching off: 439.19 vs 428.36 ms, complete overlap (AUC = 0.372)
- Eviction: a 1,344-token prefix survived 100% up to 0.90x KV capacity (13,824 tokens, 64-token blocks), partially at 1.00x (4/21 blocks), fully evicted (0/30 runs) past 1.10x
Includes a 420-trial open dataset and preprint on Zenodo.
More from Infra
- Extropic founder vows: 'Everyone dismissing thermodynamic computing will pay a heavy price' — beffjezos · 2026-12-06
- MiniMax Details Forge V2.0: The 10,000-Accelerator Agentic RL System Behind M4 — MiniMax_AI · 2026-12-06
- NeurIPS Speculative Decoding Tutorial Goes Viral: 126K Views, Tracing EAGLE-3 to DFlash Evolution — Madisonkanna · 2026-12-06
- ASML, Airbus, BMW, Mistral AI and others team up on European chips and AI, targeting €150B a year — MarioKrenn6240 · 2026-12-06
- Qwen4-35B-A3B benchmarked on 1x H200: vLLM 32% faster, MTP with 2 speculative tokens wins — woosuk_k · 2026-12-06
- China Telecom trains Xing-4.1 on Ascend 910C SuperPoD, runs 60k+ domestic chip cluster — pstAsiatech · 2026-12-06