Memory Bandwidth: The Unsung Speed Booster
LLM inference, particularly the token generation phase, is primarily memory bandwidth-bound, not compute-bound. High memory bandwidth, such as that provided by GDDR6X for GPUs or DDR5 for CPUs, is crucial because it dictates the speed at which billions of model parameters can be transferred from VRAM to the processing cores. For example, the NVIDIA H200's 4.8 TB/s bandwidth, compared to the H100's 3.35 TB/s, directly leads to approximately 40% faster token generation in bandwidth-constrained workloads.
The top 3
- HBM vs. DDR5: AI's Unrivaled Bandwidth Leader: High Bandwidth Memory (HBM) delivers terabytes per second (TB/s) bandwidth, making it 20-100 times faster than DDR5's gigabytes per second (GB/s) for AI accelerators due to its 3D stacked architecture and wide interfaces, despite its higher cost.
- GPUs' 5-10x Memory Bandwidth Edge Over CPUs: GPUs typically offer 5 to 10 times higher memory bandwidth (1,000 to 3,500 GB/s for high-end data center GPUs) compared to CPUs (100 to 300 GB/s), making them essential for the massive parallel data movement required by LLM inference.
- Latency vs. Bandwidth: LLM Performance Priorities: For large LLM inference, memory bandwidth is often more critical than latency, especially for the prefill phase and loading billions of model parameters, while latency can be more impactful during the sequential token generation (decode phase) or for smaller models.
Sources
Open the full topic