Best Local LLMs for 12GB VRAM
12GB VRAM comfortably fits high-quality 7Bโ14B models (DeepSeek-R1 Distill 14B, Gemma 4 E4B, Llama 3.1 8B, Phi-4 Mini) at Q4_K_M or Q6_K with up to 32K context.
โ ๏ธ Partial Offload โ Slow CPU/RAM Spillover
OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 ollama run deepseek-r1:14bโ ๏ธ Out of VRAM? Don't downgrade model quality.
Out of VRAMSpin up an on-demand cloud GPU instance in 60 seconds with pre-installed Ollama and vLLM. (DeepSeek-R1 Distill Qwen 14B @ 13.16 GB VRAM)
Quantization Precision Matrix
32K ctx โข KV: Q8_0| Quantization | Weights | KV Cache | Total VRAM | Est. Speed | Fit Status |
|---|---|---|---|---|---|
| FP1616 bpw | 29.6 GB | 3.22 GB | 34.61 GB (288%) | 0 t/s | OOM |
| Q8_08.5 bpw | 15.69 GB | 3.22 GB | 20.21 GB (168%) | 0 t/s | OOM |
| Q6_K6.56 bpw | 12.14 GB | 3.22 GB | 16.53 GB (138%) | 0 t/s | OOM |
| Q5_K_M5.68 bpw | 10.51 GB | 3.22 GB | 14.85 GB (124%) | ~5 t/s | PARTIAL |
| Q4_K_M4.8 bpw | 8.88 GB | 3.22 GB | 13.16 GB (110%) | ~5 t/s | PARTIAL |
| FP44.25 bpw | 7.84 GB | 3.22 GB | 12.08 GB (101%) | ~6 t/s | PARTIAL |
| IQ3_XS3.3 bpw | 6.07 GB | 3.22 GB | 10.25 GB (85%) | ~34 t/s | FITS |
Local Hardware Configurations & Pricing
High-bandwidth VRAM specs and current market pricesNVIDIA GeForce RTX 3060 (12GB)
Entry-level budget card for 7Bโ14B Q4 models
NVIDIA GeForce RTX 5090 (32GB GDDR7)
Maximum tokens/sec on 27Bโ35B models & Blackwell FP4 quantization
NVIDIA GeForce RTX 4090 (24GB GDDR6X)
The 24GB CUDA enthusiast standard for 14Bโ32B Q4_K_M models
2x NVIDIA RTX 3090 Dual Rig (48GB Total VRAM)
Best price-to-VRAM homelab rig for 70B Q4_K_M & Qwen 3.8 27B Q8
Export Full Architecture & Infrastructure Spec
Get an executive-ready PDF report with exact memory math, hardware benchmarks, and cost comparisons.
All Open Models Evaluated on 12GB VRAM
Standard Q4_K_M quantization with 32K context window and Q8_0 KV cache
| Model | Architecture | VRAM Required | Headroom | Est. Decode Speed | Compatibility | Ollama Command |
|---|---|---|---|---|---|---|
| Microsoft Phi-4 Mini 3.8B Ultra-Light Laptop & CPU/Integrated GPU Inference | 3.8B Dense | 3.92 GB | +8.1 GB free | ~94 t/s | FITS | ollama run phi4-mini:3.8b |
| Google Gemma 4 E4B (Edge 4B) 8GB Laptop GPUs, Local Autocomplete & Fast Summarization | 4.1B Dense | 4.24 GB | +7.8 GB free | ~87 t/s | FITS | ollama run gemma4:4b |
| Meta Llama 3.1 8B Instruct Fast 8GBโ12GB GPU Chat, Classification & Local Agents | 8B Dense | 7.87 GB | +4.1 GB free | ~44 t/s | FITS | ollama run llama3.1:8b |
| DeepSeek-R1 Distill Qwen 14B Mainstream 12GBโ16GB Gaming GPUs Reasoning Assistant | 14.8B Dense | 13.16 GB | -1.2 GB short | ~5 t/s | PARTIAL | Deploy on Cloud GPU โ |
| Qwen 3.8 27B Instruct Agentic Coding, Terminal Workflows & Multi-File Refactoring | 27.2B Dense | 21.93 GB | -9.9 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| Qwen 3.6 35B-A3B MoE Ultra-Fast 100+ tok/s Coding & Local RAG on 24GB GPUs | 35B MoE | 24.1 GB | -12.1 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| DeepSeek-V4.1-Flash (552B Engram MoE) Frontier SWE Coding (77.0 DeepSWE), 1M Context & 3D/Game Synthesis | 552B MoE | 345.59 GB | -333.6 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| Meta Muse Spark Open (816B-A42B MoE) Frontier Multi-Step Agentic Reasoning & Native Multimodal | 816B MoE | 512.86 GB | -500.9 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| Google Gemma 4 26B MoE High-Speed Consumer GPU & Apple Silicon Daily Assistant | 26.4B MoE | 20.23 GB | -8.2 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| DeepSeek-R1 Distill Qwen 32B Local Step-by-Step Math, Logic & Code Verification | 32.8B Dense | 25.41 GB | -13.4 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| Meta Llama 4 Scout (109B-A17B MoE) Long-Context Codebase Indexing & Multi-Document Analysis | 109B MoE | 71.66 GB | -59.7 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
| Meta Llama 3.3 70B Instruct Standard 70B Dense Enterprise Baseline for 48GBโ64GB Rigs | 70.6B Dense | 49.96 GB | -38 GB short | 0 (OOM) | OOM | Deploy on Cloud GPU โ |
Need to Run Models Larger than 12GB?
If your preferred model exceeds your local 12GB GPU, you can rent high-memory on-demand cloud GPUs with zero upfront hardware costs:
Rent RTX 4090 / RTX 5090
Boot an on-demand RTX 4090 (24GB) from $0.59/hr or RTX 5090 (32GB) from $0.89/hr on RunPod.
Rent Dual 3090 or H100
Dual 3090 (48GB) from $0.78/hr on Vast.ai, or H100 (80GB HBM3) from $2.39/hr for 70B+ models.