1. Home
  2. Dwarkesh Podcast

Apr 29

How server rack cables limit AI design

Reiner Pope

133 min → 2:11

Overview

Reiner Pope breaks down the economic and engineering bottlenecks of AI inference, explaining how hardware limits, memory bandwidth, and architecture choices shape the way large language models are trained and served.

3 things to know

Pope: Grouping user requests dramatically lowers AI token costs

Reiner Pope notes that batching user requests together spreads out the time spent fetching model weights from memory, which shifts the bottleneck toward compute and dramatically lowers the cost per token.

More

Larger batch sizes amortize the time spent fetching model weights from memory, shifting the bottleneck toward compute and dramatically lowering costs.

▶ Watch at 15:15

Pope: AI hardware works best balancing compute and memory

Reiner Pope explains that AI inference speed is limited by either compute capacity or memory bandwidth, and hardware runs best when compute time and memory fetch time are roughly equal.

More

A Roofline model approximates total inference time as the maximum of compute time and memory fetch time. Optimal hardware utilization occurs when these two factors are roughly equal.

▶ Watch at 2:49

Pope says storing past tokens bottlenecks long-context AI memory

Reiner Pope says that storing past tokens in the Key-Value cache prevents recomputing whole sequences, but its memory footprint grows with sequence length and batch size until it becomes the main long-context bottleneck.

More

The Key-Value (KV) cache stores internal representations of past tokens, allowing the model to generate text without recomputing the entire sequence.

▶ Watch at 1:14:40

Also in this episode

Mixture of Experts models need huge batches, says Pope

Reiner Pope explains that Mixture of Experts models save compute time by using fewer active parameters per token, but storing all the inactive experts takes massive memory capacity and requires huge batch sizes.

More

MoE architectures reduce active parameters per token, saving compute time. This shifts the bottleneck back to memory, requiring huge batch sizes to remain efficient.

▶ Watch at 50:57

Pope says connecting GPUs across server racks slows AI

Reiner Pope points out that fast networks only work within a single server rack due to cabling and power limits, making all-to-all communication across different racks much slower and highly inefficient.

More

The physical layout of data centers limits model design. High-bandwidth "Scale Up" networks are constrained to single racks (due to cabling and power limits).

▶ Watch at 38:43

Splitting AI layers across racks cuts memory, says Pope

Reiner Pope states that dividing model layers across different GPUs or racks reduces the memory needed per rack without hurting inference latency, though it creates idle compute bubbles during training.

More

For inference, it is latency-neutral but essential for reducing the memory capacity required per rack, allowing massive models to be served. For training, it introduces idle compute "bubbles" that must be managed with complex micro-batching.

▶ Watch at 1:43

Pope says over-training smaller AI models saves money long-term

Reiner Pope explains that for models deployed at immense scale, paying slightly more upfront to over-train a smaller model on more data brings massive savings in long-term inference efficiency.

More

The theoretical "Chinchilla optimal" training duration balances compute between model size and data.

▶ Watch at 11:32

Pope says cryptography ideas cut AI training memory use

Reiner Pope describes how Reversible Networks adapt cryptographic concepts so neural networks can recompute activations during the backward training pass instead of storing them in high-bandwidth memory, saving significant memory.

More

Adapting concepts from cryptographic Feistel ciphers, RevNets allow neural networks to become invertible.

▶ Watch at 1:42:47

Quotes

“if you do not batch together many users, the cost and the economics you get is can be like a thousand times worse than if you do batch many users together.”

▶ Watch at 4:26

“Memory is getting super expensive. There's not enough memory... Hyperscalers are spending 50% of their capex this year on memory.”

▶ Watch at 1:03:32

“Cryptographic protocols are trying to take information which has structure and make it look indistinguishable from randomness. And neural networks are trying to take things which look like random... and extract higher level structure from it.”

▶ Watch at 1:44:39

17 more quotes

“the big effect is batch size, but what we're going to do now is quantify exactly what that looks like and what its implications are on latency and cost.”

▶ Watch at 1:43

“we're going to approximate, and so we're going to say that the time must be greater than or equal to a certain quantity... the max of the time it takes to do the memory fetches and the time it takes to do the compute.”

▶ Watch at 2:49

“one step of decode is actually to produce just this one additional token out here. And so what I'm going to do there is I'm going to run a full forwards pass... but then I've got this attention mechanism where this token sort of looks at all of the past tokens.”

▶ Watch at 6:36

“when you have balanced points it kind of says that you're getting it exactly right.”

▶ Watch at 11:32

