Best local LLMs for 12GB VRAM

What you can run with 12 GB of GPU memory (11 GB usable after ~1 GB overhead), at 16k context with an f16 KV cache. Speeds use data measured on GeForce RTX 4070 12GB where available.

11 GBusable for model + KV cache
10/35models fit fully at 16k
18more with CPU offload
504 GB/sbandwidth assumed

Models that fit 12 GB, largest first

ModelParamsQuantFitMemoryTok/sSpeed source
Flint 40B-A2.5B39.79B MoEUD-Q4_K_XLMoE offload to CPU25.6 GB53estimated
Qwen3.6 35B-A3B35.95B MoEUD-Q4_K_MMoE offload to CPU22.5 GB49estimated
Ornith 1.5 35B-A3B35.95B MoEQ4_K_MMoE offload to CPU22.3 GB51estimated
Laguna XS 2.133.44B MoEQ4_K_MMoE offload to CPU21.3 GB50estimated
Nanbeige4.3 33B33.12BQ4_K_Mpartial offload (slow)24.3 GB4estimated
DeepSeek R1 Distill Qwen 32B32.76BQ4_K_Mpartial offload (slow)24.1 GB4estimated
Nemotron 3 Nano 30B-A3B31.58B MoEQ4_K_MMoE offload to CPU24.8 GB31estimated
Nemotron 3.5 Lightning 30B-A3B31.58B MoEUD-Q4_K_MMoE offload to CPU25.4 GB36estimated
Gemma 4 31B31.27BQ4_K_Mpartial offload (slow)20.5 GB6estimated
GLM-4.7-Flash31.22B MoEQ4_K_MMoE offload to CPU19.2 GB58estimated
Qwen3-Coder 30B-A3B30.53B MoEQ4_K_MMoE offload to CPU20.2 GB47estimated
Qwen3.6 27B27.78BQ4_K_Mpartial offload (slow)18.1 GB7estimated
Qwen3.8 27B27.78BUD-Q4_K_Mpartial offload (slow)17.8 GB7estimated
Inkling 2 Mini26.39B MoEQ4_K_MMoE offload to CPU19.4 GB27estimated
Gemma 4 26B-A4B25.81B MoEUD-Q4_K_MMoE offload to CPU17.5 GB46estimated
Mistral Small 3.2 24B24.01BQ4_K_Mpartial offload (slow)17.0 GB8estimated
LFM2.5 24B-A2B23.97B MoEQ4_K_MMoE offload to CPU14.9 GB100estimated
gpt-oss 20B20.91B MoEQ4_K_MMoE offload to CPU12.0 GB121estimated
Mellum2.1 12B-A2.5B Instruct12.15B MoEQ5_K_Mfits fully10.2 GB159estimated
Gemma 4 12B11.96BQ6_Kfits fully10.4 GB43scaled from measured
Qwen3.5 9B9.65BQ8_0fits fully10.1 GB51measured
Ornith 1.5 9B9.65BQ8_0fits fully10.1 GB51scaled from measured
Qwen3-VL 8B8.77BQ6_Kfits fully9.1 GB71scaled from measured
Gemma 4 E4B8BQ8_0fits fully8.5 GB58scaled from measured
DeepSeek R1 Distill Qwen 7B7.62BQ8_0fits fully9.0 GB59scaled from measured
Qwen3.5 4B4.66BQ8_0fits fully5.1 GB89measured
Nemotron 3 Nano 4B3.97BQ8_0fits fully4.6 GB89scaled from measured
LFM3 1.7B1.73BQ8_0fits fully2.1 GB191scaled from measured

Copy-paste commands for the top pick

Mellum2.1 12B-A2.5B Instruct Q5_K_M, 16k context.

llama.cpp
llama-server -hf bartowski/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
ollama
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/bartowski/Mellum2.1-12B-A2.5B-Instruct-GGUF:Q5_K_M

How much context fits in 12 GB?

Largest context where weights plus KV cache stay inside 11 GB, by KV cache type (q8_0 halves and q4_0 quarters the cache). Native limits and YaRN extension apply per model.

