
Lately, I've been reading up on several AI chips outside the usual NVIDIA GPU bubble, including Google TPU, AWS Trainium, AMD MI300X, and OpenAI Jalapeño. While comparing how they work, one quiet trend kept showing up across almost all of them.
When most of us first learn about GPU architecture, we usually start with a neat textbook diagram of the memory hierarchy:
Registers sit at the top (1 cycle), followed by per-SM shared memory and L1 cache (20 to 30 cycles), a shared L2 cache (200 to 250 cycles), and finally one wide, flat box of HBM at the bottom (400 to 600+ cycles). The mental model is super clean: any compute core can read any address in that 80-192 GB HBM pool at roughly the same speed.
For a long time, that flat HBM abstraction worked well. The interesting thing I noticed while looking at newer chips is that HBM was never physically flat, and hardware is increasingly stopping the effort to pretend that it is.
What "NUMA-Aware" Means at the Server Level
To put a familiar name on this, systems engineers have dealt with NUMA (Non-Uniform Memory Access) at the server level for decades.
On a typical dual-socket server, Socket 0 and Socket 1 each have their own directly attached DRAM channels and their own PCIe lanes. Reading DRAM attached to the local socket typically takes around 70 to 100 ns on modern servers (Intel Xeon or AMD EPYC). Crossing the inter-socket link (Intel UPI or AMD Infinity Fabric) to read DRAM attached to the other socket pushes that to roughly 140 to 200+ ns, nearly a 1.5x to 2x latency jump, while also squeezing shared inter-socket bandwidth when many cores are active.
This matters directly in modern LLM serving, especially with tiered KV-cache storage (used by systems like LMCache and Mooncake). When long-context KV caches overflow GPU HBM and spill into host DRAM (or further down to NVMe SSDs), host-side NUMA affinity becomes a real bottleneck. If an accelerator sits on a PCIe slot wired to Socket 0, offloading/reloading its KV cache to/from pinned DRAM on Socket 1 would force every block across the inter-socket link, which may cut effective PCIe transfer bandwidth under multi-GPU contention.
In all of those cases, NUMA lives at the server level, across CPU sockets and PCIe slots. What struck me while reading recent chip write-ups is that the exact same pattern now lives inside a single AI accelerator package.
Why Flat HBM Is Cracking, Even Inside GPUs
Some of the largest GPU compute dies approach the reticle limit, around 800 mm². Their HBM stacks are integrated alongside the compute dies at the package level, typically on a silicon interposer.
Now compare two reads from the same compute core on the left side of the chip:
- Reading from the HBM stack right next to it means the signal travels a couple of millimeters.
- Reading from an HBM stack on the far right side means crossing centimeters of chip wiring, or even jumping across a bridge to a second die.
At modern AI bandwidths, moving bits centimeters instead of millimeters is not just slower, but also burns noticeably more energy per bit. Traditional GPUs mitigate this geography through on-chip interconnects and address mapping that distribute traffic across memory partitions, while cache hierarchies and warp schedulers help hide the latency. That abstraction makes programming much easier, but it is not free in watts or chip area.
The seams are now easy to see in the GPU world:
- NVIDIA Blackwell (B200): In standard CUDA code, a B200 still looks like one unified GPU with 192 GB of HBM3e. Physically, however, it consists of two reticle-sized dies connected by a 10 TB/s bridge. Independent microbenchmarks on B200 show two groups of SMs separated by more than 300 cycles in average L2-access latency, consistent with a die-to-die crossing penalty. To squeeze out peak efficiency, kernel and runtime design must account for this die-level locality, even though CUDA does not provide a general way to control which die executes a given piece of GPU work.
- AMD MI300X: Because AMD uses a chiplet layout with 8 compute chiplets (XCDs) and 8 HBM stacks, the geography is even more pronounced. By default, the card presents one unified 192 GB memory space (
SPX / NPS1). AMD exposes two separate partitioning controls:CPXexposes the 8 XCDs as 8 logical GPUs, whileNPS4divides HBM into 4 memory domains, each containing a pair of HBM stacks. In memory-bound workloads like LLM decode, placing compute on an XCD and allocating data in its local HBM quadrant can reduce remote-memory traffic and improve sustained bandwidth.
Custom AI Chips Expose Locality Directly
When teams design custom AI accelerators from scratch, they often skip the "flat memory tax" altogether. Since workloads like matrix multiplication and attention have very predictable access patterns, these chips expose physical locality directly to the compiler and runtime:
- Google TPU (v7 Ironwood): Looking at public benchmarks like the SemiAnalysis InferenceX Dashboard, it is easy to notice that 8 physical TPU v7 chips show up as
TP=16(16-way tensor parallelism). Each physical chip contains two chiplets, each with one TensorCore, two SparseCores, and 96 GiB of dedicated HBM. JAX exposes the two chiplets as separate devices (see also TPU v7 Documentation). - AWS Trainium (Trainium2 / Trainium3): Each chip contains 8 physical NeuronCores with on-chip scratchpad memory. AWS's Logical NeuronCore Configuration (LNC) determines how their compute and memory resources are grouped into logical NeuronCores. On Trainium2, each 24 GB HBM bank is shared by a pair of physical NeuronCore-v3s. Tensor parallelism does not just happen across chips, but also inside one chip.
- OpenAI Jalapeño: Unveiled in 2026 as a pure LLM inference chip (also tracked on InferenceX), Jalapeño pushes this sliced design even further. It divides its compute and 216 GiB of HBM4 into 64 core/memory slices. Each compute slice has direct access to its own HBM4 bank, while accesses to other slices' memory must traverse an on-chip network.
Putting these chips side by side reveals a clear spectrum from hiding locality in hardware to exposing it to software:
| Chip | How Memory Locality Is Exposed | Mental Model for Software |
|---|---|---|
| NVIDIA Blackwell (B200) | Unified logical view over a dual-die package | Mostly flat, with locality tuning for peak performance |
| AMD MI300X | Unified by default; optional compute/memory partitioning | Flat, or 4 HBM memory domains with 8 separate compute partitions |
| Google TPU (v7) | 2 TensorCores per chip paired with local HBM | Coarse-grained local domains inside one chip |
| AWS Trainium | Multiple independent NeuronCores per chip | Mini tensor-parallel cluster inside one package |
| OpenAI Jalapeño | 64 core/HBM4 slices connected by a collective network | Fine-grained sliced memory with explicit local views |
This also helped me understand why these accelerators do not just run vanilla Triton out of the box. Triton is already a nice fit conceptually because it thinks in tiles (blocks of data) rather than individual GPU threads. However, standard Triton leaves memory layouts and prefetching hidden inside the compiler. On a sliced, locality-first chip, software needs to say explicitly which slice owns which tensor and when data moves across slices. Related kernel programming interfaces include Google Pallas, AWS NKI, and OpenAI Gluon (built on top of Triton).
Closing Thought
In fact, this trend starts even closer to the compute units: on-chip SRAM is often banked or partitioned near individual cores or compute tiles. Modern GPU L2 caches are also physically distributed (Blackwell B200's L2 is partitioned across its two dies), while SRAM-heavy chips partition memory across tiles linked by an on-chip network. The same principle applies throughout the memory hierarchy: physical locality matters, even when software sees a unified address space.
Switching to one simple mental model made everything click for me: a modern AI chip is no longer a single processor talking to one flat pool of RAM. It is a small distributed system packed onto a single piece of silicon.
References & Further Reading
- Host-Side NUMA & Tiered KV-Cache Offloading: LMCache Documentation and Mooncake KV-Cache Store & Transfer Engine (NUMA-aware host DRAM offloading and PCIe affinity).
- Blackwell Microarchitecture & Cross-Die Locality: SemiAnalysis, Dissecting Nvidia Blackwell.
- AMD MI300X Compute & Memory Partitioning: AMD ROCm Blog, Deep dive into the MI300 compute and memory partition modes; AMD SMI Docs, GPU partitioning.
- Google TPU Architecture & Roofline Intuition: TPU v7 Documentation; Google DeepMind, How to Scale Your Model (The Scaling Book).
- AWS Trainium3 Architecture & Custom Inference ASIC Benchmarks: AWS Neuron Documentation; SemiAnalysis, Trainium3 InferenceX and the live InferenceX Dashboard (covering TPU7x, Trainium3, and OpenAI Jalapeño).
Comments
Join the discussionThe framing of a modern accelerator as a small distributed system is useful, and it suggests a practical question for inference serving: if locality is only partly controllable, should tensor-parallel and KV-cache placement be benchmarked per partition mode rather than assuming the flat model? For example, decode is usually bandwidth-bound, so the gap between a local HBM quadrant and a remote one could shift the best batch size or the point where tensor parallelism stops paying for its collectives. It would also be interesting to know whether the cross-die latency shows up mainly in tail latency, since a mean-latency benchmark could hide a locality penalty that only appears on a fraction of memory accesses.



