Short answer: choose a local model for the task you need, the memory you have, and the quality you can check, not simply the largest file that fits. Start with a small, compatible chat model, leave room for your operating system and conversation, and try a few prompts with answers you already know. Move up only if the smaller model struggles and your computer has enough headroom.
Check your own machine: Can I run it? or see every model's size in Model Requirements.
A model is the part that produces the answer; the app is the window you use it through. Memory limits your choices, but model size alone is not a quality score. Language support, the task, quantization and context length matter too. The tables below are starting points based on published documentation, not a promise that one model is best for every machine.
If you have not picked an app yet, find your local AI app. For memory planning, see how much memory a local AI model needs.



What do model labels like 7B and Q4_K_M mean?
- Parameters: the learned values in a model. A name containing “B” commonly refers to billions of parameters; it is not a quality score.
- Quantization: storing model values with fewer bits to reduce resource needs. Labels such as Q4_K_M (about 4 bits) and BF16 (16 bits) tell you which version you are downloading. Our guide to GGUF and quant names like Q4_K_M explains how to pick a file. The trade-off depends on the model, method and task.
- Context: the working space for your prompt, conversation and response, measured in tokens. Longer context can require more memory.
- Instruct or chat: models adapted for following instructions or conversation. Check the model card for its intended use.
- Mixture of experts (MoE): names like Gemma 4 26B A4B mean only a few billion parameters (here 3.8B of 25.2B) work on each token. That makes them faster, but the whole file still has to fit in memory.
How much RAM do you need to run an LLM?
Use a simple rule of thumb from Hugging Face’s documentation: loading a model with X billion parameters takes roughly 2 × X GB in 16-bit precision (bfloat16), and 4 × X GB in 32-bit. A 4-bit file needs roughly a quarter of the 16-bit figure, plus some overhead. For the app itself, LM Studio recommends 16GB of RAM, and says 8GB Macs can manage smaller models.
Real files bear this out. For Qwen 3.5 9B, Ollama lists 19GB at 16-bit and 6.6GB at Q4_K_M. For Gemma 4 31B, the figures are 63GB and 20GB. Across the six models in the chart below, the 4-bit file is about a third of the 16-bit one.

Context adds to the bill (our context length guide explains what it is and how to change it). Hugging Face’s worked example shows the cache for a 16,000-token conversation on a 15B model needing about 15GB, roughly half as much as the weights. Ollama sets its default context by graphics memory: 4k tokens below 24GB of VRAM, 32k from 24GB to 48GB, and 256k at 48GB or more.
So aim for a download that is clearly smaller than your memory. That leaves room for the operating system, your other apps and the conversation itself. On a PC, memory on the graphics card (VRAM) is much faster than ordinary RAM; on an Apple Silicon Mac, the two are one shared pool.
Which local model fits 8GB, 16GB or 32GB?
These are well-known families on the Ollama library, with the 4-bit download size Ollama lists. The memory column is our estimate from those sizes, not a vendor figure, except for gpt-oss, where OpenAI’s own guidance is quoted on the Ollama page.
| Size | Model | Download (4-bit) | Comfortable on | License |
|---|---|---|---|---|
| Tiny | Llama 3.2 3B | 2.0GB | 8GB | Llama 3.2 Community License |
| Tiny | Qwen 3.5 4B | 3.3GB | 8GB | Apache 2.0 |
| Small | Qwen 3.5 9B | 6.6GB | 16GB | Apache 2.0 |
| Small | Gemma 4 12B | 8.0GB | 16GB | Apache 2.0 |
| Medium | gpt-oss-20b | 14GB | 16GB (tight) to 24GB | Apache 2.0 |
| Medium | Qwen 3.5 27B | 17GB | 24GB to 32GB | Apache 2.0 |
| Medium | Gemma 4 26B A4B | 18GB | 24GB to 32GB | Apache 2.0 |
| Large | DeepSeek-R1 70B | 43GB | 64GB | MIT, with Llama 3.3 terms for this distill |
| Large | gpt-oss-120b | 65GB | A single 80GB GPU | Apache 2.0 |
Gemma 4 comes in several sizes, and the right one depends on whether you have a laptop or a graphics card. Our guide to running Gemma 4 in Open WebUI matches each size to a machine and walks through the setup. For picks across other model families, see the best Ollama models by memory and task. New this week: Olala mini fits 16GB, but it doesn't load in Ollama or LM Studio yet.
Which of these picks have we tested?
Six tags were run on our Scout Bench: a MacBook Air with an Apple M5 chip and 24GB of memory, plugged in, using Ollama 0.40.17 on December 1 and 2, 2026. The memory tier is where each one fits with room to spare. Our 8GB picks were measured on the 24GB machine, not on an 8GB one. Needs about = download size + 1GB for a normal chat + 1.5GB of working room, the same sum the Can I run it? checker uses.
| Memory | Pick | Ollama tag | Download | Needs about | Our test |
|---|---|---|---|---|---|
| 8GB | Llama 3.2 3B | llama3.2:3b | 2.0GB | 4.5GB | 49.45 tokens a second, 2.6GB in use (run as llama3.2:latest) |
| 8GB | LFM3 1.7B | lfm3:1.7b-nvfp4 | 1.7GB | 4.2GB | 67.72 tokens a second, 1.7GB in use |
| 16GB | Gemma 4 12B | gemma4:12b | 7.7GB | 10.2GB | 31.59 tokens a second, 8.5GB in use |
| 16GB | Qwen 3.5 9B | qwen3.5:9b | 7.6GB | 10.1GB | 31.56 tokens a second, 8.4GB in use; 23.06 and 16.89 on the next two prompts |
| 16GB | DeepSeek-R1 8B | deepseek-r1:8b | 5.2GB | 7.7GB | 20.87 tokens a second, 4.8GB in use |
| 16GB | Gemma 4 default | gemma4:latest | 9.5GB | 12.0GB | 63.60 tokens a second, 9.4GB in use |
Nothing for 24GB and up has been tested yet. Speed depends on your chip, so use the memory figures as the guide and the speeds as one machine's result. On a 16GB laptop, start with gemma4:12b: it used 8.5GB in our test and leaves room for your browser.
How do you run a specific model?
Each page below covers one model family: the file sizes, the memory it needs on 8GB to 64GB machines, exact Ollama, LM Studio or llama.cpp commands, and the license. Check which model files are safe to download before pulling anything from outside the Ollama library.
- How to run Qwen locally: Qwen 3.8 27B, Qwen 3.6 and Qwen 3.5 sizes, RAM for 8-64GB, thinking mode and GGUF.
- How to run LFM3 locally: Liquid AI's sizes, memory per device, exact Ollama commands, text-to-speech and the license cap.
- How to run MiMo V2.6 locally: Xiaomi's 9B model with one Ollama command, sizes for 8GB, 16GB and 24GB machines and MLX tags.
- How to run Ripple-65B locally: file sizes, memory needed, llama.cpp and MLX steps for Mac and PC, and what its coding benchmarks do and do not prove.
- How to run Xing4.0 29B locally: official GGUF sizes from 11.8GB, memory for 16GB to 32GB machines, llama.cpp and MLX routes.
- Can you run Kimi K3.1 Pro locally?: not at home, the weights are 1,561GB; see the test speed on a 512GB Mac and what to run instead.
- How to use Gemma 4 in Open WebUI: pick the right Gemma 4 size for a 16GB laptop or a 12GB graphics card, then set it up with Ollama.
Running Meta's models? See how to run Llama locally.
Which open models are most popular?
Popularity is a different list from the table above. Sorted by pulls on Ollama’s library on October 26, 2026, Llama 3.1 leads with 120.6 million, followed by DeepSeek-R1 (94.2 million) and Llama 3.2 (86.1 million). Download counts reflect age as much as quality. Newer families such as Gemma 4 (27.8 million) and Qwen 3.5 (23.3 million) have had less time to build up pulls.
So treat popularity as a sign that a model is well supported and easy to find help for, not as proof that it is the best choice for your task.
Can you use local models commercially?
Usually, yes. Most popular open models now use permissive licenses. Gemma 4, Qwen 3.5 and gpt-oss are Apache 2.0, and DeepSeek-R1 weights are MIT, which allow commercial use. DeepSeek’s distilled versions also carry the license of the model they were built from.
Meta’s Llama 3.2 Community License is a custom license. It allows commercial use, but companies with more than 700 million monthly active users must ask Meta for permission. For personal use on your own computer, any of these licenses is fine; read the model card before using a model in a product.
Planning to ship a model to customers? Read how to check a model's license, including the non-commercial ones.
How should you test your first model?
Start small
Use your app’s compatibility information to choose a small instruction-following model. Close memory-heavy apps, ask a short question and compare the output with something you can verify. If the machine becomes unresponsive, try a smaller model or shorter context.
Read the model card
Before investing time in a download, check the supported languages, license, intended use, format and limitations. Two files with similar names can use different quantization levels or be intended for different runtimes.
Keep comparisons fair
Use the same prompts, context length and task. Record the full model name and quantization. Compare quality, responsiveness and memory use together; a faster answer that needs extensive correction may save little time.
How do you free up space from old models?
Model files add up quickly: the table above runs from 2GB to 65GB per download. Delete the ones you no longer use. In Ollama that takes two commands, but shared files and custom storage folders can stop the space from coming back. Our guide on deleting Ollama models and freeing disk space covers each case on Windows, Mac and Linux.
Are there local models for voice and images too?
Yes. Language models are only one kind. Text-to-speech models turn writing into audio, and several run on an ordinary laptop processor; see the best local text-to-speech models. Image models such as SDXL lean on the graphics card instead; see making AI images on your own computer.
On a Mac: which local model fits your memory?
The sections above answer the question by RAM for any computer. A Mac differs mainly because the model shares unified memory with macOS and your apps, and Ollama uses Apple's MLX build of a model where one exists, so download sizes can differ slightly from the PC table above.
Best local LLM by Mac memory
| Mac memory | Install first | Download | License | Command |
|---|---|---|---|---|
| 8GB | Llama 3.2 3B | 2.0GB | Llama 3.2 Community | ollama run llama3.2 |
| 16GB | Gemma 4 12B | 7.7GB | Apache 2.0 | ollama run gemma4:12b |
| 24GB | gpt-oss 20B | 14GB | Apache 2.0 | ollama run gpt-oss:20b |
| 32GB | Qwen3.8 27B | 18.2GB | Apache 2.0 | ollama run qwen3.8:27b |
| 48GB | Qwen3.6 35B-A3B | 23.1GB | Apache 2.0 | ollama run qwen3.6:35b-a3b |
| 64GB | Llama 3.3 70B | 43GB | Llama 3.3 Community | ollama run llama3.3 |
| 128GB | gpt-oss 120B | 65GB | Apache 2.0 | ollama run gpt-oss:120b |
Sizes are what Ollama downloads on a Mac, where it now uses Apple's MLX build of a model if one exists. That is why Gemma 4 12B is 7.7GB here (the MLX build) and 8.0GB in the PC table above (the standard GGUF build); both are the sizes Ollama lists. Each Mac size links to its own page, with more models that fit and my test results. Leave room for macOS, your apps and the conversation itself. To check a model against your exact Mac, use the local LLM memory calculator. Still choosing a Mac? See which Mac to buy for local AI.

