What Can I Run AI?

How much VRAM do you need for a 16B–21B model?

Short answer: about 15.6 GB at Q4_K_M, the usual quant for local use. Below: every quant, longer contexts, the cheapest hardware that fits, and every 16B–21B open model we track.

Q4_K_M
15.6 GB 12.7 GB weights
Q8_0
26.6 GB 22.2 GB weights
FP16
49.1 GB 41.8 GB weights

Worked out for gpt-oss-20b (20.9B parameters, from the Hugging Face API). Formula: weights × 1.15 + 1 GB at a ~4k context (how we calculate).

Cheapest GPU that fits at Q4: Radeon RX 7900 XT (20 GB, $899). Cheapest Mac or mini PC: Mac mini M6 24GB ($1,299).

Cheapest hardware for each quant

Only devices with a sourced price. GPUs at list price (MSRP); street prices may be higher.

Cheapest GPU and Mac or mini PC for a 16B–21B model at each quant
SettingMemory neededCheapest GPUCheapest Mac / mini PC
Q4_K_M, ~4k context15.6 GBRadeon RX 7900 XT 20 GB usable · $899Mac mini M6 24GB 18 GB usable · $1,299
Q8_0, ~4k context26.6 GBIntel Arc Pro B70 32GB 32 GB usable · $949Mac mini M5 Pro 64GB 48 GB usable · $3,199
FP16, ~4k context49.1 GBNVIDIA RTX Pro 6000 Blackwell 96GB 96 GB usable · $8,565Framework Desktop (Ryzen AI Max+ 395) 128GB 96 GB usable · $3,449
Q4_K_M, 32k context16.3 GBRadeon RX 7900 XT 20 GB usable · $899Mac mini M6 32GB 24 GB usable · $1,799

Memory by context length

Each extra token of context adds to the KV cache. Numbers for gpt-oss-20b, from its published config; a Q8 KV cache halves the cache part.

Memory needed for a 16B–21B model by context length
ContextQ4_K_M, FP16 cacheQ4_K_M, Q8 cacheQ8_0, FP16 cache
4k tokens15.6 GB15.6 GB26.6 GB
8k tokens15.7 GB15.6 GB26.7 GB
16k tokens15.9 GB15.7 GB26.9 GB
32k tokens16.3 GB15.9 GB27.3 GB
64k tokens17.1 GB16.3 GB28.1 GB
128k tokens18.7 GB17.1 GB29.7 GB

Hardware that runs it

