Skip to content
TopLLM
Local LLMs

LLM VRAM calculator: can my Mac or GPU run it?

Short answer

On a RTX 4090 24GB with Q4_K_M at 32K context, 30 of the 73 open models with a known size fit. The strongest is gpt-oss-20b at about 19.5 GB, roughly 58 tokens per second. Change the hardware, context or quant below.

Estimates from a stated formula, checked December 1, 2026 · open weight models with a published size

Qwen3 14B

8.5 GB weights + 5.9 GB KV cache + 0.8 GB overhead = 15.2 / 24 GB (fits)

ModelParamsQuantKV @32KFit
gpt-oss-20bOpenAI20BQ4_K_M12.1 GB6.6 GB19.5 GBFits~58
Ministral 3 14B 2512Mistral14BQ4_K_M8.5 GB5.9 GB15.2 GBFits~83
Qwen3 14BQwen14BQ4_K_M8.5 GB5.9 GB15.2 GBFits~83
ReMM SLERP 13BUndi9513BQ4_K_M7.9 GB5.8 GB14.5 GBFits~90
MythoMax 13BGryphe13BQ4_K_M7.9 GB5.8 GB14.5 GBFits~90
Gemma 3 12BGoogle12BQ4_K_M7.3 GB5.6 GB13.7 GBFits~97
UnslopNemo 12BTheDrummer12BQ4_K_M7.3 GB5.6 GB13.7 GBFits~97
Rocinante 12BTheDrummer12BQ4_K_M7.3 GB5.6 GB13.7 GBFits~97
Ternary Bonsai 2 9BPrismML9BQ4_K_M5.5 GB5.2 GB11.5 GBFits~129
Qwen3.5-9BQwen9BQ4_K_M5.5 GB5.2 GB11.5 GBFits~129
Granite 4.2 8BIBM8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Granite 4.1 8BIBM8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Ministral 3 8BMistral8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Qwen3 VL 8B InstructQwen8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Aion-RP 1.0 (8B)AionLabs8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Llama 3 8B LunarisSao10K8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Llama 3.1 8B InstructMeta8BQ4_K_M4.9 GB5 GB10.6 GBFits~145
Command R7B (12-2024)Cohere7BQ4_K_M4.2 GB4.8 GB9.9 GBFits~166
Qwen2.5 7B InstructQwen7BQ4_K_M4.2 GB4.8 GB9.9 GBFits~166
Gemma 3n 4BGoogle4BQ4_K_M2.4 GB4 GB7.3 GBFits~291
Gemma 3 4BGoogle4BQ4_K_M2.4 GB4 GB7.3 GBFits~291
Ministral 3 3B 2512Mistral3BQ4_K_M1.8 GB3.8 GB6.4 GBFits~388
Llama 3.2 3B InstructMeta3BQ4_K_M1.8 GB3.8 GB6.4 GBFits~388
LFM3-1.7BLiquid AI1.7BQ4_K_M1 GB3.2 GB5.1 GBFits~685
Llama 3.2 1B InstructMeta1BQ4_K_M0.6 GB3.2 GB4.6 GBFits~1164
Gemma 4 26B A4BGoogle26B (4B active)Q4_K_M15.8 GB7.1 GB23.7 GBTight~291
LFM2.5-24B-A2BLiquid AI24B (2B active)Q4_K_M14.6 GB7 GB22.3 GBTight~582
Cydonia 24B V4.1TheDrummer24BQ4_K_M14.6 GB7 GB22.3 GBTight~48
Mistral Small 3.2 24BMistral24BQ4_K_M14.6 GB7 GB22.3 GBTight~48
Mistral Small 3.1 24BMistral24BQ4_K_M14.6 GB7 GB22.3 GBTight~48
Qwen3.8 27BQwen27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43
Gemma 4 31BGoogle31BQ4_K_M18.8 GB7.5 GB27.1 GBNo~38
Qwen3.8 2.4T A95BQwen2.4T (95B active)Q4_K_M1455 GB17.2 GB1473 GBNo~12
Beam 1.0 501B A23BReflection501B (23B active)Q4_K_M303.7 GB17.2 GB321.7 GBNo~51
Qwen3 Coder 480B A35BQwen480B (35B active)Q4_K_M291 GB17 GB308.8 GBNo~33
Hermes 4 405BNous405BQ4_K_M245.5 GB16.2 GB262.6 GBNo~3
Qwen3.5 397B A17BQwen397B (17B active)Q4_K_M240.7 GB16.1 GB257.6 GBNo~68
Qwen3 VL 235B A22B InstructQwen235B (22B active)Q4_K_M142.5 GB13.8 GB157.1 GBNo~53
Qwen3 235B A22B Thinking 2507Qwen235B (22B active)Q4_K_M142.5 GB13.8 GB157.1 GBNo~53
Qwen3 235B A22B Instruct 2507Qwen235B (22B active)Q4_K_M142.5 GB13.8 GB157.1 GBNo~53
Mixtral 8x22B InstructMistral176B (44B active)Q4_K_M106.7 GB12.6 GB120.1 GBNo~26
WizardLM-2 8x22BMicrosoft176B (44B active)Q4_K_M106.7 GB12.6 GB120.1 GBNo~26
Qwen3.5-122B-A10BQwen122B (10B active)Q4_K_M74 GB11.4 GB86.2 GBNo~116
gpt-oss-120bOpenAI120BQ4_K_M72.8 GB11.3 GB84.8 GBNo~10
Qwen3 Next 80B A3B InstructQwen80B (3B active)Q4_K_M48.5 GB9.9 GB59.2 GBNo~388
Qwen3 Next 80B A3B ThinkingQwen80B (3B active)Q4_K_M48.5 GB9.9 GB59.2 GBNo~388
Qwen2.5 VL 72B InstructQwen72BQ4_K_M43.7 GB9.7 GB54.1 GBNo~16
Magnum v4 72BAnthraciteorg72BQ4_K_M43.7 GB9.7 GB54.1 GBNo~16
Qwen2.5 72B InstructQwen72BQ4_K_M43.7 GB9.7 GB54.1 GBNo~16
Hermes 4 70BNous70BQ4_K_M42.4 GB9.7 GB52.9 GBNo~17
Llama 3.3 Euryale 70BSao10K70BQ4_K_M42.4 GB9.7 GB52.9 GBNo~17
Llama 3.3 70B InstructMeta70BQ4_K_M42.4 GB9.7 GB52.9 GBNo~17
Llama 3.1 70B InstructMeta70BQ4_K_M42.4 GB9.7 GB52.9 GBNo~17
Ripple 65B PreviewRicursive65BQ4_K_M39.4 GB9.4 GB49.6 GBNo~18
Skyfall 36B V2TheDrummer36BQ4_K_M21.8 GB7.9 GB30.5 GBNo~32
Qwen3.6 35B A3BQwen35B (3B active)Q4_K_M21.2 GB7.8 GB29.8 GBNo~388
Qwen3.5-35B-A3BQwen35B (3B active)Q4_K_M21.2 GB7.8 GB29.8 GBNo~388
Olmo 3 32B ThinkAllenAI32BQ4_K_M19.4 GB7.7 GB27.9 GBNo~36
Qwen3 32BQwen32BQ4_K_M19.4 GB7.7 GB27.9 GBNo~36
Qwen2.5 Coder 32B InstructQwen32BQ4_K_M19.4 GB7.7 GB27.9 GBNo~36
Muse Glimmer 30BMeta30BQ4_K_M18.2 GB7.4 GB26.4 GBNo~39
Nemotron 3 Nano 30B A3BNVIDIA30B (3B active)Q4_K_M18.2 GB7.4 GB26.4 GBNo~388
Qwen3 VL 30B A3B InstructQwen30B (3B active)Q4_K_M18.2 GB7.4 GB26.4 GBNo~388
Qwen3 Coder 30B A3B InstructQwen30B (3B active)Q4_K_M18.2 GB7.4 GB26.4 GBNo~388
Qwen3 30B A3B Instruct 2507Qwen30B (3B active)Q4_K_M18.2 GB7.4 GB26.4 GBNo~388
Qwen3 30B A3BQwen30B (3B active)Q4_K_M18.2 GB7.4 GB26.4 GBNo~388
Xing4.0 29B A4B (free)XingChen29B (4B active)Q4_K_M17.6 GB7.4 GB25.8 GBNo~291
DaisyRose 27BRadixArk27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43
Ternary Bonsai 2 27BPrismML27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43
Qwen3.6 27BQwen27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43
Qwen3.5-27BQwen27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43
Gemma 3 27BGoogle27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43
Gemma 2 27BGoogle27BQ4_K_M16.4 GB7.2 GB24.4 GBNo~43

