What Can I Run AI?

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

memory ≈ GGUF file size × 1.15 + 1 GB (≈4k context) · 32k adds the KV cache from the model's published config (f16 cache)

Same formula as the rest of the site (how we calculate), applied to real GGUF files instead of a bits-per-weight guess. These are estimates, not measurements. A model "fits" when it uses 90% or less of the memory. File sizes are from bartowski's GGUF repos on Hugging Face (split files added together), retrieved 2026-11-14. Other uploaders' files differ by a few percent.

GGUF memory by quant

Bold: estimated memory at ~4k context. Small: GGUF file size. Last column: Q4_K_M at 32k context.

Estimated memory and GGUF file size for each model at Q3_K_M, Q4_K_M, Q5_K_M, Q6_K and Q8_0, plus Q4_K_M at 32k context
ModelQ3_K_MQ4_K_MQ5_K_MQ6_KQ8_0Q4_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 files3.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 files3.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 files6.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 files5.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 files5.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 files5.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 files7.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 files8.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 files8.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 files9.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 files9.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 files9.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 files14.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 files14.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 files16.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 files16.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 files16.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 files17.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 files19.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 files19.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 files19.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 files19.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 files40.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 files44.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 files73.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

"—" means that quant isn't in the repo, or (32k column) we don't have the model's attention config yet. Gemma and some Qwen and Mistral models are multimodal; the vision projector (mmproj) is a separate file that adds memory when you send images.

Best GGUF quant for your VRAM

The highest of these quants that fits fully on the GPU with ~4k context (90% rule). Unified-memory Macs: use the usable memory, not the total (a 32 GB Mac has about 24 GB usable for the GPU by default).

Highest GGUF quant that fits each VRAM size
Model8 GB12 GB16 GB24 GB32 GB48 GB64 GB96 GB
Llama-3.2-3B-InstructQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0
Qwen3-4BQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0
gemma-3-4b-itQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0
Gemma 4 E4BQ3_K_MQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0Q8_0
Llama-3.1-8B-InstructQ4_K_MQ6_KQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0
Qwen3-8BQ4_K_MQ6_KQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0
DeepSeek-R1-0528-Qwen3-8BQ4_K_MQ6_KQ8_0Q8_0Q8_0Q8_0Q8_0Q8_0
gemma-3-12b-it—Q5_K_MQ6_KQ8_0Q8_0Q8_0Q8_0Q8_0
Gemma 4 12B—Q4_K_MQ6_KQ8_0Q8_0Q8_0Q8_0Q8_0
Mistral-Nemo-Instruct-2407—Q4_K_MQ6_KQ8_0Q8_0Q8_0Q8_0Q8_0
Qwen3-14B—Q3_K_MQ5_K_MQ8_0Q8_0Q8_0Q8_0Q8_0
phi-4—Q3_K_MQ5_K_MQ8_0Q8_0Q8_0Q8_0Q8_0
DeepSeek-R1-Distill-Qwen-14B—Q3_K_MQ5_K_MQ8_0Q8_0Q8_0Q8_0Q8_0
Mistral-Small-3.2-24B-Instruct-2506——Q3_K_MQ5_K_MQ6_KQ8_0Q8_0Q8_0
Gemma 4 26B A4B———Q4_K_MQ6_KQ8_0Q8_0Q8_0
gemma-3-27b-it———Q4_K_MQ6_KQ8_0Q8_0Q8_0
Qwen3.8-27B———Q4_K_MQ6_KQ8_0Q8_0Q8_0
Qwen3-30B-A3B———Q3_K_MQ5_K_MQ8_0Q8_0Q8_0
Gemma 4 31B———Q3_K_MQ5_K_MQ8_0Q8_0Q8_0
Qwen3-32B———Q3_K_MQ5_K_MQ8_0Q8_0Q8_0
DeepSeek-R1-Distill-Qwen-32B———Q3_K_MQ5_K_MQ8_0Q8_0Q8_0
Qwen2.5-Coder-32B-Instruct———Q3_K_MQ5_K_MQ8_0Q8_0Q8_0
Llama-3.3-70B-Instruct—————Q3_K_MQ4_K_MQ6_K
Qwen2.5-72B-Instruct——————Q4_K_MQ6_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

Cheapest current device we track that fits at ~4k context. GPUs at dated list prices (MSRP); street prices may be higher.

