Compare Hardware

RAM vs. VRAM for Local AI: Bandwidth Bottlenecks & Speed Comparison

When self-hosting open-weight models like Llama 4, Llama 3.3, and DeepSeek, deciding between system RAM and GPU VRAM determines your token generation speed, latency, and hardware budget. System RAM is cheap and plentiful, while GPU VRAM offers massive bandwidth. This guide analyzes memory bandwidth bottlenecks, tokens-per-second benchmarks, and hybrid offloading strategies.

Run the Calculations Locally

Test your operational cost parameters on the interactive dashboard.

Launch the LLM RAM Calculator

1. Memory Bandwidth: The Fundamental Generation Bottleneck

During LLM text generation (the decode phase), the model must read all active parameter weights from memory for every single token produced. For a 70-billion parameter model quantized at 4 bits (~35GB to 40GB in size), generating 1 token requires transferring ~35GB of data through the memory bus. Therefore: Tokens per Second ≈ Memory Bandwidth (GB/s) / Model Size (GB). Memory bandwidth — not raw compute teraflops — is the primary bottleneck.

2. Bandwidth Comparison: DDR5 vs. GDDR6X/GDDR7 vs. Unified Memory vs. HBM

Memory technologies deliver vastly different throughput:

  • Dual-Channel DDR5 (Desktop): 60 - 80 GB/s
  • Quad-Channel DDR5 (Workstation / Threadripper): 150 - 250 GB/s
  • Apple M4 Max / Ultra Unified Memory: 400 - 800+ GB/s
  • NVIDIA RTX 4090 / 5080 (GDDR6X/GDDR7): 1,000 - 1,150 GB/s
  • NVIDIA RTX 5090 (32GB GDDR7): ~1,790 GB/s
  • Enterprise H100 / H200 (HBM3/HBM3e): 3,350 - 4,800 GB/s

3. Real-World Token Generation Speeds (Tokens/sec)

Running Llama 3.3 70B (Q4 ~38GB):

  • Pure System RAM (DDR5 6400MHz): 1.5 - 2.5 tokens/sec (too slow for fluid conversation)
  • Apple M4 Ultra (128GB Unified Memory): 18 - 25 tokens/sec (smooth reading speed)
  • Dual RTX 3090/4090 (48GB VRAM total): 25 - 35 tokens/sec (fast, production grade)
  • Single RTX 5090 (32GB) + CPU Offload: 12 - 18 tokens/sec

4. Hybrid Offloading: Balancing RAM and VRAM

Inference engines like llama.cpp and Ollama allow splitting layers between VRAM and system RAM. If a 70B model requires 40GB but you only have a 24GB or 32GB GPU, you can offload 60% of the layers to VRAM and the remainder to system RAM. While faster than pure CPU inference, overall speed is dragged down by the slower system RAM bus.

Frequently Asked Questions

Can I run large models with only system RAM?

Yes, using CPU inference in llama.cpp or Ollama. An 8B model runs at 10-15 tokens/sec on modern DDR5 RAM, which is usable. However, a 70B model crawls at 1-3 tokens/sec on system RAM, making GPU VRAM essential.

Why is Apple Silicon so popular for local AI?

Apple M-series chips (Max and Ultra) share up to 128GB or 192GB of unified memory between CPU and GPU with 400-800 GB/s bandwidth. This allows loading 70B and 405B models into unified VRAM for a fraction of the cost of multiple NVIDIA enterprise GPUs.

How much VRAM does an RTX 5090 have?

The NVIDIA GeForce RTX 5090 features 32GB of GDDR7 VRAM with ~1,790 GB/s memory bandwidth, allowing it to run quantized 70B models with partial offloading or 32B models fully in VRAM at high speeds.