Beyond Compute: The True LLM Inference Bottleneck

SqueezeLLM's record-setting performance for LLaMA 3-bit inference highlights that the main bottleneck for generative LLM inference, especially for single batch, is memory bandwidth, not computational power.

The top 3

  1. LLM Inference's #1 Bottleneck: Memory Bandwidth: For LLM inference, especially during autoregressive decoding, performance is primarily limited by how quickly the system can transfer model weights and KV cache data from memory to the GPU's processing units, not by raw computational power (FLOPs). GPUs often spend more time waiting for data than performing calculations, making it a memory-bound workload.
  2. Model Size: The Ultimate LLM Memory Constraint: Even with advanced quantization (e.g., 4-bit), the sheer number of parameters in large language models (e.g., LLaMA-70B requires over 40GB of memory) dictates the minimum memory footprint, often exceeding single consumer GPU capacities and necessitating offloading or multi-GPU setups.
  3. Data Transfer Latency: Beyond Memory Bandwidth: The time taken for frequent data movement – specifically loading model weights from storage, transferring activations between CPU and GPU (e.g., over PCIe), or within different levels of GPU memory hierarchy – introduces significant latency overhead, especially in dynamic or sparse inference scenarios.

Sources

Open the full topic