Bar: Q4 memory needed vs. usable memory. Speed is estimated decode at Q4 (how we estimate); MoE shows an upper bound only.FitsTight
Tracked hardware that runs a 16B–21B model at Q4
HardwareQ4 need vs. usableQ4 / Q8 / FP16Est. tok/s
Radeon RX 7600 XTGPU · $32915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 112
Radeon RX 9060 XT 16GBGPU · $34915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 125
Intel Arc A770 16GBGPU · $34915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 218
GeForce RTX 5060 Ti 16GBGPU · $42915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 174
GeForce RTX 4060 Ti 16GBGPU · $49915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 112
Radeon RX 7800 XTGPU · $49915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 243
Radeon RX 7900 GREGPU · $54915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 224
Radeon RX 9070GPU · $54915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 249
Radeon RX 6800GPU · $57915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 199
Radeon RX 9070 XTGPU · $59915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 249
Radeon RX 6800 XTGPU · $64915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 199
NVIDIA RTX 2000 Ada 16GBGPU · $64915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 87
GeForce RTX 5070 TiGPU · $74915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 349
GeForce RTX 4070 Ti SuperGPU · $79915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 262
GeForce RTX 4080 SuperGPU · $99915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 287
GeForce RTX 5080GPU · $99915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 374
Radeon RX 6900 XTGPU · $99915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 199
NVIDIA RTX A4000GPU · $1,00015.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 174
Radeon RX 6950 XTGPU · $1,09915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 224
GeForce RTX 4080GPU · $1,19915.6 / 16.0 GBQ4TightQ8Won’t fitFP16Won’t fitup to 279
Mac mini M6 24GBunified memory · $1,29915.6 / 18.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 62
Radeon RX 7900 XTGPU · $89915.6 / 20.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 312
NVIDIA RTX 4000 Ada 20GBGPU · $1,25015.6 / 20.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 140
NVIDIA Tesla P40 24GBGPU15.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 135
Radeon RX 7900 XTXGPU · $99915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 374
GeForce RTX 3090GPU · $1,49915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 365
GeForce RTX 4090GPU · $1,59915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 393
Mac mini M6 32GBunified memory · $1,79915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 62
GeForce RTX 3090 TiGPU · $1,99915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 393
NVIDIA RTX A5000GPU · $2,25015.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 299
MacBook Pro M6 32GBunified memory · $2,39915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 62
NVIDIA Titan RTXGPU · $2,49915.6 / 24.0 GBQ4FitsQ8Won’t fitFP16Won’t fitup to 262
NVIDIA Tesla V100 32GB (PCIe)GPU15.6 / 32.0 GBQ4FitsQ8FitsFP16Won’t fitup to 351
AMD Radeon Instinct MI50 32GBGPU15.6 / 32.0 GBQ4FitsQ8FitsFP16Won’t fitup to 399
AMD Radeon Instinct MI60 32GBGPU15.6 / 32.0 GBQ4FitsQ8FitsFP16Won’t fitup to 399
Intel Arc Pro B70 32GBGPU · $94915.6 / 32.0 GBQ4FitsQ8FitsFP16Won’t fitup to 237
GeForce RTX 5090GPU · $1,99915.6 / 32.0 GBQ4FitsQ8FitsFP16Won’t fitup to 698
Mac mini M5 Pro 64GBunified memory · $3,19915.6 / 48.0 GBQ4FitsQ8FitsFP16Won’t fitup to 113
NVIDIA RTX A6000GPU · $4,64915.6 / 48.0 GBQ4FitsQ8FitsFP16Won’t fitup to 299
NVIDIA DGX Spark 64GBunified memory · $4,99915.6 / 48.0 GBQ4FitsQ8FitsFP16Won’t fitup to 100
NVIDIA RTX 6000 Ada 48GBGPU · $6,79915.6 / 48.0 GBQ4FitsQ8FitsFP16Won’t fitup to 374
Framework Desktop (Ryzen AI Max+ 395) 128GBunified memory · $3,44915.6 / 96.0 GBQ4FitsQ8FitsFP16Fitsup to 94
MacBook Pro M4 Max 128GBunified memory · $4,99915.6 / 96.0 GBQ4FitsQ8FitsFP16Fitsup to 200
MacBook Pro M5 Max 128GBunified memory · $6,69915.6 / 96.0 GBQ4FitsQ8FitsFP16Fitsup to 225
NVIDIA DGX Spark 128GBunified memory · $6,95015.6 / 96.0 GBQ4FitsQ8FitsFP16Fitsup to 100
NVIDIA RTX Pro 6000 Blackwell 96GBGPU · $8,56515.6 / 96.0 GBQ4FitsQ8FitsFP16Fitsup to 698
Mac Studio M5 Ultra 256GBunified memory · $9,49915.6 / 192.0 GBQ4FitsQ8FitsFP16Fitsup to 440
Mac Studio M5 Ultra 512GBunified memory · $22,29915.6 / 384.0 GBQ4FitsQ8FitsFP16Fitsup to 440

16B–21B models we track

Memory needed by each 16B–21B model we track
ModelQ4_K_MQ8_0FP16
LLaDA2.1-mini16.3B params · inclusionAI · MoE12.3 GB20.9 GB38.4 GB
LLaDA2.0-mini16.3B params · inclusionAI · MoE12.3 GB20.9 GB38.4 GB
Ling-mini-2.016.3B params · inclusionAI · MoE12.3 GB20.9 GB38.4 GB
Ring-mini-2.016.3B params · inclusionAI · MoE12.3 GB20.9 GB38.4 GB
LLaDA2.2-mini16.3B params · inclusionAI · MoE12.3 GB20.9 GB38.4 GB
LLaDA2.0-mini-preview16.3B params · inclusionAI · MoE12.3 GB20.9 GB38.4 GB
Kimi-VL-A3B-Instruct16.4B params · moonshotai · MoE12.4 GB21.0 GB38.7 GB
Kimi-VL-A3B-Thinking16.4B params · moonshotai · MoE12.4 GB21.0 GB38.7 GB
Kimi-VL-A3B-Thinking-250616.4B params · moonshotai · MoE12.4 GB21.0 GB38.7 GB
Ring-mini-linear-2.016.4B params · inclusionAI · MoE12.5 GB21.1 GB38.8 GB
Ling-lite16.8B params · inclusionAI · MoE12.7 GB21.5 GB39.6 GB
Ling-lite-1.5-250716.8B params · inclusionAI · MoE12.7 GB21.5 GB39.6 GB
Ling-lite-1.516.8B params · inclusionAI · MoE12.7 GB21.5 GB39.6 GB
Ring-lite16.8B params · inclusionAI · MoE12.7 GB21.5 GB39.6 GB
Ling-Coder-lite16.8B params · inclusionAI · MoE12.7 GB21.5 GB39.6 GB
Ring-lite-distill-preview16.8B params · inclusionAI · MoE12.7 GB21.5 GB39.6 GB
Groot-19B-A3B-26102319.4B params · GrootTeam · MoE14.5 GB24.7 GB45.7 GB
internlm2_5-20b-chat19.9B params · internlm14.8 GB25.3 GB46.7 GB
maple-preview20.2B params · deepgrove · MoE15.1 GB25.7 GB47.5 GB
reka-flash-320.9B params · RekaAI15.6 GB26.5 GB49.1 GB
gpt-oss-20b20.9B params · openai · MoE15.6 GB26.6 GB49.1 GB
ERNIE-4.5-21B-A3B-Thinking21.8B params · baidu · MoE16.2 GB27.7 GB51.2 GB
ERNIE-4.5-21B-A3B-PT21.9B params · baidu · MoE16.3 GB27.8 GB51.5 GB

Have a different amount of memory? Try the VRAM calculator or see best LLMs by VRAM size.

Quick answers

How much VRAM do I need for a 16B–21B model?
About 15.6 GB at Q4_K_M, 26.6 GB at Q8_0 and 49.1 GB at FP16, at a ~4k context. That is for gpt-oss-20b (20.9B parameters): weights plus about 15% for the KV cache and 1 GB for the runtime.
How much VRAM does a 16B–21B model need for 32k context?
About 16.3 GB at Q4_K_M with an FP16 KV cache, or 15.9 GB with a Q8 cache, based on gpt-oss-20b's published config. Models with different attention layouts need more or less.
What is the cheapest GPU for a 16B–21B model?
Of the GPUs we track, the Radeon RX 7900 XT (20 GB, $899 list price) is the cheapest that runs it fully on the GPU at Q4.
Can a Mac run a 16B–21B model?
Yes. The cheapest Mac or unified-memory mini PC we track that runs it at Q4 is the Mac mini M6 24GB (24 GB, about 18.0 GB usable, $1,299).
Does a MoE model of the same size need less VRAM?
No. A mixture-of-experts model still has to hold all of its weights in memory, so it needs about the same VRAM as a dense model with the same total parameters. It runs faster, because only a few experts are read per token.

Other sizes: 1B–2B · 2B–3B · 4B–6B · 7B–8B · 12B–14B · 24B–27B · 30B–32B · 40B–50B · 70B · 120B · 200B–300B · 300B–480B · 500B–800B · 1T+ · All sizes · Ollama VRAM by tag · GGUF sizes by quant

New models, and what they need to run

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