Research ·
When the KV Cache Is Slower Than the GPU: Scaling Remote KV Tiers for Context-Parallel Prefill
A Hugging Face paper studies remote KV cache tiers for long-context prefill on GLM-5.3, showing a shared tier can blow up p99 latency unless sharded by parallel rank and loaded asynchronously.

A paper on Hugging Face examines remote KV cache tiers in a disaggregated deployment of GLM-5.3, an FP8 mixture-of-experts model with multi-head latent attention, on 8xB300 nodes running prefill context parallelism (PCP8). The setup used LMCache with a Valkey store. Enabling the remote tier left median time-to-first-token unchanged but pushed 16k-token p99 latency from 3.96s to 17.3s. A remote cache hit took 0.88s versus 0.31s to recompute a prompt, and synchronous loading turned a hit-heavy stream unstable, with p99 of 83.32s while GPUs sat only 7% busy.
The authors derive a two-term cost model: a hit only pays off if the tier delivers above a bandwidth threshold of 2.53 GB/s for this model and GPU, and a fixed per-hit engine cost of roughly 0.33s means prompts shorter than about 17k tokens can never beat recompute. Guided by this, they shard the MLA KV store across PCP ranks (with a proof the minimum-over-ranks lookup returns the longest cached prefix and a load protocol that cannot desynchronize collectives), partition the remote tier one server per rank with no coordination, raising GET bandwidth 6.3x to 10.76 GB/s, add asynchronous loading, and fix three client bugs causing unbounded stalls.
On the hit-heavy stream with 98.5% of prompt tokens served remotely, p99 drops from 83.32s to 0.67s. The sharded store raises prefill throughput by 14%, or 34% with an upstream kernel fix, and all changes are submitted upstream to LMCache. For builders of long-context serving, the takeaway is that a remote KV tier only helps if retrieval bandwidth clears the recompute threshold, that shared tiers without rank-aware sharding can be worse than no tier at all, and that synchronous cache loading can silently idle your GPUs.
A commenter on the paper cautions that medians can hide queueing problems and recommends inspecting hit rates by context length, eviction churn, and whether tail latency stems from queueing or transfer before trusting such a tier in production.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz