Llama & Qwen Local GPU VRAM Calculator

Check whether your Mac Unified Memory, RTX 4090, or A100 can run Llama 8B/70B and Qwen 14B/32B/72B in Ollama or vLLM.

How It Works & Reference

For Apple Silicon Macs, macOS allows up to ~75% of total Unified Memory for Metal GPU workloads by default (e.g., ~48 GB usable on a 64 GB Mac). For NVIDIA GPUs running vLLM or Ollama, keep at least 15% free VRAM for CUDA kernels and KV cache growth.

Llama & Qwen Local Deployment Memory Table

Model SizeQ4_K_MQ8_0FP16
8B (Llama 3 / Qwen)~6 GB~10 GB~18 GB
14B (Qwen 2.5/3)~10 GB~17 GB~31 GB
32B (Qwen / Coder)~22 GB~37 GB~68 GB
70B / 72B~46 GB~78 GB~148 GB

Frequently Asked Questions

Can a 16GB GPU run Qwen 32B?

Not fully on GPU in Q4 (~19 GB weights). Either use Qwen 14B Q4 (~9 GB) for full GPU speed or offload part of 32B layers to system RAM.

How much Mac RAM is needed for Llama 70B Q4?

A 64 GB Apple Silicon Mac is the practical minimum for 70B Q4 (~40 GB weights + context); 96 GB or 128 GB leaves comfortable room for multitasking.

Q4_K_M vs Q8_0: which quantization should I pick?

Q4_K_M preserves ~97–99% of FP16 quality at 1/4 the memory and is the sweet spot for local use; pick Q8_0 when you have spare VRAM for coding/math precision.

Related Tools