SCENE 22 / 24 · DISTRIBUTED INFERENCE & INFRASTRUCTURE SCALE
KV caches across nodes
Offload, stream and balance attention memory over the network fabric.
QUEUE DEPTH16,384 TOK × 8 REQ
Placement is the decision: streaming a cold KV block over the fabric beats recomputing it — until it doesn't. Balance keeps hot prefixes resident and long tails tiered.
As context windows expand to 100k+ tokens, KV cache footprint exceeds GPU VRAM. Tiered KV management offloads inactive or cold KV cache blocks to CPU RAM or NVMe storage over PCIe/RDMA, streaming them back to GPU VRAM only when needed, avoiding expensive recomputation.
Hierarchy of Memory
GPU HBM (fastest, tiny) → CPU RAM (fast, large) → NVMe SSD (slowest, massive). Managing KV caches across this hierarchy optimizes overall system cost.
Offload vs Recompute Decision
If fetching a cold KV cache from CPU RAM over PCIe takes longer than recomputing the prefill on GPU, recomputation is preferred.
RDMA Remote Caching
In multi-node clusters, a node with idle VRAM/RAM can host KV caches for other nodes using Remote Direct Memory Access (RDMA).
MATHEMATICAL FORMULATION · OFFLOAD VS RECOMPUTE THRESHOLD