How much memory do popular local AI models need?

Estimated memory at Q4_K_M with an 8K context, for the most popular open models on Hugging Face. Pick a model for the full table by quantization and context, or compare them all in the model fit chart.

ModelParametersTypeMemory, Q4_K_M, 8KSmallest Mac
Gemma 4 12B11.96BDense9.2 GB16 GB
gpt-oss 20B20.91BMoE, 32 experts14 GB24 GB
Gemma 4 26B-A4B25.81BMoE, 128 experts17 GB24 GB
Qwen3.8 27B27.78BDense19 GB32 GB
GLM-4.7 Flash31.22BMoE, 64 experts21 GB32 GB
Gemma 4 31B31.27BDense22 GB32 GB
Qwen3.6 35B-A3B35.95BMoE, 256 experts23 GB32 GB
gpt-oss 120B117BMoE, 128 experts73 GB128 GB
Mistral Medium 3.5128BDense82 GB128 GB
Qwen3.8 Flash Next180BMoE, 512 experts111 GB192 GB
DeepSeek V4 Flash291BMoE, 256 experts179 GB256 GB
GLM-5.3753BMoE, 256 experts462 GBNone
DeepSeek V4 Pro1,599BMoE, 384 experts978 GBNone
Kimi K32,780BMoE, 896 experts1,700 GBNone

Parameters and attention shapes read from each model's files on Hugging Face on 2026-11-09. Estimates include the weights, the KV cache and 1 GB of buffers, against about three quarters of a Mac's unified memory. How the estimate works.