AI needs a lot of memory because a model has to keep all of its learned numbers, called weights, plus working data for every conversation in progress, in fast storage beside the chip that does the math, and it has to load much of that data into the processor again for each step of work [1]. Memory here means that fast working storage, not the drive where files are kept.
Speed of delivery often matters even more than size. Modern AI chips can do arithmetic faster than memory can supply the data, so how much memory sits next to the processor, and how quickly data moves in and out of it, often decide how fast an AI system actually runs. High-bandwidth memory (HBM), a stack of memory chips mounted right beside the processor, exists to widen that path [2, 3]. Who makes AI chips showed how packaging places that memory inside the chip’s module; this guide explains why it is worth the trouble. Memory makers belong to the manufacturing layer of how the AI industry works.
TL;DR
- Arithmetic has outpaced data delivery. One analysis found peak server compute grew about 3.0 times every two years over two decades, against 1.6 times for memory bandwidth [4].
- Chatbot answers lean hardest on memory. Writing a reply token by token means re-reading the model’s weights and stored conversation state at every step [5, 1].
- HBM is stacked memory placed beside the chip. The current standard, HBM4, allows up to 2 TB/s from a single stack [6, 2].
- Moving less data helps as much as faster memory. Smarter memory management and data-aware algorithms have produced multi-fold speedups in published research [5, 7].
Capacity and Bandwidth: Two Different Limits
AI memory is judged on two numbers. Capacity is how much it holds: the model’s learned weights plus working data for every request in progress. Bandwidth is how fast data streams between memory and the processor’s compute units, usually quoted in terabytes per second (TB/s). Bandwidth matters even when everything fits, because the data must be read again for each step of work [1].
Memory also comes in layers. A little very fast memory, called SRAM, sits on the processor itself; the much larger HBM sits beside it. On NVIDIA’s A100, on-chip SRAM is about an order of magnitude faster than HBM but many orders of magnitude smaller, and as compute has sped up relative to memory, more operations end up waiting on HBM [7]. How “operations per byte” decides whether a task waits on memory or arithmetic is covered in why AI uses GPUs.
The Memory Wall: Arithmetic Has Outrun Data Delivery
The “memory wall” is the gap between how fast processors calculate and how fast memory can feed them; William Wulf and Sally McKee coined the term in 1995 [4].
For AI, that gap has widened. Researchers at UC Berkeley and partner labs estimated that over 20 years, peak server compute grew about 3.0 times every two years, while memory (DRAM) bandwidth grew 1.6 times and the bandwidth of links between chips 1.4 times [4]. Capacity lagged too: parameter counts of large Transformer language models grew about 410 times every two years between 2018 and 2022, while a single GPU’s memory only doubled [4].
The authors conclude that memory, rather than compute, has become the primary bottleneck in AI, particularly when serving models to users [4]. That claim has limits, covered below. Chip-to-chip links lag as well, and that gap is where the networking guide begins.
Why Generating an Answer Is Memory-Bound
A chatbot reply happens in two phases. First, the model reads the whole prompt at once, using large matrix-matrix calculations that keep a GPU busy [5]. Then it generates the answer one token (a word or word fragment) at a time, each depending on the one before [5].
The second phase is where memory takes over. For every new token, the chip must load the model’s parameters and stored conversation state from HBM into its compute cores, so meeting a response-time target requires a large total memory bandwidth [1]. The authors of the vLLM serving system describe this sequential generation as memory-bound, leaving the GPU’s computing power underused [5]. Grouping many users’ requests into one batch improves throughput, but each request brings its own working memory [5]. How serving systems are planned around this is covered in how infrastructure differs for training and running AI.
Raw speed helps little when memory is the limit. Google’s 2017 analysis of its first Tensor Processing Unit (TPU), a custom AI chip, found four of six production workloads limited by memory bandwidth; raising the clock rate without improving memory made almost no difference, while faster memory would roughly triple achieved performance [8].
The KV Cache: Memory That Grows With Every Conversation
The KV cache holds intermediate results, called attention keys and values, for each layer of the model, and must stay in memory for as long as the model is generating [1]. It grows with conversation length and the number of users served at once.
For the 13-billion-parameter OPT model, the cache takes 800 KB per token, so one request can need as much as 1.6 GB [5]. Serving that model on an A100 with 40 GB of memory, about 65% held the weights and close to 30% held request state [5].
What HBM Is and How It Works
HBM is DRAM, the same basic kind of memory as a computer’s main memory, rearranged for bandwidth. Several memory dies are stacked vertically and linked by through-silicon vias (TSVs), tiny vertical connections that pass through the chips [2, 9]. The stacks share a package with the processor, joined to it through a silicon layer called an interposer, which permits a very wide connection: NVIDIA’s Tesla P100, released in 2016, used a 4,096-bit memory interface [3].
JEDEC, the standards body for memory, released the HBM4 standard in April 2025 [6]. It specifies transfer speeds up to 8 Gb/s across a 2,048-bit interface, for up to 2 TB/s from one stack, and allows stacks up to 16 dies high holding up to 64 GB [6].
Memory makers often exceed the baseline: SK hynix said in September 2025 that its HBM4, ready for mass production, ran above 10 Gb/s with more than 40% better power efficiency [9].
Reading the Memory Numbers on an AI Chip
Spec sheets list total capacity and bandwidth across all of a processor’s HBM stacks. Dated examples:
| Chip (date of figures) | HBM capacity | Peak memory bandwidth |
|---|---|---|
| NVIDIA Tesla P100 (April 2016) | 16 GB HBM2 [3] | 720 GB/s [3] |
| NVIDIA H200 (announced November 2023) | 141 GB HBM3e [10] | 4.8 TB/s [10] |
| AMD Instinct MI350 Series (June 2025, per Micron) | 288 GB HBM3E [11] | Up to 8 TB/s [11] |
Read these as ceilings, not measured performance. Capacity tells you how large a model, and how many simultaneous conversations, fit on one chip. Bandwidth tells you how fast that data can be streamed for each generated token.
Moving Less Data: Fixes Beyond Faster Memory
The other route is to move less data.
- Better memory management. The vLLM team found older serving systems used only 20.4% to 38.2% of their KV cache memory for actual token data; managing the cache in small blocks, like an operating system’s virtual memory, raised throughput 2 to 4 times at the same latency in their tests [5].
- Data-aware algorithms. FlashAttention rearranges the attention calculation to cut reads and writes between HBM and on-chip SRAM; despite doing extra arithmetic, its authors report up to a 7.6-times speedup on the attention step for GPT-2 [7].
- Smaller numbers and smaller models. Lowering numerical precision (quantization), removing redundant parameters (pruning) or using smaller models shrinks what must be stored and moved [4].
What Experts Disagree About
Confidence: Expert Debate
The memory-first view is strongest for serving: Gholami’s team and the vLLM authors both describe text generation as memory-bound [4, 5]. It is not universal. Gholami’s team notes that processing long inputs relies on matrix-matrix operations and that large-batch inference behaves differently [4]. In Google’s TPU study, image-recognition networks were limited by arithmetic rather than memory [8].
Practical Takeaways
- Check memory before peak compute. For running large language models, memory capacity and bandwidth often say more than operations per second.
- Ask what the workload is. Long prompts and big batches lean on arithmetic; interactive, token-by-token generation leans on memory [4, 5].
- Treat memory figures as vendor peaks. Spec-sheet bandwidth is a ceiling, and efficiency claims come from the companies selling the parts.
Sources
- Efficiently Scaling Transformer Inference. arXiv (Google), 2022-11-09, accessed 2026-11-09.
- HBM | DRAM | Samsung Semiconductor Global. Samsung Semiconductor, accessed 2026-11-09.
- Inside Pascal: NVIDIA's Newest Computing Platform. NVIDIA Technical Blog, 2016-04-05, accessed 2026-11-09.
- AI and Memory Wall. arXiv (University of California, Berkeley; ICSI; LBNL), 2024-03-21, accessed 2026-11-09.
- Efficient Memory Management for Large Language Model Serving with PagedAttention. ACM SOSP 2023 (arXiv version), 2023-09-12, accessed 2026-11-09.
- JEDEC Releases HBM4 Standard to Advance AI and HPC Memory. JEDEC Solid State Technology Association (release carried by HPCwire), 2025-04-16, accessed 2026-11-09.
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. arXiv (Stanford University; University at Buffalo, SUNY), 2022-06-23, accessed 2026-11-09.
- In-Datacenter Performance Analysis of a Tensor Processing Unit. ISCA 2017 (arXiv version), 2017-04-16, accessed 2026-11-09.
- SK hynix Completes World's First HBM4 Development and Readies Mass Production. SK hynix Newsroom, 2025-09-12, accessed 2026-11-09.
- NVIDIA Supercharges Hopper, the World's Leading AI Computing Platform. NVIDIA Newsroom, 2023-11-13, accessed 2026-11-09.
- Micron HBM Designed into Leading AMD AI Platform. Micron Technology (Investor Relations), 2025-06-12, accessed 2026-11-09.
