Estimate GPU memory, System RAM offload, KV-cache, and speed before downloading open-weights models.
ollama run qwen2.5:32b
Affiliate Disclosure: Some links below are partner links. We may earn a commission at no extra cost to you.
Total VRAM = Model Weights (Parameters × Bits-per-Weight / 8) + KV-Cache (scales with context length, layers, and KV heads; DeepSeek-R1 uses Multi-Head Latent Attention which reduces KV-cache drastically) + ~0.8–1.5 GB CUDA/Metal runtime overhead.
Yes. Tools like Ollama and llama.cpp automatically split model layers between GPU VRAM and your regular System RAM. You need enough free System RAM to hold the overflow, and generation speed will drop depending on how many layers run on CPU.
By default, macOS reserves ~25% of Unified Memory for the operating system and apps, leaving roughly 75% wired for Metal GPU inference (can be adjusted slightly via sysctl).
If you only occasionally run 70B+ or 671B models, renting an RTX 4090 or A100/H100 per hour costs cents to a few dollars—far cheaper than investing €2,000–€10,000 in local multi-GPU hardware.