“as you increase the batch size, the weight fetches become amortized over so many different batch elements that their cost goes very small and eventually the compute time ends up driving the cost.”

▶ Watch at 15:15

“If you have a reasonable amount of users, it's so unlikely that you wouldn't... it would not take you 100 milliseconds to fill up the next 2000 slots.”

▶ Watch at 21:05

“The numbers that I've remembered from some announcements of Gemini last year were in the hundreds of millions of tokens per second worldwide.”

▶ Watch at 27:31

“It's actually not amazing returns where you need to increase total parameters a hundredfold to get the equivalent of 10x as many active parameters.”

▶ Watch at 29:53

“The standard practice here and it is the best solution is to use expert parallelism. So that means different experts go on different GPUs.”

▶ Watch at 34:50

“If you think maybe one rack is too slow and I want to do two racks, then I have this challenge... I no longer have all-to-all communication between all the GPUs in two racks.”

▶ Watch at 38:43

“The reason you have this sort of hierarchy of switches rather than one big switch is to manage the cabling congestion.”

▶ Watch at 45:54

“The effect of pipelining on anything you care about like batch size or latency actually is neutral... but it does mean that you just use less memory per rack.”

▶ Watch at 50:57

“If you increase the number of pipeline stages, the memory footprint for the number of weights keeps going down... but the memory footprint for the number of activations stays constant.”

▶ Watch at 1:12:24

“Once you do enough pipelining... the KV cache becomes the dominant term.”

▶ Watch at 1:14:40

“The cost of the compute is actually constant as a function of context length. There's no dependence here on context length.”

▶ Watch at 1:21:49

“You would like to ensure that no matter what the context length is, you are still profitable.”

▶ Watch at 1:24:41

“The idea of this RevNets paper is that because it's invertible, I don't need to store this at all. I can completely rematerialize it when I'm running my backward pass... So this ends up being a memory saving.”

▶ Watch at 1:42:47

Full summary

Episode Overview

  • This episode breaks down the core economic and engineering bottlenecks of AI inference, focusing heavily on the complex interplay between compute performance, memory bandwidth, and physical hardware constraints.
  • The discussion explores how architectural decisions—such as utilizing Mixture of Experts (MoE), managing the Key-Value (KV) cache, and choosing parallelization strategies—directly impact the scalability and latency of modern Large Language Models (LLMs).
  • It highlights the strict physical limitations of data center networks, demonstrating how rack size and cabling congestion dictate model deployment and the efficiency of inter-GPU communication.
  • The episode also examines advanced memory-saving techniques and economic trade-offs, ranging from over-training models for cheaper inference to adopting novel architectures like Reversible Networks (RevNets).

Key Concepts

  • Roofline Analysis & Fundamental Bottlenecks: Inference speed is constrained by either compute capacity (FLOPS) or memory bandwidth. A Roofline model approximates total inference time as the maximum of compute time and memory fetch time. Optimal hardware utilization occurs when these two factors are roughly equal.
  • The Economic Imperative of Batching: Batching user requests is the primary mechanism for reducing the per-token cost of inference. Larger batch sizes amortize the time spent fetching model weights from memory, shifting the bottleneck toward compute and dramatically lowering costs.
  • KV Cache and Context Limits: The Key-Value (KV) cache stores internal representations of past tokens, allowing the model to generate text without recomputing the entire sequence. However, its memory footprint scales linearly with sequence length and batch size, eventually becoming the dominant bottleneck for long-context inference.
  • Sparsity Trade-offs in Mixture of Experts (MoE): MoE architectures reduce active parameters per token, saving compute time. However, they drastically increase the total parameter count, demanding massive memory capacity to store inactive experts. This shifts the bottleneck back to memory, requiring huge batch sizes to remain efficient.
  • Hardware Topology and Communication Constraints: The physical layout of data centers limits model design. High-bandwidth "Scale Up" networks are constrained to single racks (due to cabling and power limits). Communicating across different racks requires a much slower "Scale Out" network, making all-to-all communication (necessary for MoE routing) highly inefficient if it crosses rack boundaries.
  • Pipeline Parallelism for Inference vs. Training: Pipeline parallelism divides model layers across different GPUs or racks. For inference, it is latency-neutral but essential for reducing the memory capacity required per rack, allowing massive models to be served. For training, it introduces idle compute "bubbles" that must be managed with complex micro-batching.
  • Over-training for Inference Economics: The theoretical "Chinchilla optimal" training duration balances compute between model size and data. However, for models deployed at immense scale, it is economically optimal to over-train a smaller model on more data, as the slightly higher upfront training cost is dwarfed by the massive savings in long-term inference efficiency.
  • Reversible Networks (RevNets): Adapting concepts from cryptographic Feistel ciphers, RevNets allow neural networks to become invertible. During training, this allows the model to recompute activations during the backward pass rather than storing them in HBM, offering significant memory savings.

