Running open-weights large language models (LLMs) locally with Ollama, llama.cpp, or vLLM requires selecting hardware that matches both the model's static weight memory and its dynamic attention context window.
1. Memory Bandwidth: The True Generation Speed Limiter
Unlike training where raw FP16/BF16 tensor compute (TFLOPS) dominates, single-user LLM token generation (inference) is strictly memory-bandwidth bound. For each generated token, every single parameter weight must be transferred from VRAM memory into the GPU compute cores:
Tokens_Per_Second = Memory_Bandwidth_GBs / Model_Size_GB
An RTX 4090 delivers ~1,008 GB/s memory bandwidth. Loading a 40GB model (Llama 3 70B Q4_K_M) yields: 1008 / 40 ≈ 25 tokens/second. Conversely, DDR5 system RAM provides only 60–80 GB/s, plummeting generation speed to 1.5–2 t/s when overflowing to CPU memory.
2. Apple Silicon Unified Memory vs Discrete NVIDIA GPUs
For models exceeding 70 Billion parameters, dual RTX 3090/4090 GPUs (48GB total VRAM) or Apple Silicon M2/M3/M4 Max/Ultra chips (64GB to 192GB unified RAM) offer the most cost-effective solutions for engineers and researchers.