VRAM Requirements for Local LLMs: The Complete Guide (2026)

Written by Jakub Rusinowski · Last updated June 15, 2026

Last Updated: June 2026 — VRAM (Video RAM) is the single most important factor for running local LLMs. This guide explains exactly how much you need, the math behind it, and which GPUs hit the sweet s

In This Guide

Last Updated: June 2026 — VRAM (Video RAM) is the single most important factor for running local LLMs. This guide explains exactly how much you need, the math behind it, and which GPUs hit the sweet spots.

The VRAM Formula

A model's VRAM requirement is primarily determined by:

VRAM needed ≈ (Parameters × Bytes per parameter) + Context buffer (~2GB)

Common quantization formats and their bytes per parameter:

FormatBits per WeightBytes per Billion ParamsQuality vs FP16
FP16 (no quant)16-bit2.0 GB100% (baseline)
Q8_08-bit1.0 GB~99%
Q4_K_M4-bit0.5 GB~95%
Q2_K2-bit0.25 GB~85%

Example: Llama 3.1 8B at Q4_K_M = (8 × 0.5) + 2 = 6 GB VRAM

How VRAM Is Used (8B Model on 8GB GPU)

Model VRAM Requirements at a Glance

ModelSizeQ4_K_M VRAMQ8_0 VRAMBest GPU Tier
Qwen 3.5 0.8B0.8B~1 GB~2 GBAny device (integrated graphics)
Qwen 3.5 2B2B~2 GB~3 GBAny GPU (4GB+), smartphones
Gemma 4 E2B2B~3 GB~5 GBAny GPU (4GB+)
Qwen 3.5 4B4B~3.5 GB~6 GBAny GPU (4GB+)
Gemma 3 4B4B3.8 GB6 GBAny GPU (4GB+)
Phi-4 Mini3.8B4 GB5.5 GBAny GPU (4GB+)
Gemma 4 E4B4B (Efficient)~5.5 GB~9 GBRTX 4060 8GB, Mac M-series
Llama 3.1 8B8B6 GB9 GBRTX 4060 8GB
Qwen 3.5 9B9B~7 GB~11 GBRTX 4060 8GB (tight) / RTX 4060 Ti
Cogito v1 8B8B~5 GB~8 GBRTX 4060 8GB
Gemma 3 12B12B8.1 GB13 GBRTX 4060 Ti / 4070
Qwen 2.5 14B14B9.5 GB15 GBRTX 4070 12GB
Cogito v1 14B14B~9 GB~14 GBRTX 4070 12GB
Devstral-2 22B22B~13 GB~22 GBRTX 3090 / 4090
Llama 4 Scout17B active (MoE)10.5 GB18 GBRTX 4080 / 4090
Qwen 3.5 27B27B~17 GB~28 GBRTX 3090 / 4090 24GB
Gemma 3 27B27B16.5 GB28 GBRTX 4080 / 4090
Gemma 4 26B-A4B26B (4B active, MoE)~16 GB~27 GBRTX 3090 / 4090
Gemma 4 31B31B~18 GB~31 GBRTX 3090 / 4090
Nemotron Cascade 2 30B30B (Hybrid SSM)~17 GB~30 GBRTX 4060 Ti 16GB
Cogito v1 32B32B~20 GB~32 GBRTX 3090 / 4090 24GB
DeepSeek R1 32B32B20 GB33 GBRTX 4090 24GB
Llama 4 Maverick17B active (MoE)24 GBRTX 4090 / Mac M4 Max
Qwen 3.5 35B-A3B35B (3B active, MoE)~20 GB~35 GBRTX 4090 24GB
Llama 3.3 70B70B40 GB71 GBMulti-GPU or Mac Ultra
Cogito v1 70B70B~40 GB~70 GBDual RTX 3090 / Mac M4 Ultra
Nemotron Cascade 2 70B70B (Hybrid SSM)~40 GB~70 GBDual RTX 3090 / Mac M4 Ultra
Qwen 3.5 122B-A10B122B (10B active, MoE)~68 GBMulti-GPU cluster
GPT-oss 120B120B~65 GBDual RTX 3090 / A100 80GB
Devstral-2 123B123B (40B active, MoE)~68 GBDual-GPU workstation
DeepSeek V3.2 685B685B (37B active, MoE)~370 GBMulti-GPU cluster
Qwen 3.5 397B-A17B397B (17B active, MoE)~220 GBMulti-GPU cluster
GLM-5 744B744B (40B active, MoE)~400 GBDatacenter only
Kimi K2.5 1T1T+~550 GBAPI only