Quotes

  • At 0:01:43 - "the big effect is batch size, but what we're going to do now is quantify exactly what that looks like and what its implications are on latency and cost." - Introduces the core focus of batch size driving AI economics.
  • At 0:02:49 - "we're going to approximate, and so we're going to say that the time must be greater than or equal to a certain quantity... the max of the time it takes to do the memory fetches and the time it takes to do the compute." - Explains the fundamental roofline model.
  • At 0:04:26 - "if you do not batch together many users, the cost and the economics you get is can be like a thousand times worse than if you do batch many users together." - Highlights the extreme economic importance of batching.
  • At 0:06:36 - "one step of decode is actually to produce just this one additional token out here. And so what I'm going to do there is I'm going to run a full forwards pass... but then I've got this attention mechanism where this token sort of looks at all of the past tokens." - Explains autoregressive decoding and the KV cache.
  • At 0:11:32 - "when you have balanced points it kind of says that you're getting it exactly right." - Points out optimal hardware utilization between compute and memory.
  • At 0:15:15 - "as you increase the batch size, the weight fetches become amortized over so many different batch elements that their cost goes very small and eventually the compute time ends up driving the cost." - Explains why cost per token decreases with batch size.
  • At 0:21:05 - "If you have a reasonable amount of users, it's so unlikely that you wouldn't... it would not take you 100 milliseconds to fill up the next 2000 slots." - Clarifies latency impact of batching for popular models.
  • At 0:27:31 - "The numbers that I've remembered from some announcements of Gemini last year were in the hundreds of millions of tokens per second worldwide." - Contextualizes the immense scale of global frontier model traffic.
  • At 0:29:53 - "It's actually not amazing returns where you need to increase total parameters a hundredfold to get the equivalent of 10x as many active parameters." - Highlights the diminishing returns of high sparsity in MoE.
  • At 0:34:50 - "The standard practice here and it is the best solution is to use expert parallelism. So that means different experts go on different GPUs." - Explains the fundamental strategy for fitting large MoE models onto physical hardware.
  • At 0:38:43 - "If you think maybe one rack is too slow and I want to do two racks, then I have this challenge... I no longer have all-to-all communication between all the GPUs in two racks." - Illustrates physical network constraints on model design.
  • At 0:45:54 - "The reason you have this sort of hierarchy of switches rather than one big switch is to manage the cabling congestion." - Explains data center rack-level architecture constraints.
  • At 0:50:57 - "The effect of pipelining on anything you care about like batch size or latency actually is neutral... but it does mean that you just use less memory per rack." - Clarifies the exact utility of pipeline parallelism for serving massive models.
  • At 1:03:32 - "Memory is getting super expensive. There's not enough memory... Hyperscalers are spending 50% of their capex this year on memory." - Highlights the economic significance of memory constraints in modern AI.
  • At 1:12:24 - "If you increase the number of pipeline stages, the memory footprint for the number of weights keeps going down... but the memory footprint for the number of activations stays constant." - Demonstrates limitations of pipeline parallelism for the KV cache.
  • At 1:14:40 - "Once you do enough pipelining... the KV cache becomes the dominant term." - Shows how the memory bottleneck shifts with increasing context lengths.
  • At 1:21:49 - "The cost of the compute is actually constant as a function of context length. There's no dependence here on context length." - Highlights a counter-intuitive finding regarding compute vs. memory cost scaling.
  • At 1:24:41 - "You would like to ensure that no matter what the context length is, you are still profitable." - Explains the rationale for tiered pricing models in AI inference.
  • At 1:42:47 - "The idea of this RevNets paper is that because it's invertible, I don't need to store this at all. I can completely rematerialize it when I'm running my backward pass... So this ends up being a memory saving." - Elaborates on the memory-saving benefits of reversible networks.
  • At 1:44:39 - "Cryptographic protocols are trying to take information which has structure and make it look indistinguishable from randomness. And neural networks are trying to take things which look like random... and extract higher level structure from it." - Contrasts the goals of cryptography and neural networks regarding data structure.

