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.