GGUF VRAM requirements: how much memory each quant needs
How much VRAM a GGUF model needs in llama.cpp and LM Studio, quant by quant. For 26 popular models we list the real file size of each common K-quant (Q3_K_M, Q4_K_M, Q5_K_M, Q6_K and Q8_0), estimate the total memory at ~4k and 32k context, and show the best quant for your VRAM.
- Models
- 26 from Llama, Qwen, Gemma, Mistral, Phi, DeepSeek, gpt-oss
- Quants
- 5 Q3_K_M to Q8_0
- File sizes
- 2026-11-14 from Hugging Face
Short answer: a GGUF needs about its file size plus 15% plus 1 GB at a ~4k context. At Q4_K_M that's ~6.7 GB for an 8B model, ~11.3 GB for a 14B, ~23.7 GB for a 32B and ~49.9 GB for a 70B. Q5_K_M adds about 16%, Q6_K about 34% and Q8_0 about 71%.
How we estimate it
GGUF memory by quant
| Model | Q3_K_M | Q4_K_M | Q5_K_M | Q6_K | Q8_0 | Q4_K_M, 32k ctx |
|---|---|---|---|---|---|---|
| Llama-3.2-3B-Instruct3.2B params · GGUF files | — | 3.3 GB 2.0 GB file | 3.7 GB 2.3 GB file | 4.0 GB 2.6 GB file | 4.9 GB 3.4 GB file | 6.6 GB |
| Qwen3-4B4.0B params · GGUF files | 3.4 GB 2.1 GB file | 3.9 GB 2.5 GB file | 4.3 GB 2.9 GB file | 4.8 GB 3.3 GB file | 5.9 GB 4.3 GB file | 8.1 GB |
| gemma-3-4b-it4.3B params · GGUF files | 3.4 GB 2.1 GB file | 3.9 GB 2.5 GB file | 4.3 GB 2.8 GB file | 4.7 GB 3.2 GB file | 5.7 GB 4.1 GB file | — |
| Gemma 4 E4B8.0B params · GGUF files | 6.6 GB 4.9 GB file | 7.2 GB 5.4 GB file | 7.7 GB 5.8 GB file | 8.3 GB 6.3 GB file | 10.2 GB 8.0 GB file | — |
| Llama-3.1-8B-Instruct8.0B params · GGUF files | 5.6 GB 4.0 GB file | 6.7 GB 4.9 GB file | 7.6 GB 5.7 GB file | 8.6 GB 6.6 GB file | 10.8 GB 8.5 GB file | 10.4 GB |
| Qwen3-8B8.2B params · GGUF files | 5.7 GB 4.1 GB file | 6.8 GB 5.0 GB file | 7.7 GB 5.8 GB file | 8.7 GB 6.7 GB file | 11.0 GB 8.7 GB file | 11.0 GB |
| DeepSeek-R1-0528-Qwen3-8B8.2B params · GGUF files | 5.7 GB 4.1 GB file | 6.8 GB 5.0 GB file | 7.7 GB 5.8 GB file | 8.7 GB 6.7 GB file | 11.0 GB 8.7 GB file | 11.0 GB |
| gemma-3-12b-it12.2B params · GGUF files | 7.9 GB 6.0 GB file | 9.4 GB 7.3 GB file | 10.7 GB 8.4 GB file | 12.1 GB 9.7 GB file | 15.4 GB 12.5 GB file | — |
| Gemma 4 12B12.0B params · GGUF files | 8.2 GB 6.3 GB file | 9.8 GB 7.7 GB file | 11.1 GB 8.8 GB file | 12.8 GB 10.2 GB file | 16.1 GB 13.1 GB file | — |
| Mistral-Nemo-Instruct-240712.2B params · GGUF files | 8.0 GB 6.1 GB file | 9.6 GB 7.5 GB file | 11.0 GB 8.7 GB file | 12.6 GB 10.1 GB file | 16.0 GB 13.0 GB file | 14.3 GB |
| Qwen3-14B14.8B params · GGUF files | 9.4 GB 7.3 GB file | 11.3 GB 9.0 GB file | 13.1 GB 10.5 GB file | 14.9 GB 12.1 GB file | 19.1 GB 15.7 GB file | 16.0 GB |
| phi-414.7B params · GGUF files | 9.5 GB 7.4 GB file | 11.4 GB 9.1 GB file | 13.2 GB 10.6 GB file | 14.8 GB 12.0 GB file | 18.9 GB 15.6 GB file | 17.3 GB |
| DeepSeek-R1-Distill-Qwen-14B14.8B params · GGUF files | 9.4 GB 7.3 GB file | 11.3 GB 9.0 GB file | 13.1 GB 10.5 GB file | 14.9 GB 12.1 GB file | 19.1 GB 15.7 GB file | 17.0 GB |
| gpt-oss-20b20.9B params · MoE · GGUF files | 14.3 GB 11.6 GB file | 14.4 GB 11.7 GB file | 14.5 GB 11.7 GB file | 14.8 GB 12.0 GB file | 14.9 GB 12.1 GB file | 15.1 GB |
| Mistral-Small-3.2-24B-Instruct-250624.0B params · GGUF files | 14.2 GB 11.5 GB file | 17.5 GB 14.3 GB file | 20.3 GB 16.8 GB file | 23.3 GB 19.4 GB file | 29.8 GB 25.1 GB file | 22.2 GB |
| Gemma 4 26B A4B25.8B params · MoE · GGUF files | 16.0 GB 13.0 GB file | 20.6 GB 17.0 GB file | 23.2 GB 19.3 GB file | 27.3 GB 22.9 GB file | 32.4 GB 27.3 GB file | — |
| gemma-3-27b-it27.4B params · GGUF files | 16.5 GB 13.4 GB file | 20.0 GB 16.6 GB file | 23.2 GB 19.3 GB file | 26.5 GB 22.2 GB file | 34.0 GB 28.7 GB file | — |
| Qwen3.8-27B27.8B params · GGUF files | 16.4 GB 13.4 GB file | 21.1 GB 17.4 GB file | 25.1 GB 20.9 GB file | 28.4 GB 23.9 GB file | 34.5 GB 29.1 GB file | 22.9 GB |
| Qwen3-30B-A3B30.5B params · MoE · GGUF files | 17.2 GB 14.1 GB file | 22.4 GB 18.6 GB file | 26.0 GB 21.7 GB file | 29.9 GB 25.1 GB file | 38.4 GB 32.5 GB file | 25.2 GB |
| Gemma 4 31B31.3B params · GGUF files | 19.3 GB 15.9 GB file | 23.5 GB 19.6 GB file | 27.0 GB 22.6 GB file | 31.7 GB 26.7 GB file | 39.1 GB 33.1 GB file | — |
| Qwen3-32B32.8B params · GGUF files | 19.4 GB 16.0 GB file | 23.7 GB 19.8 GB file | 27.7 GB 23.2 GB file | 31.9 GB 26.9 GB file | 41.0 GB 34.8 GB file | 31.2 GB |
| DeepSeek-R1-Distill-Qwen-32B32.8B params · GGUF files | 19.3 GB 15.9 GB file | 23.8 GB 19.9 GB file | 27.7 GB 23.3 GB file | 31.9 GB 26.9 GB file | 41.0 GB 34.8 GB file | 31.3 GB |
| Qwen2.5-Coder-32B-Instruct32.8B params · GGUF files | 19.3 GB 15.9 GB file | 23.8 GB 19.9 GB file | 27.7 GB 23.3 GB file | 31.9 GB 26.9 GB file | 41.0 GB 34.8 GB file | 31.3 GB |
| Llama-3.3-70B-Instruct70.6B params · GGUF files | 40.4 GB 34.3 GB file | 49.9 GB 42.5 GB file | 58.4 GB 50.0 GB file | 67.6 GB 57.9 GB file | 87.2 GB 75.0 GB file | 59.3 GB |
| Qwen2.5-72B-Instruct72.7B params · GGUF files | 44.4 GB 37.7 GB file | 55.5 GB 47.4 GB file | 63.6 GB 54.5 GB file | 75.0 GB 64.3 GB file | 89.8 GB 77.3 GB file | 64.9 GB |
| gpt-oss-120b116.8B params · MoE · GGUF files | 73.1 GB 62.7 GB file | 73.3 GB 62.8 GB file | — | 73.8 GB 63.3 GB file | 73.9 GB 63.4 GB file | 74.3 GB |
Best GGUF quant for your VRAM
| Model | 8 GB | 12 GB | 16 GB | 24 GB | 32 GB | 48 GB | 64 GB | 96 GB |
|---|---|---|---|---|---|---|---|---|
| Llama-3.2-3B-Instruct | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Qwen3-4B | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| gemma-3-4b-it | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Gemma 4 E4B | Q3_K_M | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Llama-3.1-8B-Instruct | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Qwen3-8B | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| DeepSeek-R1-0528-Qwen3-8B | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| gemma-3-12b-it | — | Q5_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Gemma 4 12B | — | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Mistral-Nemo-Instruct-2407 | — | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Qwen3-14B | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| phi-4 | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| DeepSeek-R1-Distill-Qwen-14B | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 | Q8_0 | Q8_0 |
| Mistral-Small-3.2-24B-Instruct-2506 | — | — | Q3_K_M | Q5_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 |
| Gemma 4 26B A4B | — | — | — | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 |
| gemma-3-27b-it | — | — | — | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 |
| Qwen3.8-27B | — | — | — | Q4_K_M | Q6_K | Q8_0 | Q8_0 | Q8_0 |
| Qwen3-30B-A3B | — | — | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 |
| Gemma 4 31B | — | — | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 |
| Qwen3-32B | — | — | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 |
| DeepSeek-R1-Distill-Qwen-32B | — | — | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 |
| Qwen2.5-Coder-32B-Instruct | — | — | — | Q3_K_M | Q5_K_M | Q8_0 | Q8_0 | Q8_0 |
| Llama-3.3-70B-Instruct | — | — | — | — | — | Q3_K_M | Q4_K_M | Q6_K |
| Qwen2.5-72B-Instruct | — | — | — | — | — | — | Q4_K_M | Q6_K |
8 GB VRAM
Largest that fits: Qwen3-8B at Q4_K_M (~6.8 GB), DeepSeek-R1-0528-Qwen3-8B at Q4_K_M (~6.8 GB), Llama-3.1-8B-Instruct at Q4_K_M (~6.7 GB). See best LLMs for 8 GB VRAM.
12 GB VRAM
Largest that fits: DeepSeek-R1-Distill-Qwen-14B at Q3_K_M (~9.4 GB), Qwen3-14B at Q3_K_M (~9.4 GB), phi-4 at Q3_K_M (~9.5 GB). See best LLMs for 12 GB VRAM.
16 GB VRAM
Largest that fits: Mistral-Small-3.2-24B-Instruct-2506 at Q3_K_M (~14.2 GB), DeepSeek-R1-Distill-Qwen-14B at Q5_K_M (~13.1 GB), Qwen3-14B at Q5_K_M (~13.1 GB). See best LLMs for 16 GB VRAM.
24 GB VRAM
Largest that fits: DeepSeek-R1-Distill-Qwen-32B at Q3_K_M (~19.3 GB), Qwen2.5-Coder-32B-Instruct at Q3_K_M (~19.3 GB), Qwen3-32B at Q3_K_M (~19.4 GB). See best LLMs for 24 GB VRAM.
32 GB VRAM
Largest that fits: DeepSeek-R1-Distill-Qwen-32B at Q5_K_M (~27.7 GB), Qwen2.5-Coder-32B-Instruct at Q5_K_M (~27.7 GB), Qwen3-32B at Q5_K_M (~27.7 GB). See best LLMs for 32 GB VRAM.
Cheapest hardware for each GGUF
llama.cpp settings that change memory
From the llama-server docs:
-ngl allputs every layer on the GPU. The default,auto, offloads what fits.-c 8192sets the context. The default, 0, uses the model's full trained context, and--fit(on by default) then shrinks it to fit your free memory.-ctk q8_0 -ctv q8_0stores the KV cache at 8-bit, about half the default f16. See context length and VRAM.-fa onforces Flash Attention (defaultauto).--n-cpu-moe Nkeeps the expert weights of the first N layers on the CPU, a good way to run a MoE model like Qwen3-30B-A3B on a smaller GPU.
LM Studio loads the same GGUF files with a llama.cpp engine, so the numbers above apply. Set GPU offload to the maximum and pick a context length when you load the model. Using Ollama instead? See Ollama VRAM requirements for each default tag.
Quick answers
- How much VRAM does a Q4_K_M GGUF need?
- About the GGUF file size plus 15%, plus about 1 GB for the runtime at a ~4k context. By that estimate Llama-3.1-8B-Instruct needs ~6.7 GB, Qwen3-14B needs ~11.3 GB, Qwen3-32B needs ~23.7 GB, Llama-3.3-70B-Instruct needs ~49.9 GB at Q4_K_M. Longer context adds KV cache on top.
- Q4_K_M vs Q5_K_M vs Q6_K vs Q8_0: how much bigger is each?
- Across 23 models in our table (gpt-oss excluded), Q5_K_M files are about 16% bigger than Q4_K_M, Q6_K about 34% bigger and Q8_0 about 71% bigger. Q3_K_M is about 19% smaller. VRAM needs grow by about the same share.
- Which GGUF quant should I download?
- Pick the biggest quant that still leaves about 10% of your VRAM free for context. Q4_K_M is the usual default. Bartowski's model cards rate Q5_K_M "high quality" and Q6_K "very high quality, near perfect", and call Q8_0 "generally unneeded". Q3_K_M is a lower-quality fallback when nothing else fits. The "best quant for your VRAM" table above does this for you.
- Can I run a 14B GGUF on 12 GB of VRAM?
- At Q4_K_M, just barely: Qwen3-14B needs about 11.3 GB, which is tight on a 12 GB card at ~4k context. Q5_K_M (~13.1 GB) is too big, and Q6_K (~14.9 GB) needs a 16 GB card.
- Which quant of a 32B model fits a 24 GB GPU?
- Qwen3-32B needs about 23.7 GB at Q4_K_M, so Q4_K_M is tight on 24 GB at ~4k context. Q5_K_M needs ~27.7 GB (too big), and Q6_K (~31.9 GB) needs 32 GB or more.
- Why are all gpt-oss GGUF files about the same size?
- gpt-oss ships with its expert weights in MXFP4, a 4-bit format, and the GGUF repos keep them that way. So Q3_K_M to Q8_0 only change the small non-expert part: gpt-oss-20b files run from 11.6 to 12.1 GB (about 14.3–14.9 GB of memory by our estimate), and gpt-oss-120b about 63 GB. Pick the largest one.
- What happens in llama.cpp if the GGUF is bigger than my VRAM?
- llama.cpp keeps the layers that don't fit in system RAM and runs them on the CPU. It still works, but generation slows down a lot. By default llama-server also fits the context to your free memory (the --fit option). For MoE models, --n-cpu-moe N moves only the expert weights of N layers to the CPU, which costs less speed than moving whole layers.
- How do I cut memory use in llama.cpp or LM Studio?
- Use a smaller quant, set a shorter context (-c 8192), and quantize the KV cache with -ctk q8_0 -ctv q8_0, which halves the cache memory of the default f16. In LM Studio the same settings are the context length, GPU offload and KV cache quantization options when you load a model.
- Does LM Studio need the same VRAM as llama.cpp?
- About the same. LM Studio runs GGUF files with a llama.cpp engine, so the file sizes and estimates here apply.
How much VRAM by model size · Q4 vs Q8 vs FP16 · Ollama VRAM requirements · VRAM calculator · Context length and VRAM · MoE vs dense · Best GPU for local LLMs · Best LLMs by VRAM size