Takeaways

  • Maximize inference batch sizes in production environments to drastically reduce the per-token cost of serving AI models.
  • Perform a Roofline Analysis on your specific hardware configuration to identify whether your workload is currently bottlenecked by compute (FLOPS) or memory bandwidth.
  • Restrict heavy all-to-all GPU communication to a single server rack to avoid the severe bandwidth bottlenecks of "Scale Out" networks.
  • Over-train models intended for high-volume production; spending more on compute during training yields a smaller, cheaper-to-run model over the long term.
  • Monitor KV cache memory consumption closely when offering long-context features, as this will eventually overtake model weights as the primary bottleneck.
  • Implement tiered pricing strategies for LLM APIs that reflect the exponential memory bandwidth costs associated with serving longer context windows.
  • Use pipeline parallelism primarily as a memory-saving technique to fit massive models across multiple racks, not as a strategy to improve inference latency.
  • Distribute different Mixture of Experts (MoE) modules onto different GPUs (expert parallelism) to optimize hardware utilization and memory distribution.
  • Balance the sparsity of MoE models carefully; pushing for too much sparsity demands massive memory capacity that degrades overall cost-efficiency.
  • Employ micro-batching during distributed model training to mitigate the idle compute "bubbles" introduced by pipeline parallelism.
  • Explore Reversible Networks (RevNets) or similar architectural innovations during training to recompute activations dynamically and reduce heavy memory requirements.
  • Consolidate high-traffic AI services to ensure a constant stream of concurrent requests, effectively masking the latency overhead of aggressive batching.

Watch the full episode 2 hr 13 min

Read along with the audio summary

Failing to group AI user requests together can make your operating costs a thousand times worse. This episode, which came out on April 29, 2026, features a deep technical breakdown of the core economic and engineering bottlenecks of artificial intelligence inference. Listen on to learn how compute limits, memory bandwidth, and physical data center wiring dictate the true cost of running large language models.

Find the hidden bottleneck slowing down your AI hardware. Every time a model generates a response, known as inference, its speed is trapped by either its raw calculation capacity, measured in floating point operations per second, or its memory bandwidth. A Roofline model approximates total inference time as whichever of those two tasks takes longer, much like a chef who is only as fast as either their chopping speed or the time it takes to fetch ingredients from the pantry.

Once you see that fetching model weights from memory is the main drag, you can slash the cost of every word your model generates. Grouping user requests together, known as batching, is the primary mechanism for reducing the per-token cost of inference. When you increase the batch size, you spread the time spent fetching model weights across many users, shifting the bottleneck toward compute and dramatically lowering costs, and a popular service rarely even needs a hundred milliseconds to fill two thousand user slots.

Watch out for the memory trap hiding inside long conversations. To generate a single new word, or token, a model looks back at all past tokens by storing their internal representations in a Key-Value cache, or KV cache, so it does not have to recompute the entire sequence. While the raw compute cost stays constant regardless of context length, this cache's memory footprint grows linearly with sequence length and batch size, eventually overtaking the model weights as the dominant bottleneck.

Balance your model's active brainpower against its total storage needs. Mixture of Experts architectures, or MoE, save compute time by using only a fraction of their parameters for each token, which is called sparsity. However, you might need to increase total parameters a hundredfold just to get the equivalent of ten times as many active parameters, demanding massive memory capacity to store the inactive experts and requiring huge batch sizes to stay efficient.

To make that expert distribution work, you have to design your models around the physical wiring of your data center. High-bandwidth Scale Up networks are constrained to a single server rack because of power limits and cabling congestion. If a Mixture of Experts model has to route data across two different racks, it hits a much slower Scale Out network where all-to-all communication between graphics processors is lost.

When a model still cannot fit on one rack, split it across multiple racks to save memory without slowing down responses. Pipeline parallelism divides a model's layers across different racks, acting like an assembly line. For inference, this is completely neutral for latency and batch size, whereas during training it creates idle compute bubbles that must be managed with micro-batching.

Spend more on training upfront to save a fortune in production. A theoretical rule called Chinchilla optimal balances training compute between model size and training data. Yet when a frontier model serves hundreds of millions of tokens per second worldwide, it is far more economical to over-train a smaller model on extra data, because long-term inference savings dwarf the higher upfront training cost.

Borrow a trick from cryptography to free up scarce training memory. Hyperscalers are spending fifty percent of their capital expenditures this year on memory alone. Adapting concepts from cryptographic Feistel ciphers, Reversible Networks, or RevNets, make neural networks invertible so they can recalculate activations dynamically during the backward training pass instead of storing them in high-bandwidth memory.

Running AI profitably at scale means treating memory bandwidth and physical rack limits as first-order economic constraints. If you do not batch together many users, the cost and the economics you get can be like a thousand times worse.

More from Dwarkesh Podcast

Related Episodes