ModelWeightsf16 KVq8_0 KVq4_0 KV
Mellum2.1 12B-A2.5B Instruct Q5_K_M10.0 GB64k128k128k
Gemma 4 12B Q6_K9.8 GB32k64k128k
Qwen3.5 9B Q8_09.5 GB32k64k128k
Ornith 1.5 9B Q8_09.6 GB32k64k128k
Qwen3-VL 8B Q6_K6.7 GB16k32k64k
Gemma 4 E4B Q8_08.2 GB128k128k128k
DeepSeek R1 Distill Qwen 7B Q8_08.1 GB32k64k128k
Qwen3.5 4B Q8_04.5 GB128k256k512k

Try the exact numbers for your setup in the interactive advisor.

What does not fit fully in 12 GB

Flint 40B-A2.5B (needs 26 GB at 16k, ~53 tok/s with offload); Qwen3.6 35B-A3B (needs 23 GB at 16k, ~49 tok/s with offload); Ornith 1.5 35B-A3B (needs 22 GB at 16k, ~51 tok/s with offload); Laguna XS 2.1 (needs 21 GB at 16k, ~50 tok/s with offload); Nanbeige4.3 33B (needs 24 GB at 16k, ~4 tok/s with offload); DeepSeek R1 Distill Qwen 32B (needs 24 GB at 16k, ~4 tok/s with offload); Nemotron 3 Nano 30B-A3B (needs 25 GB at 16k, ~31 tok/s with offload); Nemotron 3.5 Lightning 30B-A3B (needs 25 GB at 16k, ~36 tok/s with offload); Gemma 4 31B (needs 21 GB at 16k, ~6 tok/s with offload); GLM-4.7-Flash (needs 19 GB at 16k, ~58 tok/s with offload); Qwen3-Coder 30B-A3B (needs 20 GB at 16k, ~47 tok/s with offload); Qwen3.6 27B (needs 18 GB at 16k, ~7 tok/s with offload); Qwen3.8 27B (needs 18 GB at 16k, ~7 tok/s with offload); Inkling 2 Mini (needs 19 GB at 16k, ~27 tok/s with offload); Gemma 4 26B-A4B (needs 17 GB at 16k, ~46 tok/s with offload); Mistral Small 3.2 24B (needs 17 GB at 16k, ~8 tok/s with offload); LFM2.5 24B-A2B (needs 15 GB at 16k, ~100 tok/s with offload); gpt-oss 20B (needs 12 GB at 16k, ~121 tok/s with offload). Rent instead: Vast.ai / RunPod. We may earn a referral credit if you sign up through these links.

GPUs with 12 GB

RTX 3060 12GB (32GB RAM) Amazon · RTX 5070 12GB Amazon · RTX 4070 12GB Amazon

As an Amazon Associate I earn from qualifying purchases. Cards in this tier: GeForce RTX 3060 12GB, GeForce RTX 4070 12GB, GeForce RTX 5070.

Hardware pages near 12 GB

RTX 3060 12GB (32GB RAM) · 8GB VRAM class (RTX 4060 8GB, 32GB RAM) · 16GB VRAM class (RTX 4060 Ti 16GB, 32GB RAM) · RTX 5070 12GB · RTX 4070 12GB · RTX 5070 Ti 16GB · RTX 5080 16GB · Mac mini / iMac M4 16GB

FAQ

What is the best local LLM for 12GB VRAM?

By size, Mellum2.1 12B-A2.5B Instruct Q5_K_M is the largest model in our dataset that fits fully at 16k context (10.2 GB, ~159 tok/s (estimated)).

How many models fit in 12GB VRAM?

10 of 35 models fit fully at 16k context with an f16 KV cache; 18 more run only with CPU offload.

How much context can I use with 12GB?

It depends on the model: for Mellum2.1 12B-A2.5B Instruct the KV cache allows up to 64k tokens at f16 and 128k with a q4_0 cache.

Neighbouring tiers: 8 GB · 16 GB · all tiers. Numbers come from the same memory-fit math as the advisor; sources and methods.