Best local LLM by job on a Mac
- Writing, summaries and everyday questions: Gemma 4 (12B on 16GB, 26B or 31B on 32GB).
- Coding: Qwen3.8 27B on 32GB, or qwen3-coder 30B (19GB). For a 27B on a 16GB machine, look at Ternary Bonsai 2.5 27B, a 6.0 to 7.7GB download. For a coding agent on your own model, see Claude Code with Ollama.
- Reasoning, math and planning: gpt-oss 20B on 24GB, gpt-oss 120B on 128GB.
- Reading images, screenshots and charts: Gemma 4 on any size, or Qwen3-VL if images are the main job.
- Scanned documents and PDFs: glm-ocr (2.7GB), a small model built for reading scans.
- Searching your own files: pair a chat model with an embedding model such as nomic-embed-text (274 MB) or bge-m3 for non-English text, in an app like AnythingLLM.
- Agents that call tools: choose a model with the Tools label. See agent skills on local models.
Older models with huge download counts, such as Llama 3.1, DeepSeek-R1 and Gemma 3, still top the charts, but newer ones do the same jobs better. The full table is in the Ollama models list.

What local models still can't do
Local models trail the biggest cloud models on hard reasoning and long, many-step coding jobs. They handle drafting, summaries, document work and most small-business admin well. If you need the top cloud models for some tasks, keep a cloud plan for those and run the rest locally. For prices, see the UK AI price tracker.
Go deeper on models and hardware
- Can you run ChatGPT locally?: which models fit 8GB, 16GB and 24GB of memory, with gpt-oss-20b as the pick for 16GB.
- Local AI vs cloud AI: what quantization labels like Q4_K_M mean, with real file sizes and quality loss.
- Building a local AI server at home: how VRAM and memory bandwidth set speed, and what hardware 8B to 70B models need.
- Ollama vs llama.cpp vs vLLM: which engine to run your model in, from one person on a gaming PC to a shared home server.
- How do LLMs work?: tokens, weights, context windows and why models make things up.
- Local text-to-speech models: six free voice models compared by license, hardware and voice cloning.
- Best GPU for local AI: picks by budget and VRAM.
Which local model should I use? Common questions
Which local model should I use first?
Start with a small instruction-following model supported by your app and suitable for your task and language. Use the memory table as a shortlist, not a ranking: leave room for context and other apps, then compare a few short tasks you can check yourself. A larger model is worth trying only if it improves those answers without making your machine impractical to use.
How much memory does a 7B model need?
At 16-bit, roughly 14GB for the weights alone, using the rule of two bytes per parameter. At 4-bit it drops to about 5GB; Ollama lists DeepSeek-R1 7B at 4.7GB. Add room for context and your other apps.
What does Q4_K_M mean?
It is a 4-bit quantization format used in GGUF files by llama.cpp and Ollama. Each weight is stored in about 4 bits, so the file is much smaller. For Qwen 3.5 9B, Ollama lists 6.6GB at Q4_K_M against 19GB at 16-bit.
Are bigger models always better?
No. A bigger model that spills out of graphics memory runs much more slowly, and a smaller model that fits can be more useful day to day. Test a few on your own tasks.
Sources checked October 26, 2026: Hugging Face, optimizing LLMs for speed and memory · Ollama context length · Ollama library · Ollama pages for Qwen 3.5, Gemma 4, gpt-oss, Llama 3.2 and DeepSeek-R1 · LM Studio system requirements · Hugging Face model cards for Gemma 4 31B, Qwen 3.5 9B and Llama 3.2 3B. This is an explanatory guide based on published documentation, not a hands-on benchmark.
New: Run DeepSeek-R1 locally, every size from 1.1 GB to 404 GB, and local AI on a Chromebook.
More model guides
- How to Run Gemma 4 on a Mac: Which Size Fits and the Free Setup
- Can You Run AutoTrust JEV Locally? Sizes, Memory and Mac Setup
- Best Local LLM for Coding by VRAM: 8, 12, 16, 24 and 32 GB
- How to Run ZAYA1-8B Locally: llama.cpp Support, Memory and Mac Setup
- Can You Run Hy4-flash Locally? Memory, Mac Setup and GGUF Sizes
- Can You Run Inkling 2 Mini Locally? Sizes, Memory and Mac Setup
- How to Run Microsoft Aion 1.0 Locally: Mac, PC and Memory
- How to Run Whisper Locally: whisper.cpp vs faster-whisper vs WhisperX, and the Easy Apps