Memory Bandwidth: The #1 CPU LLM Bottleneck

Memory bandwidth is the primary limiting factor for CPU-only LLM inference speed, with high-speed DDR5 RAM (e.g., 6000 MT/s or faster) in dual-channel configurations providing a direct and significant boost to token generation rates.

The top 3

  1. DDR5 vs. DDR4: The RAM Bandwidth Battle for Local LLMs: DDR5 RAM doubles the bandwidth of its predecessor, with speeds up to 6400MHz compared to DDR4's 3200MHz, significantly accelerating the transfer of LLM model weights to the CPU during inference.
  2. Quantization's Bandwidth Boost: Up to 4x Faster LLM Inference: Quantization reduces LLM model size by 2-4 times (e.g., from FP16 to INT8 or INT4), directly decreasing memory bandwidth requirements and enabling 2-4x faster inference speeds with lower latency on CPUs.
  3. CPU Memory Channels: The Hidden Factor for LLM Bandwidth: The number of memory channels a CPU supports (e.g., dual-channel vs. quad-channel) is a crucial determinant of its effective memory bandwidth, directly impacting how quickly model data can be accessed for LLM inference.

Sources

Open the full topic