VRAM vs. Shared RAM: LLM Model Size & Bandwidth Limits

Discrete GPUs offer dedicated VRAM (e.g., RTX 5070 with 12GB, RTX 4060 Ti with 16GB) which is crucial for loading larger LLM models, typically supporting 7B-14B models at Q4 quantization. iGPUs, sharing system RAM, face bandwidth limitations that make them struggle with models beyond 7B, despite features like AMD's VGM allowing up to 75% system RAM allocation.

The top 3

  1. Top LLM Memory Bottleneck: Bandwidth Disparity: Memory bandwidth, not compute speed, is the primary bottleneck for most LLM inference workloads. Dedicated VRAM on high-end GPUs (e.g., HBM2e on NVIDIA A100) offers up to 2.0 TB/s, enabling 40+ tokens/second, while system RAM (e.g., DDR5) provides significantly lower bandwidth, resulting in 8-15 tokens/second for the same model.
  2. Largest LLMs on Consumer Hardware: VRAM vs. Shared RAM Limits: Consumer GPUs with 24GB VRAM can typically run 14B-parameter models at good quality or up to 32B with aggressive quantization. For systems relying on shared RAM, 16GB can handle 7B models (Q4), 32GB supports 13B-14B models (Q4-Q6) or 7B (Q8), while 64GB or more is needed for 33B-70B models at practical speeds.
  3. Quantization's Memory Mastery: Shrinking LLMs for Local Inference: Quantization dramatically reduces LLM memory footprints by storing model weights in lower precision (e.g., 4-bit or 8-bit instead of 16-bit). For instance, a 7B-parameter model, typically requiring 14GB at 16-bit, can shrink to under 4GB with 4-bit quantization (a 73% reduction), making it feasible on consumer hardware with limited VRAM or shared RAM. Advanced techniques like KV cache quantization can further halve or quarter memory usage for context windows.

Sources

Open the full topic