How Memory Bandwidth and VRAM Determine Local AI Performance
When running large language models locally, understanding your hardware architecture is vital. Unlike 3D rendering or rasterized video gaming where raw compute (TFLOPS) dictates framerates, autoregressive token generation is almost exclusively bound by memory bandwidth.
In standard transformer inference, generating each token requires reading the entire neural network weight matrix from VRAM into the GPU's registers and cache. As a rule of thumb:
Max Token Speed (tok/s) ≈ Memory Bandwidth (GB/s) ÷ Model File Size (GB) × Efficiency Factor (0.60–0.75)
This explains why an RTX 3060 12GB (360 GB/s bandwidth) can generate a 9GB 14B model at ~30 tok/s, whereas an RTX 4090 24GB (1,008 GB/s bandwidth) screams at over 38 tok/s on heavy 32B models!