Memory Bandwidth: SqueezeLLM's Speed Catalyst

SqueezeLLM's significant inference speed gains are primarily attributed to its optimization for memory bandwidth, which is identified as the main bottleneck for generative LLM inference. Its dense-and-sparse quantization and sensitivity-based non-uniform quantization effectively reduce memory traffic.

The top 3

  1. LLM Inference: Memory Bandwidth's Dominant Bottleneck: For generative LLM inference, especially single-batch decoding, memory bandwidth is often the primary bottleneck, surpassing compute. This is because loading large model parameters and Key-Value (KV) cache data from main memory to faster on-chip caches takes more time than the actual computations.
  2. HBM vs. GDDR: Top Memory Bandwidth for LLMs: High Bandwidth Memory (HBM) consistently outperforms GDDR in memory bandwidth, making it ideal for LLM workloads. For example, NVIDIA's H200 GPU achieves 4.8 TB/s with HBM3e, while the H100 reaches 3.35 TB/s with HBM3. In contrast, GDDR6, found in many consumer GPUs, typically offers up to 960 GB/s (e.g., RTX 6000 Ada), highlighting HBM's superior data transfer rates crucial for large models.
  3. Quantization's Top 3 Memory Bandwidth Reductions: Quantization drastically reduces memory bandwidth demands: 8-bit quantization can halve memory usage, 4-bit can cut it by up to 75% compared to FP16, and some 2-bit methods can achieve even greater compression, significantly boosting inference speed.

Sources

Open the full topic