Ollama VRAM requirements: how much GPU memory each model needs
How much VRAM a model needs in Ollama, tag by tag. Each row uses the real model file size, quantization and context window from Ollama's registry for 39 popular tags, an estimate of total memory at 4k and 32k context, and the cheapest GPU and Mac we track that runs it fully on the GPU.
- Tags
- 39 Ollama library defaults
- Default quant
- Q4_K_M for most tags
- File sizes
- 2026-11-12 from registry.ollama.ai
Short answer: a Q4 Ollama model needs about its model file size plus 15% plus 1 GB. That means ~6.7 GB for an 8B tag, ~16.9 GB for gpt-oss:20b, ~24.2 GB for a 32B tag and ~49.9 GB for a 70B tag at Ollama's default 4k context. More context needs more memory.
How we estimate it
VRAM by Ollama tag
| Ollama tag | Model file | Est. memory, 4k ctx | Est. memory, 32k ctx | Smallest card | Cheapest GPU | Cheapest Mac / mini PC |
|---|---|---|---|---|---|---|
llama3.2:1bLlama-3.2-1B-Instruct | 1.3 GB Q8_0 | 2.5 GB | 3.5 GB | 4 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
qwen3:1.7bQwen3-1.7B | 1.4 GB Q4_K_M | 2.6 GB | 5.9 GB | 4 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
llama3.2:3bLlama-3.2-3B-Instruct | 2.0 GB Q4_K_M | 3.3 GB | 6.6 GB | 4 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
phi4-mini:3.8bPhi-4-mini-instruct | 2.5 GB Q4_K_M | 3.9 GB | 7.6 GB | 6 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
qwen3:4bQwen3-4B | 2.5 GB Q4_K_M | 3.9 GB | 8.1 GB | 6 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
gemma3:4bgemma-3-4b-it | 2.5 GB Q4_K_M | 3.9 GB | — | 6 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
gemma4:e2bGemma 4 E2B | 3.5 GB Q4_K_M | 5.0 GB | — | 6 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
mistral:7bMistral-7B-Instruct-v0.3 | 4.4 GB Q4_K_M | 6.0 GB | 9.8 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
deepseek-r1:7bDeepSeek-R1-Distill-Qwen-7B | 4.7 GB Q4_K_M | 6.4 GB | 8.0 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
qwen2.5-coder:7bQwen2.5-Coder-7B-Instruct | 4.7 GB Q4_K_M | 6.4 GB | 8.0 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
llama3.1:8bLlama-3.1-8B-Instruct | 4.9 GB Q4_K_M | 6.7 GB | 10.4 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
granite3.3:8bgranite-3.3-8b-instruct | 4.9 GB Q4_K_M | 6.7 GB | 11.4 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
qwen3:8bQwen3-8B | 5.2 GB Q4_K_M | 7.0 GB | 11.2 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
deepseek-r1:8bDeepSeek-R1-0528-Qwen3-8B | 5.2 GB Q4_K_M | 7.0 GB | 11.2 GB | 8 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
gemma4:e4bGemma 4 E4B | 5.5 GB Q4_K_M | 7.3 GB | — | 12 GB | Intel Arc B570$219 list | Mac mini M6 16GB$899 list |
mistral-nemo:12bMistral-Nemo-Instruct-2407 | 7.1 GB Q4_0 | 9.1 GB | 13.8 GB | 12 GB | Intel Arc B580$249 list | Mac mini M6 16GB$899 list |
gemma3:12bgemma-3-12b-it | 7.3 GB Q4_K_M | 9.4 GB | — | 12 GB | Intel Arc B580$249 list | Mac mini M6 16GB$899 list |
gemma4:12bGemma 4 12B | 7.4 GB Q4_K_M | 9.5 GB | — | 12 GB | Intel Arc B580$249 list | Mac mini M6 16GB$899 list |
olmo2:13bOLMo-2-1124-13B-Instruct | 8.3 GB Q4_K_M | 10.6 GB | max 4k ctx | 12 GB | Intel Arc B580$249 list | Mac mini M6 16GB$899 list |
deepseek-r1:14bDeepSeek-R1-Distill-Qwen-14B | 9.0 GB Q4_K_M | 11.3 GB | 17.0 GB | 16 GB | Radeon RX 7600 XT$329 list | Mac mini M6 24GB$1,299 list |
qwen2.5-coder:14bQwen2.5-Coder-14B-Instruct | 9.0 GB Q4_K_M | 11.3 GB | 17.0 GB | 16 GB | Radeon RX 7600 XT$329 list | Mac mini M6 24GB$1,299 list |
phi4:14bphi-4 | 9.1 GB Q4_K_M | 11.4 GB | max 16k ctx | 16 GB | Radeon RX 7600 XT$329 list | Mac mini M6 24GB$1,299 list |
qwen3:14bQwen3-14B | 9.3 GB Q4_K_M | 11.7 GB | 16.4 GB | 16 GB | Radeon RX 7600 XT$329 list | Mac mini M6 24GB$1,299 list |
gpt-oss:20bgpt-oss-20b | 13.8 GB MXFP4 | 16.9 GB | 17.6 GB | 24 GB | Radeon RX 7900 XT$899 list | Mac mini M6 32GB$1,799 list |
mistral-small3.2:24bMistral-Small-3.2-24B-Instruct-2506 | 15.2 GB Q4_K_M | 18.5 GB | 23.2 GB | 24 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M6 32GB$1,799 list |
gemma3:27bgemma-3-27b-it | 16.6 GB Q4_K_M | 20.0 GB | — | 24 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M6 32GB$1,799 list |
gemma4:26bGemma 4 26B A4B | 17.1 GB Q4_K_M | 20.6 GB | — | 24 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M6 32GB$1,799 list |
qwen3:30bQwen3-30B-A3B | 18.6 GB Q4_K_M | 22.3 GB | 25.2 GB | 32 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M5 Pro 64GB$3,199 list |
qwen3-coder:30bQwen3-Coder-30B-A3B-Instruct | 18.6 GB Q4_K_M | 22.3 GB | 25.2 GB | 32 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M5 Pro 64GB$3,199 list |
gemma4:31bGemma 4 31B | 18.7 GB Q4_K_M | 22.5 GB | — | 32 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M5 Pro 64GB$3,199 list |
deepseek-r1:32bDeepSeek-R1-Distill-Qwen-32B | 19.9 GB Q4_K_M | 23.8 GB | 31.3 GB | 32 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M5 Pro 64GB$3,199 list |
qwen2.5-coder:32bQwen2.5-Coder-32B-Instruct | 19.9 GB Q4_K_M | 23.8 GB | 31.3 GB | 32 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M5 Pro 64GB$3,199 list |
qwen3:32bQwen3-32B | 20.2 GB Q4_K_M | 24.2 GB | 31.7 GB | 32 GB | Intel Arc Pro B70 32GB$949 list | Mac mini M5 Pro 64GB$3,199 list |
llama3.3:70bLlama-3.3-70B-Instruct | 42.5 GB Q4_K_M | 49.9 GB | 59.3 GB | 64 GB | NVIDIA RTX Pro 6000 Blackwell 96GB$8,565 list | Framework Desktop (Ryzen AI Max+ 395) 128GB$3,449 list |
deepseek-r1:70bDeepSeek-R1-Distill-Llama-70B | 42.5 GB Q4_K_M | 49.9 GB | 59.3 GB | 64 GB | NVIDIA RTX Pro 6000 Blackwell 96GB$8,565 list | Framework Desktop (Ryzen AI Max+ 395) 128GB$3,449 list |
qwen2.5:72bQwen2.5-72B-Instruct | 47.4 GB Q4_K_M | 55.5 GB | 64.9 GB | 64 GB | NVIDIA RTX Pro 6000 Blackwell 96GB$8,565 list | Framework Desktop (Ryzen AI Max+ 395) 128GB$3,449 list |
gpt-oss:120bgpt-oss-120b | 65.4 GB MXFP4 | 76.2 GB | 77.2 GB | 96 GB | NVIDIA RTX Pro 6000 Blackwell 96GB$8,565 list | Framework Desktop (Ryzen AI Max+ 395) 128GB$3,449 list |
qwen3:235bQwen3-235B-A22B | 142.2 GB Q4_K_M | 164.5 GB | 170.0 GB | 192 GB | None we track | Mac Studio M5 Ultra 256GB$9,499 list |
deepseek-r1:671bDeepSeek-R1-0528 | 404.4 GB Q4_K_M | 466.1 GB | — | 512 GB+ | None we track | None we track |
Which Ollama models fit your GPU
8 GB VRAM
14 of these 39 tags fit. Largest: qwen3:8b (~7.0 GB), deepseek-r1:8b (~7.0 GB), granite3.3:8b (~6.7 GB), llama3.1:8b (~6.7 GB), deepseek-r1:7b (~6.4 GB), qwen2.5-coder:7b (~6.4 GB).
12 GB VRAM
19 of these 39 tags fit. Largest: olmo2:13b (~10.6 GB), gemma4:12b (~9.5 GB), gemma3:12b (~9.4 GB), mistral-nemo:12b (~9.1 GB), gemma4:e4b (~7.3 GB), qwen3:8b (~7.0 GB).
16 GB VRAM
23 of these 39 tags fit. Largest: qwen3:14b (~11.7 GB), phi4:14b (~11.4 GB), deepseek-r1:14b (~11.3 GB), qwen2.5-coder:14b (~11.3 GB), olmo2:13b (~10.6 GB), gemma4:12b (~9.5 GB).
24 GB VRAM
27 of these 39 tags fit. Largest: gemma4:26b (~20.6 GB), gemma3:27b (~20.0 GB), mistral-small3.2:24b (~18.5 GB), gpt-oss:20b (~16.9 GB, ✓32k), qwen3:14b (~11.7 GB, ✓32k), phi4:14b (~11.4 GB). Ollama defaults to 32k context on 24–48 GB cards, so ✓32k marks tags that still fit there.
32 GB VRAM
33 of these 39 tags fit. Largest: qwen3:32b (~24.2 GB), deepseek-r1:32b (~23.8 GB), qwen2.5-coder:32b (~23.8 GB), gemma4:31b (~22.5 GB), qwen3:30b (~22.3 GB, ✓32k), qwen3-coder:30b (~22.3 GB, ✓32k). Ollama defaults to 32k context on 24–48 GB cards, so ✓32k marks tags that still fit there.
48 GB VRAM
33 of these 39 tags fit. Largest: qwen3:32b (~24.2 GB), deepseek-r1:32b (~23.8 GB), qwen2.5-coder:32b (~23.8 GB), gemma4:31b (~22.5 GB), qwen3:30b (~22.3 GB), qwen3-coder:30b (~22.3 GB). Ollama defaults to 256k context on 48 GB+ cards, which can need far more memory than the 4k numbers here; lower it if ollama ps shows CPU offload.
64 GB VRAM
36 of these 39 tags fit. Largest: qwen2.5:72b (~55.5 GB), llama3.3:70b (~49.9 GB), deepseek-r1:70b (~49.9 GB), qwen3:32b (~24.2 GB), deepseek-r1:32b (~23.8 GB), qwen2.5-coder:32b (~23.8 GB). Ollama defaults to 256k context on 48 GB+ cards, which can need far more memory than the 4k numbers here; lower it if ollama ps shows CPU offload.
128 GB VRAM
37 of these 39 tags fit. Largest: gpt-oss:120b (~76.2 GB), qwen2.5:72b (~55.5 GB), llama3.3:70b (~49.9 GB), deepseek-r1:70b (~49.9 GB), qwen3:32b (~24.2 GB), deepseek-r1:32b (~23.8 GB). Ollama defaults to 256k context on 48 GB+ cards, which can need far more memory than the 4k numbers here; lower it if ollama ps shows CPU offload.
Ollama default context and why it matters
Ollama picks a default context length from your VRAM (docs): 4k under 24 GiB, 32k on 24–48 GiB, and 256k at 48 GiB or more. The KV cache grows with context, so a model that fits at 4k can spill to the CPU at 32k. For example, qwen3:30b needs about 22.3 GB at 4k and 25.2 GB at 32k. See context length and VRAM for the math. To set it yourself: OLLAMA_CONTEXT_LENGTH=8192 ollama serve, or /set parameter num_ctx 8192 inside ollama run.
Check the result with ollama ps. The PROCESSOR column should read 100% GPU. A split like "48%/52% CPU/GPU" means part of the model is on the CPU and speed drops a lot.
Quick answers
- How much VRAM do I need for Ollama?
- It depends on the model. Ollama's default tags are mostly 4-bit (Q4_K_M), so plan on roughly the model file size plus 15% and about 1 GB at a 4k context: llama3.1:8b ~6.7 GB, gpt-oss:20b ~16.9 GB, qwen3:32b ~24.2 GB, llama3.3:70b ~49.9 GB. 8 GB runs 7B–8B models, 16 GB runs 14B models, 24 GB runs gpt-oss:20b and 24B–27B models, 32 GB runs 30B–32B models, and a 70B tag needs about 49.9 GB, so 64 GB or more.
- How much VRAM does gpt-oss:20b need in Ollama?
- About 16.9 GB at a 4k context by our conservative estimate and 17.6 GB at 32k. The 13.8 GB model file is OpenAI's native MXFP4 weights. OpenAI says it runs within 16 GB of memory, so a 16 GB GPU can work at short context, but a 24 GB card leaves comfortable room.
- Can I run Ollama with 8 GB of VRAM?
- Yes. llama3.1:8b needs about 6.7 GB and qwen3:8b needs about 7.0 GB at a 4k context, which fits an 8 GB card. 12B–14B tags (about 9–12 GB) don't fit fully, so Ollama splits them between GPU and CPU, which is much slower.
- What happens if a model is bigger than my VRAM in Ollama?
- Ollama offloads the layers that don't fit to system RAM and runs them on the CPU. It still works, but generation slows down a lot. Run ollama ps and check the PROCESSOR column: you want "100% GPU". If it shows a CPU/GPU split, use a smaller tag or shorter context.
- What context length does Ollama use by default?
- It depends on your VRAM, per the Ollama docs: 4k context under 24 GiB, 32k on 24–48 GiB, and 256k at 48 GiB or more. Longer context needs more memory for the KV cache. Set the OLLAMA_CONTEXT_LENGTH environment variable (for example OLLAMA_CONTEXT_LENGTH=8192) to change it.
- How do I reduce Ollama's memory use?
- Pick a smaller tag, lower the context length with OLLAMA_CONTEXT_LENGTH or num_ctx, and quantize the KV cache with OLLAMA_KV_CACHE_TYPE=q8_0 (about half the cache memory of the default f16, per the Ollama FAQ). That needs Flash Attention, which Ollama turns on automatically where supported.
- Can I run Llama 3.3 70B in Ollama on a 24 GB GPU?
- Not fully. llama3.3:70b is a 42.5 GB download and needs about 49.9 GB at a 4k context. On a 24 GB card Ollama offloads about half of it to the CPU, so it runs slowly. It needs 64 GB or more of GPU memory to run fully on the GPU, for example two 32 GB cards, a 96 GB card or a 128 GB unified-memory machine (see the table above for the cheapest fit).
- How much memory does deepseek-r1:671b need in Ollama?
- About 466 GB at a 4k context: the download alone is 404 GB. That is beyond any single GPU or Mac we track. The deepseek-r1:7b, 8b, 14b, 32b and 70b tags are smaller distilled models, not the full R1.
How much VRAM by model size · GGUF VRAM by quant (llama.cpp, LM Studio) · VRAM calculator · Q4 vs Q8 vs FP16 · Context length and VRAM · Tokens per second · Best GPU for local LLMs · Best LLMs by VRAM size