Memory and Interconnect for AI

HBM — High Bandwidth Memory

The standard memory for data center GPUs. Stacked vertically (stacking), connected via interposer, it offers much higher bandwidth than GDDR.

HBM Evolution

Generation Launch Bandwidth/stack Capacity/stack Use
HBM2 2016 256 GB/s 4–8 GB V100, first AI GPUs
HBM2e 2020 460 GB/s 16 GB A100, MI100
HBM3 2023 819 GB/s 24 GB H100, MI300X
HBM3e 2024 1,228 GB/s 36 GB H200, B100/B200, MI355X
HBM4 2026 ~2,400 GB/s 48+ GB B300, MI450
HBM4e 2027 ~3,500 GB/s 64+ GB Forecast for the next generation

Why bandwidth matters for LLMs:

  • LLM inference is memory-bandwidth bound, not compute bound
  • Each generated token needs to load all the weights of the model from memory
  • GPT-3 175B: 350 GB of weights → needs 350 GBs for 1 tokensecond
  • H100 has 3.35 TBs → allows ~10 tokenssecond in a 2-GPU split

GDDR — Graphics DDR

Memory of consumer GPUs (GeForce RTX, Radeon RX) and some workstation ones.

Generation Launch Max bandwidth Typical use
GDDR5X 2016 448 GB/s GTX 10-series
GDDR6 2018 672 GB/s RTX 30-series
GDDR6X 2020 1,008 GB/s RTX 3090, RTX 4090
GDDR7 2025 1,792 GB/s RTX 5090, RTX 5080

Disadvantage vs HBM: Lower total bandwidth (single die vs multi-stack); more physical distance → higher latency. Advantage: Much cheaper; more capacity per $.


Version GPU Generation Bidirectional Bandwidth/link Max links Total Bidirectional
NVLink 2.0 Volta (V100) 50 GB/s 6 300 GB/s
NVLink 3.0 Ampere (A100) 50 GB/s 12 600 GB/s
NVLink 4.0 Hopper (H100) 56.25 GB/s 18 900 GB/s
NVLink 5.0 Blackwell (B100/B200) 100 GB/s 18 1.8 TB/s

Importance: With NVLink, multiple GPUs act as one larger GPU — model parallelism without PCIe bottleneck.


NVSwitch — Switch for GPU Networks

  • Function: All-to-all NVLink among many GPUs (without point-to-point topology restriction)
  • NVSwitch 3.0 (Hopper): 8 GPUs full-bandwidth → 900 GB/s all-to-all
  • NVSwitch 4.0 (Blackwell): 72 GPUs (GB200 NVL72) with 1.8 TB/s all-to-all
  • Analogy: If NVLink is the "highway", NVSwitch is the "toll plaza" that connects them all

InfiniBand — High Performance Network for Clusters

HDR InfiniBand

  • Bandwidth: 200 Gb/s per port
  • Latency: ~600 ns
  • Adoption: Modern H100/A100 clusters

NDR InfiniBand (2022)

  • Bandwidth: 400 Gb/s per port
  • Latency: ~500 ns
  • Switches: NVIDIA Quantum-2 (64 ports)
  • Adoption: Standard for new H100 clusters

XDR InfiniBand (2025)

  • Bandwidth: 800 Gb/s per port
  • Adoption: GB200/B200 clusters

Use: Communication between nodes in distributed training (all-reduce, gradient sync)


RoCE — RDMA over Converged Ethernet

  • Alternative: Cheaper InfiniBand using Ethernet
  • RoCEv2: Over UDP; widely supported
  • Advantage: Existing Ethernet infrastructure; cheaper
  • Disadvantage: Higher latency than InfiniBand; more sensitive to congestion
  • Adoption: AWS EFA (Elastic Fabric Adapter), Azure RDMA, Google Jupiter

PCIe — CPU-GPU and GPU-GPU Consumer

Version Bandwidth/lane x16 Bandwidth (bidirectional)
PCIe 4.0 16 GT/s 64 GB/s
PCIe 5.0 32 GT/s 128 GB/s
PCIe 6.0 64 GT/s 256 GB/s

Limitation for multi-GPU: Without NVLink, two RTX 4090s communicate via PCIe 4.0 x16 = 64 GBs — vs NVLink 4.0 = 900 GBs (14× slower).


  • Bandwidth: 900 GB/s per CPU-GPU pair (bidirectional)
  • Coherence: CPU and GPU share a unified address space
  • Impact: Eliminates CPU↔GPU data transfer; zero-copy
  • Use: GB200 NVL72 — Grace CPU + B200 GPU in the same package

  • Over PCIe 5.0/6.0: Protocol for coherent memory between CPU and accelerators
  • CXL 3.0: Allows a shared memory pool across multiple nodes
  • Relevance: Allows adding external HBM to the server without a GPU
  • Timeline: In adoption in enterprise servers 2025–2027

CPU Memory — DRAM

Type Bandwidth Typical capacity Use in AI
DDR4-3200 51.2 GB/s 256–512 GB Standard 2020–2023
DDR5-4800 76.8 GB/s 512 GB–1 TB Standard 2023+
DDR5-6400 102.4 GB/s 512 GB–2 TB High-end 2024+
LPDDR5X 68.3 GB/s 64 GB Laptops (M3 Max, etc)

For ZeRO-Infinity: CPU DRAM as an extension of VRAM — bandwidth is the bottleneck (PCIe 5.0 limits it to 128 GB/s)


NVMe — Storage for AI

  • ZeRO-Infinity: Offload of optimizer states to NVMe
  • PCIe 5.0 NVMe: 12–14 GB/s read (Samsung 990 Pro, SK Hynix Platinum P41)
  • Relevance: Allows training models larger than the available DRAM
  • Limitation: 14 GBs vs 100+ GBs of DRAM = 7× slower; only for rarely accessed parameters

Typical Cluster Topology

[Node A]                        [Node B]
GPU0─┐                          GPU0─┐
GPU1─┤ NVSwitch ─── NVLink ─── NVSwitch ─┤GPU1
GPU2─┤   (NVLink 4.0)              │     ├GPU2
GPU3─┘                              └────┘GPU3
 │                                   │
 CPU (PCIe 5.0)              CPU (PCIe 5.0)
 │                                   │
 └──────── InfiniBand NDR ───────────┘
           (400 Gb/s between nodes)

Flash Storage for Datasets

  • LLM training: A 15T-token dataset (FineWeb) ≈ 15 TB raw
  • Required throughput: 5–10 GB/s to keep the GPU from waiting on data
  • Solution: RAID of PCIe 5.0 NVMe or object storage with prefetching (datatrove)
  • Cloud: S3GCS with asynchronous dataloader; datasets in sharded ArrowParquet format