Hardware guides

A page for each common card, VRAM size and Mac, with the best picks for it.

How the numbers are worked out

Weights are the parameter count times the bits per weight of the quant: 4.85 for Q4_K_M, 5.69 for Q5_K_M, 8.5 for Q8_0 and 16 for FP16. KV cache assumes grouped query attention with 8 KV heads of 128 dimensions stored at 16 bit, with the layer count estimated from model size. Overhead is a flat 0.8 GB for the runtime. Speed is memory bandwidth divided by the size of the active weights, at about 70% efficiency. Real models differ, so treat a tight fit as a maybe.

Local LLM questions

How much quality do I lose with 4 bit quantization?

Q4_K_M keeps most of a model's quality for chat and coding, and it is the default in Ollama and LM Studio for that reason. Q5 and Q8 are closer to the original if you have memory to spare. Very small models lose more than large ones.

How much of a Mac's memory can the GPU use?

macOS lets the GPU use about two thirds of memory on Macs with 36 GB or less and about three quarters on larger ones. The calculator applies that limit. Advanced users can raise it, at the cost of memory for everything else.

What is the KV cache and why does context matter?

The KV cache stores what the model has already read, and it grows with every token of context. A long chat or a big document can need several gigabytes on top of the weights, so a model that fits at 8K context may not fit at 128K.

What happens if a model does not fit?

Tools like llama.cpp and Ollama can offload some layers to system memory and the CPU. It runs, but generation drops sharply, often by five times or more. Picking a smaller model or a lower quant is usually the better trade.

How accurate are the speed estimates?

Generation speed is limited by memory bandwidth. We divide the RTX 4090 24GB's 1008 GB/s by the size of the active weights and assume about 70% efficiency. Real numbers vary with the runtime, the prompt length and batch size.