Can I run it?

Pick your hardware and context length to see which models fit, at the best quality that fits, with the memory each needs and a rough generation speed. Memory counts the weights, the context cache (from each model's real attention layout) and runtime buffers. Each model page has copy-paste commands for Ollama, llama.cpp, LM Studio and MLX.

ContextQualityContext cache
89 of 143 models fit

RTX 4060 Ti · 16 GB: about 15 GB usable for a model. The best fit at 8K context is Nanbeige4.2 3B (index 67.2) at 8-bit, needing 5.8 GB and generating roughly 46 tokens/s.

ModelIndexRuns atMemory neededSpeedParams
Ternary Bonsai 2 27B PrismMLIndex 71.2 · Q2_0 (as released) · 27.4B71.2Q2_0 (as released) Q2_09.3 GB≈ 26 tok/s27.4B
Nanbeige4.2 3B Nanbeige (Kanzhun)Index 67.2 · 8-bit · 4.2B67.28-bit Q8_05.8 GB≈ 46 tok/s4.2B
Spark-X2.6 4B SparkLLM (XHToken)Index 66.5 · 8-bit · 4.1B66.58-bit Q8_05.3 GB≈ 46 tok/s4.1B
Spark-X2.5 4B SparkLLM (XHToken)Index 65.9 · 8-bit · 4.1B65.98-bit Q8_05.3 GB≈ 46 tok/s4.1B
gpt-oss-20b OpenAIIndex 64.7 · 4-bit · 20.9B64.74-bit Q4_K_M14 GB≈ 46 tok/s20.9B (3.6B active)
Qwen3.5 9B Alibaba (Qwen)Index 64.1 · 8-bit · 9B64.18-bit Q8_011 GB≈ 21 tok/s9B
Apriel 1.6 15B Thinker ServiceNow (Apriel)Index 63.3 · 6-bit · 14.9B63.36-bit Q6_K15 GB≈ 17 tok/s14.9B
Granite 4.2 8B IBM (Granite)Index 62.7 · 8-bit · 8B62.78-bit Q8_011 GB≈ 24 tok/s8B
Ministral 3 14B Mistral AIIndex 61.6 · 6-bit · 14B61.66-bit Q6_K14 GB≈ 18 tok/s14B
LFM3 1.7B Liquid AIIndex 61.2 · 8-bit · 1.7B61.28-bit Q8_02.5 GB≈ 110 tok/s1.7B
MiniCPM5 2B OpenBMB (MiniCPM)Index 60.9 · 8-bit · 2.5B60.98-bit Q8_03.6 GB≈ 75 tok/s2.5B
Mellum2.1 12B-A2.5B Thinking JetBrains (Mellum)Index 60.8 · 8-bit · 12.2B60.88-bit Q8_014 GB≈ 38 tok/s12.2B (2.5B active)
Qwen3 4B Thinking 2507 Alibaba (Qwen)Index 59.8 · 8-bit · 4B59.88-bit Q8_06.0 GB≈ 47 tok/s4B
Qwen3.5 4B Alibaba (Qwen)Index 59.7 · 8-bit · 4B59.78-bit Q8_05.1 GB≈ 47 tok/s4B
Nemotron Labs Dory 1.0 4B NVIDIAIndex 58.6 · 8-bit · 4B58.68-bit Q8_05.2 GB≈ 48 tok/s4B
Falcon H1R 7B TII (Falcon)Index 58.6 · 8-bit · 7.6B58.68-bit Q8_09.1 GB≈ 25 tok/s7.6B
Gemma 4 12B GoogleIndex 58.3 · 8-bit · 11.9B58.38-bit Q8_014 GB≈ 16 tok/s11.9B
Ministral 3 8B Mistral AIIndex 57.7 · 8-bit · 8B57.78-bit Q8_010 GB≈ 24 tok/s8B
Granite 4.2 3B IBM (Granite)Index 57.3 · 8-bit · 3B57.38-bit Q8_04.4 GB≈ 63 tok/s3B
Phi-4-reasoning-plus Microsoft (Phi)Index 57.2 · 6-bit · 14.7B57.26-bit Q6_K15 GB≈ 17 tok/s14.7B
MiniCPM-SALA OpenBMB (MiniCPM)Index 56.9 · 8-bit · 9.5B56.98-bit Q8_011 GB≈ 20 tok/s9.5B
DeepSeek-R1-0528-Qwen3-8B DeepSeekIndex 56.3 · 8-bit · 8.2B56.38-bit Q8_011 GB≈ 23 tok/s8.2B
Hunyuan 7B Instruct Tencent (Hunyuan)Index 55.8 · 8-bit · 7.5B55.88-bit Q8_09.7 GB≈ 25 tok/s7.5B
Ling 3.0 Tiny InclusionAI (Ling)Index 54.9 · 8-bit · 7.9B54.98-bit Q8_09.3 GB≈ 68 tok/s7.9B (1.4B active)
Qwen3 8B Alibaba (Qwen)Index 53.9 · 8-bit · 8.2B53.98-bit Q8_011 GB≈ 23 tok/s8.2B
Ministral 3 3B Mistral AIIndex 53.8 · 8-bit · 3B53.88-bit Q8_04.6 GB≈ 63 tok/s3B
Step3-VL-10B StepFunIndex 53.2 · 8-bit · 10B53.28-bit Q8_013 GB≈ 19 tok/s10B
Nemotron Nano 9B v2 NVIDIAIndex 52.9 · 8-bit · 8.9B52.98-bit Q8_010 GB≈ 21 tok/s8.9B
Spark-X2.6 1.7B SparkLLM (XHToken)Index 52.3 · 8-bit · 1.7B52.38-bit Q8_02.5 GB≈ 111 tok/s1.7B
OLMo 3 7B Think Ai2 (OLMo)Index 52.3 · 8-bit · 7.3B52.38-bit Q8_011 GB≈ 26 tok/s7.3B
Edge0 8B-A1B (preview) Edge0Index 50.1 · 8-bit · 7.9B50.18-bit Q8_09.3 GB≈ 68 tok/s7.9B (1.4B active)
Tri-21B Think Trillion LabsIndex 47.2 · 4-bit · 20.7B47.24-bit Q4_K_M15 GB≈ 16 tok/s20.7B
MiMo-7B-RL Xiaomi (MiMo)Index 45.8 · 8-bit · 7.8B45.88-bit Q8_010 GB≈ 24 tok/s7.8B
DeepSeek-R1-Distill-Qwen-7B DeepSeekIndex 45.6 · 8-bit · 7.6B45.68-bit Q8_09.2 GB≈ 25 tok/s7.6B
LFM2.5 2.6B Liquid AIIndex 44.7 · 8-bit · 2.7B44.78-bit Q8_03.6 GB≈ 70 tok/s2.7B
Ling-mini-2.0 InclusionAI (Ling)Index 43.0 · 6-bit · 16.3B43.06-bit Q6_K15 GB≈ 88 tok/s16.3B (1.4B active)
EXAONE 4.0 1.2B LG AI Research (EXAONE)Index 42.5 · 8-bit · 1.3B42.58-bit Q8_02.4 GB≈ 148 tok/s1.3B
Gemma 4 E4B GoogleIndex 40.9 · 8-bit · 8B40.98-bit Q8_09.3 GB≈ 42 tok/s8B
LFM2.5 8B-A1B Liquid AIIndex 40.1 · 8-bit · 8.5B40.18-bit Q8_09.8 GB≈ 95 tok/s8.5B (1B active)
Mellum2 12B-A2.5B Instruct JetBrains (Mellum)Index 39.2 · 8-bit · 12.2B39.28-bit Q8_014 GB≈ 38 tok/s12.2B (2.5B active)
Gemma 4 E2B GoogleIndex 37.4 · 8-bit · 5.1B37.48-bit Q8_06.1 GB≈ 82 tok/s5.1B
SmolLM3 3B Hugging Face (SmolLM)Index 36.8 · 8-bit · 3.1B36.88-bit Q8_04.4 GB≈ 62 tok/s3.1B
LLaDA2.2 mini InclusionAI (Ling)Index 36.2 · 6-bit · 16.3B36.26-bit Q6_K15 GB≈ 88 tok/s16.3B (1.4B active)
Qwen3.5 2B Alibaba (Qwen)Index 35.9 · 8-bit · 2.3B35.98-bit Q8_03.1 GB≈ 82 tok/s2.3B
LFM2.5 1.2B Thinking Liquid AIIndex 34.7 · 8-bit · 1.2B34.78-bit Q8_01.9 GB≈ 162 tok/s1.2B
Gemma 3 12B GoogleIndex 29.5 · 8-bit · 12.2B29.58-bit Q8_015 GB≈ 16 tok/s12.2B
MiniCPM5 1B OpenBMB (MiniCPM)Index 29.4 · 8-bit · 1.1B29.48-bit Q8_01.9 GB≈ 176 tok/s1.1B
Phi-4 Microsoft (Phi)Index 26.2 · 6-bit · 14.7B26.26-bit Q6_K15 GB≈ 17 tok/s14.7B
LFM2.5 1.2B Instruct Liquid AIIndex 25.4 · 8-bit · 1.2B25.48-bit Q8_01.9 GB≈ 162 tok/s1.2B
MiniCPM-V 4.6 OpenBMB (MiniCPM)Index 24.7 · 8-bit · 1.3B24.78-bit Q8_02.0 GB≈ 146 tok/s1.3B
Gemma 3n E4B GoogleIndex 24.6 · 8-bit · 7.8B24.68-bit Q8_09.1 GB≈ 47 tok/s7.8B
Apertus 1.5 8B Swiss AI Initiative (Apertus)Index 23.4 · 8-bit · 8.9B23.48-bit Q8_011 GB≈ 21 tok/s8.9B
Gemma 3n E2B GoogleIndex 20.9 · 8-bit · 5.4B20.98-bit Q8_06.5 GB≈ 95 tok/s5.4B
Llama 3.1 8B MetaIndex 20.3 · 8-bit · 8B20.38-bit Q8_010 GB≈ 24 tok/s8B
Gemma 3 4B GoogleIndex 19.4 · 8-bit · 4.3B19.48-bit Q8_05.4 GB≈ 44 tok/s4.3B
Llama 3.2 3B MetaIndex 19.1 · 8-bit · 3.2B19.18-bit Q8_04.9 GB≈ 59 tok/s3.2B
LFM2.5 350M Liquid AIIndex 16.6 · 8-bit · 350M16.68-bit Q8_01.0 GB≈ 542 tok/s350M
Phi-4-mini Microsoft (Phi)Index 15.8 · 8-bit · 3.8B15.88-bit Q8_05.7 GB≈ 50 tok/s3.8B
Qwen3.5 0.8B Alibaba (Qwen)Index 14.3 · 8-bit · 900M14.38-bit Q8_01.6 GB≈ 211 tok/s900M
Gemma 3 270M GoogleIndex 12.8 · 8-bit · 270M12.88-bit Q8_00.8 GB≈ 703 tok/s270M
Gemma 3 1B GoogleIndex 8.9 · 8-bit · 1B8.98-bit Q8_01.6 GB≈ 190 tok/s1B
Llama 3.2 1B MetaIndex 8.7 · 8-bit · 1.2B8.78-bit Q8_02.1 GB≈ 158 tok/s1.2B
Baguettotron PleIAsNo index · 8-bit · 320M—8-bit Q8_0 · max 4K1.1 GB≈ 593 tok/s320M
ERNIE 4.5 0.3B Baidu (ERNIE)No index · 8-bit · 360M—8-bit Q8_01.0 GB≈ 527 tok/s360M
MiniCPM-V 4.6 Thinking OpenBMB (MiniCPM)No index · 8-bit · 1.3B—8-bit Q8_02.0 GB≈ 146 tok/s1.3B
MiniCPM-V 4.7 1B OpenBMB (MiniCPM)No index · 8-bit · 1.6B—8-bit Q8_02.3 GB≈ 122 tok/s1.6B
LFM3-VL 2B Liquid AINo index · 8-bit · 1.9B—8-bit Q8_02.7 GB≈ 99 tok/s1.9B
LFM3-Omni 2B Liquid AINo index · 8-bit · 2.2B—8-bit Q8_03.0 GB≈ 87 tok/s2.2B
LFM2.5-VL 3B Liquid AINo index · 8-bit · 3.1B—8-bit Q8_04.0 GB≈ 61 tok/s3.1B
Nemotron 3 Nano 4B NVIDIANo index · 8-bit · 4B—8-bit Q8_05.6 GB≈ 47 tok/s4B
AgentCPM-Explore 4B OpenBMB (MiniCPM)No index · 8-bit · 4B—8-bit Q8_06.1 GB≈ 47 tok/s4B
FrogNano 4B Microsoft (Phi)No index · 8-bit · 4.7B—8-bit Q8_05.8 GB≈ 41 tok/s4.7B
Teuken 7B Instruct v0.6 OpenGPT-X (Teuken)No index · 8-bit · 7.5B—8-bit Q8_0 · max 4K8.7 GB≈ 25 tok/s7.5B
Salamandra 7B Instruct Barcelona Supercomputing Center (ALIA)No index · 8-bit · 7.8B—8-bit Q8_010.0 GB≈ 24 tok/s7.8B
Nemotron 3.5 Bolt E4B NVIDIANo index · 8-bit · 8B—8-bit Q8_09.3 GB≈ 42 tok/s8B
Luciole 8B Instruct OpenLLM-France (Luciole)No index · 8-bit · 8.1B—8-bit Q8_09.4 GB≈ 23 tok/s8.1B
MiMo-VL-7B-RL Xiaomi (MiMo)No index · 8-bit · 8.3B—8-bit Q8_011 GB≈ 23 tok/s8.3B
Rnj-1.5 Instruct Essential AI (Rnj)No index · 8-bit · 8.3B—8-bit Q8_011 GB≈ 23 tok/s8.3B
GLM-4.6V-Flash Z.ai (GLM)No index · 8-bit · 9B—8-bit Q8_011 GB≈ 21 tok/s9B
EuroLLM 9B Instruct (2512) EuroLLM (UTTER consortium)No index · 8-bit · 9.2B—8-bit Q8_012 GB≈ 21 tok/s9.2B
MiniCPM-o 4.5 OpenBMB (MiniCPM)No index · 8-bit · 9.4B—8-bit Q8_012 GB≈ 20 tok/s9.4B
MiMo-V2.6-Distill-Qwen-9B Xiaomi (MiMo)No index · 8-bit · 9.4B—8-bit Q8_012 GB≈ 20 tok/s9.4B
HyperCLOVA X SEED Omni 8B NAVER (HyperCLOVA X)No index · 8-bit · 10.7B—8-bit Q8_0 · max 8K13 GB≈ 18 tok/s10.7B
Bielik 11B v3 Instruct SpeakLeash (Bielik)No index · 8-bit · 11.2B—8-bit Q8_014 GB≈ 17 tok/s11.2B
Phi-4-reasoning-vision-15B Microsoft (Phi)No index · 6-bit · 15B—6-bit Q6_K15 GB≈ 16 tok/s15B
Ring-mini-2.0 InclusionAI (Ling)No index · 6-bit · 16.3B—6-bit Q6_K15 GB≈ 88 tok/s16.3B (1.4B active)
Kimi-VL-A3B-Thinking-2506 Moonshot AI (Kimi)No index · 6-bit · 16.4B—6-bit Q6_K15 GB≈ 44 tok/s16.4B (2.8B active)
gpt-oss-safeguard-20b OpenAINo index · 4-bit · 20.9B—4-bit Q4_K_M14 GB≈ 46 tok/s20.9B (3.6B active)
ERNIE 4.5 21B-A3B Thinking Baidu (ERNIE)No index · 4-bit · 21.8B—4-bit Q4_K_M15 GB≈ 55 tok/s21.8B (3B active)

Estimates for llama.cpp-style GGUF inference (Ollama, LM Studio and llama.cpp itself). Macs reserve part of their memory for the system by default; phones leave about half of it to apps. For per-device picks on phones, Raspberry Pi and Jetson, see LLMs for edge devices. Vision encoders and very long prompts add more on top. See the methodology.

Best models by device

Questions

How much memory does an LLM need to run locally?

Three parts add up: the weights (parameters × bits per weight ÷ 8), the context cache, which grows with every token in the conversation, and about half a gigabyte of runtime buffers. At 4-bit (Q4_K_M, about 4.85 bits per weight) an 8B model's weights take about 4.8 GB, and Llama 3.1 8B needs another 4.3 GB for a 32K-token context at 16-bit.

Why does the context length change what fits?

Each token in the context keeps keys and values for every attention layer. Llama 3.1 8B stores about 128 KB per token, so 128K tokens need 17 GB, more than its 4-bit weights. Newer hybrid designs such as Qwen3.8 27B use full attention in only some layers, so their cache is far smaller: 8.6 GB at 128K. An 8-bit context cache halves these numbers.

Can I run a model that is bigger than my GPU memory?

Yes, with llama.cpp or Ollama part of the model can stay in system RAM, at a cost in speed. It works best for Mixture-of-Experts models, which read only a few experts per token: Qwen3.6 35B-A3B has 35B parameters but reads only 3B per token, about 1.8 GB at 4-bit. Turn on "Spill into system RAM" above to see it.

How accurate are the speed estimates?

Generating text is limited by memory bandwidth: every new token reads the active weights once. The estimate divides the hardware's bandwidth by that amount and applies a typical efficiency, so expect real speeds within about a third either way. It covers generation with a short prompt; reading a long prompt and very full contexts are slower.