Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

LLM Memory Hierarchy: Why Storage Location Dictates Speed and Cost

datarekha 1 min read

Your large language model’s working memory, known as the KV cache, lives in a hierarchy of storage tiers. The fastest option is GPU VRAM, which sits next to the compute cores and delivers terabytes per second of bandwidth, but it’s extremely limited in capacity. When the cache overflows, it spills to CPU RAM, then to SSD, and finally to network storage—used only for logs and recovery, never for live inference. The rule is simple: hot cache demands fast memory, cold cache can use cheap memory. Understanding this trade-off is key to optimizing both performance and cost in LLM inference.

React