Cheapest GPU at Q4_K_M and Q6_K and cheapest Mac or mini PC at Q4_K_M
ModelCheapest GPU, Q4_K_MCheapest GPU, Q6_KCheapest Mac / mini PC, Q4_K_M
Llama-3.2-3B-InstructQ4_K_M ~3.3 GB · Q6_K ~4.0 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
Qwen3-4BQ4_K_M ~3.9 GB · Q6_K ~4.8 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
gemma-3-4b-itQ4_K_M ~3.9 GB · Q6_K ~4.7 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
Gemma 4 E4BQ4_K_M ~7.2 GB · Q6_K ~8.3 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
Llama-3.1-8B-InstructQ4_K_M ~6.7 GB · Q6_K ~8.6 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
Qwen3-8BQ4_K_M ~6.8 GB · Q6_K ~8.7 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
DeepSeek-R1-0528-Qwen3-8BQ4_K_M ~6.8 GB · Q6_K ~8.7 GBIntel Arc B570$219 listIntel Arc B570$219 listMac mini M6 16GB$899 list
gemma-3-12b-itQ4_K_M ~9.4 GB · Q6_K ~12.1 GBIntel Arc B580$249 listRadeon RX 7600 XT$329 listMac mini M6 16GB$899 list
Gemma 4 12BQ4_K_M ~9.8 GB · Q6_K ~12.8 GBIntel Arc B580$249 listRadeon RX 7600 XT$329 listMac mini M6 16GB$899 list
Mistral-Nemo-Instruct-2407Q4_K_M ~9.6 GB · Q6_K ~12.6 GBIntel Arc B580$249 listRadeon RX 7600 XT$329 listMac mini M6 16GB$899 list
Qwen3-14BQ4_K_M ~11.3 GB · Q6_K ~14.9 GBRadeon RX 7600 XT$329 listRadeon RX 7900 XT$899 listMac mini M6 24GB$1,299 list
phi-4Q4_K_M ~11.4 GB · Q6_K ~14.8 GBRadeon RX 7600 XT$329 listRadeon RX 7900 XT$899 listMac mini M6 24GB$1,299 list
DeepSeek-R1-Distill-Qwen-14BQ4_K_M ~11.3 GB · Q6_K ~14.9 GBRadeon RX 7600 XT$329 listRadeon RX 7900 XT$899 listMac mini M6 24GB$1,299 list
Mistral-Small-3.2-24B-Instruct-2506Q4_K_M ~17.5 GB · Q6_K ~23.3 GBRadeon RX 7900 XT$899 listIntel Arc Pro B70 32GB$949 listMac mini M6 32GB$1,799 list
Gemma 4 26B A4BQ4_K_M ~20.6 GB · Q6_K ~27.3 GBIntel Arc Pro B70 32GB$949 listIntel Arc Pro B70 32GB$949 listMac mini M6 32GB$1,799 list
gemma-3-27b-itQ4_K_M ~20.0 GB · Q6_K ~26.5 GBIntel Arc Pro B70 32GB$949 listIntel Arc Pro B70 32GB$949 listMac mini M6 32GB$1,799 list
Qwen3.8-27BQ4_K_M ~21.1 GB · Q6_K ~28.4 GBIntel Arc Pro B70 32GB$949 listIntel Arc Pro B70 32GB$949 listMac mini M6 32GB$1,799 list
Qwen3-30B-A3BQ4_K_M ~22.4 GB · Q6_K ~29.9 GBIntel Arc Pro B70 32GB$949 listNVIDIA RTX 6000 Ada 48GB$6,799 listMac mini M5 Pro 64GB$3,199 list
Gemma 4 31BQ4_K_M ~23.5 GB · Q6_K ~31.7 GBIntel Arc Pro B70 32GB$949 listNVIDIA RTX 6000 Ada 48GB$6,799 listMac mini M5 Pro 64GB$3,199 list
Qwen3-32BQ4_K_M ~23.7 GB · Q6_K ~31.9 GBIntel Arc Pro B70 32GB$949 listNVIDIA RTX 6000 Ada 48GB$6,799 listMac mini M5 Pro 64GB$3,199 list
DeepSeek-R1-Distill-Qwen-32BQ4_K_M ~23.8 GB · Q6_K ~31.9 GBIntel Arc Pro B70 32GB$949 listNVIDIA RTX 6000 Ada 48GB$6,799 listMac mini M5 Pro 64GB$3,199 list
Qwen2.5-Coder-32B-InstructQ4_K_M ~23.8 GB · Q6_K ~31.9 GBIntel Arc Pro B70 32GB$949 listNVIDIA RTX 6000 Ada 48GB$6,799 listMac mini M5 Pro 64GB$3,199 list
Llama-3.3-70B-InstructQ4_K_M ~49.9 GB · Q6_K ~67.6 GBNVIDIA RTX Pro 6000 Blackwell 96GB$8,565 listNVIDIA RTX Pro 6000 Blackwell 96GB$8,565 listFramework Desktop (Ryzen AI Max+ 395) 128GB$3,449 list
Qwen2.5-72B-InstructQ4_K_M ~55.5 GB · Q6_K ~75.0 GBNVIDIA RTX Pro 6000 Blackwell 96GB$8,565 listNVIDIA RTX Pro 6000 Blackwell 96GB$8,565 listFramework Desktop (Ryzen AI Max+ 395) 128GB$3,449 list

llama.cpp settings that change memory

From the llama-server docs:

llama-server -m Qwen_Qwen3-8B-Q4_K_M.gguf -ngl all -c 8192 -ctk q8_0 -ctv q8_0

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

New models, and what they need to run

One short email a week: fresh open models with their VRAM numbers, plus hardware worth watching.