> Tip: MoE (Mixture-of-Experts) models like Llama 4 Scout and Qwen 3.5 35B-A3B use far less VRAM than their total parameter count suggests — only the active parameters run per token.

Apple Silicon: Unified Memory Advantage

Apple Silicon (M1/M2/M3/M4) uses unified memory shared between CPU and GPU. This means:

Ollama automatically uses 70% of unified memory as the effective VRAM budget on Apple Silicon.

What Happens When VRAM Isn't Enough?

If the model doesn't fit in VRAM, it spills over to system RAM (CPU offload):

CPU offload is viable for low-latency tasks (e.g., short questions) but frustrating for long documents.

GPU VRAM Comparison (Consumer Cards, 2026)

GPUVRAMPrice (Est.)Best Model Tier
RTX 4060 8GB8 GB~$300Llama 3.1 8B, Qwen 3.5 9B, Gemma 4 E4B
RX 7600 8GB8 GB~$250Llama 3.1 8B (AMD alternative)
RTX 4060 Ti 16GB16 GB~$450Gemma 4 26B-A4B, Nemotron Cascade 2 30B
RTX 4070 12GB12 GB~$550Gemma 3 12B, Devstral-2 22B
RTX 4070 Ti Super 16GB16 GB~$750Gemma 4 31B, Qwen 3.5 27B
RX 7900 XTX 24GB24 GB~$800DeepSeek R1 32B, Qwen 3.5 35B-A3B
RTX 4090 24GB24 GB~$1,600Cogito v1 32B, Qwen 3.5 35B-A3B, Llama 4 Maverick
RTX 5090 32GB32 GB~$2,000Qwen 3.5 27B Q8, Llama 3.3 70B (partial)
Dual RTX 309048 GB~$1,400Llama 3.3 70B, Cogito v1 70B
Dual RTX 409048 GB~$3,200Llama 3.3 70B Q4 at 55+ t/s

→ Full GPU Buyer's Guide | → Check Your Hardware

Key Takeaways (2026 Update)

Frequently Asked Questions

How much VRAM for Llama 3 70B? Llama 3 70B at Q4_K_M requires approximately 40–43 GB VRAM. Run it on two RTX 3090s/4090s (48 GB combined) or Apple Silicon with 64 GB+ unified memory.

How does context length affect VRAM usage? Context length increases VRAM via KV cache. At 4k context a 7B model uses ~0.3 GB extra; at 32k it uses ~2.5 GB extra; at 128k it uses ~10 GB extra.

What happens if a model doesn't fit in VRAM? Ollama automatically offloads layers to CPU/RAM. A 70B model on 24 GB GPU runs at 3–8 tokens/sec instead of 30+. Control this with the num_gpu parameter.

Can two GPUs be used together for local LLMs? Yes — Ollama and llama.cpp support multi-GPU via tensor parallelism. Two RTX 3090s give 48 GB VRAM, enough for Llama 3 70B at Q4. NVLink is not required.

Is Q4 quantization good enough quality? Q4_K_M is the community standard — indistinguishable from Q8 for most tasks. Perplexity increases ~0.2–0.5 points vs FP16. Q2 shows noticeable degradation on complex reasoning.

← All Guides | Check GPU Compatibility