Best LLMs for 20GB VRAM

With 20 GB of VRAM you can run models up to Gemma 4 31B (30.7B) at Q4_K_M with an 8K context. 35 of 58 tracked models fit fully, and 7 more fit at a lower quantization.

Updated October 14, 2026 · 6% safety margin · FP16 KV cache

Models that fit in 20 GB

ModelVRAM at 8KBest quant that fitsMax context at Q4
Gemma 4 31B19.8 GBIQ4_XS–
Qwen 3 30B-A3B18.8 GBQ4_K_M8K
Qwen3-Coder 30B-A3B18.8 GBQ4_K_M8K
Gemma 3 27B17.6 GBQ4_K_M23K
Qwen 3.5 27B16.9 GBQ4_K_M38K
Qwen 3.6 27B16.9 GBQ4_K_M38K
Qwen 3.8 27B16.9 GBQ4_K_M38K
Gemma 4 26B-A4B15.6 GBQ5_K_M170K
Mistral Small 3.1 24B15.6 GBQ5_K_M28K
gpt-oss-20b13.9 GBMXFP4 (official)128K
Qwen 3 14B10.5 GBQ8_040K
Qwen 2.5 14B10.7 GBQ8_032K
Phi-4 14B10.6 GBQ8_016K
DeepSeek R1 Distill Qwen 14B10.7 GBQ8_051K
Ministral 3 14B9.7 GBQ8_066K
Mistral Nemo 12B9.0 GBQ8_070K
Gemma 3 12B8.8 GBQ8_0128K
Qwen 3.5 9B6.4 GBFP16 / BF16256K
Ministral 3 8B6.7 GBFP16 / BF1699K
Qwen 3 8B6.6 GBFP16 / BF1640K
Llama 3.1 8B6.3 GBFP16 / BF16107K
DeepSeek R1 Distill Llama 8B6.3 GBFP16 / BF16107K
Gemma 4 E4B5.7 GBFP16 / BF16128K
Qwen 2.5 7B5.6 GBFP16 / BF1632K
DeepSeek R1 Distill Qwen 7B5.6 GBFP16 / BF16128K
Mistral 7B v0.35.7 GBFP16 / BF1632K
Gemma 4 E2B4.0 GBFP16 / BF16128K
Gemma 3 4B3.7 GBFP16 / BF16128K
Qwen 3.5 4B3.7 GBFP16 / BF16256K
Qwen 3 4B4.2 GBFP16 / BF1640K
Phi-4 Mini4.1 GBFP16 / BF16125K
Ministral 3 3B3.5 GBFP16 / BF16158K
Llama 3.2 3B3.5 GBFP16 / BF16128K
Llama 3.2 1B1.7 GBFP16 / BF16128K
Gemma 3 1B1.6 GBFP16 / BF1632K

Fits at a lower quantization

These need more than 20 GB at Q4_K_M but fit at a smaller format, with more quality loss.

ModelVRAM at Q4_K_MFits at
Mixtral 8x7B28.0 GBQ2_K
Qwen 3.5 35B-A3B21.0 GBIQ4_XS
Qwen 3.6 35B-A3B21.0 GBIQ4_XS
Qwen 2.5 32B21.4 GBQ3_K_M
Qwen 2.5 Coder 32B21.4 GBQ3_K_M
Qwen 3 32B21.4 GBQ3_K_M
DeepSeek R1 Distill Qwen 32B21.4 GBQ3_K_M

Image and video models

Best weight precision that fits 20 GB with model swapping.

ModelBest precision
Stable Diffusion 1.5FP16 / BF16
SDXL 1.0FP16 / BF16
Stable Diffusion 3.5 MediumFP16 / BF16
Stable Diffusion 3.5 LargeFP16 / BF16
FLUX.1 [dev]FP8
FLUX.1 [schnell]FP8
Qwen-ImageGGUF Q6_K
Wan 2.2 A14B (T2V / I2V)GGUF Q6_K
Wan 2.2 TI2V 5BFP16 / BF16
HunyuanVideoFP8
FLUX.1 Kontext [dev]FP8
FLUX.2 [dev]Needs offloading or more VRAM
Z-Image TurboFP16 / BF16
Qwen-Image-Edit 2509GGUF Q6_K
LTX-2GGUF Q6_K

GPUs with 20 GB

20 GB VRAM: common questions

Is 20 GB of VRAM enough for local LLMs?

Yes for models up to about 30.7B at Q4_K_M with 8K context. 20 GB fits 35 of the 58 models tracked here, including Gemma 4 31B, Qwen 3 30B-A3B, Qwen3-Coder 30B-A3B.

What is the biggest model 20 GB can run?

Gemma 4 31B (30.7B) at Q4_K_M with 8K context, using about 19.8 GB. Mixtral 8x7B also fits at Q2_K, with some quality loss.

Is 20 GB enough for Flux and SDXL?

SDXL: FP16 / BF16. FLUX.1 dev: FP8 (best precision that fits with model swapping).

Other VRAM sizes