← Back to blog

The 12 Best Ollama Models for Mac in 2026

Ollama's model library has hundreds of options. Most articles recommend models without telling you whether they'll fit on your machine. This ranking is grouped by MacBook RAM — 8 GB, 16 GB, 24 GB, 32 GB+ — so you can scan to your exact hardware and pick a model that actually runs well, not a model that technically loads and then crashes Activity Monitor. All 12 are available via ollama pull.

Short version: on 8 GB use llama3.2:3b. On 16 GB use qwen2.5:7b, or qwen2.5-coder:14b for code. On 24 GB step up to mistral-nemo:12b for general use; for code, qwen2.5-coder:14b still leads and deepseek-coder-v2:16b is the alternative. On 32 GB+ use qwen2.5:32b, and on 64 GB+ llama3.3:70b. Jump to the table. For iPhone, PocketLLM offers a separate model catalog and a pre-launch waitlist.

PocketLLM is launching soon. Private, on-device AI, starting on iPhone, with more platforms planned. No account required, no in-app tracking, and chat processing stays on your device. Join the launch list and be first in.

One email, the day it launches. No spam, no drip.

How to pick an Ollama model for your Mac

The default Ollama tags are 4-bit builds, on every platform, unless you pull a tag with a different precision. The file sizes below are the sizes that Ollama's tags page lists for each default tag (all 4-bit builds, Q4_0 or Q4_K_M), linked in each entry, and the memory footprints reflect Q4 too. If you're on a tight memory budget, you can sometimes drop to Q3 or Q2 with meaningful quality loss, or if you have headroom, bump to Q5 or Q8 for marginal quality gains. The sweet spot is Q4 on Apple Silicon, full stop.

For 8 GB Macs (MacBook Air M1/M2, Mac mini)

1. llama3.2:3b — Best 8 GB pick

Meta's Llama 3.2 3B is the single best model for 8 GB MacBooks. 2.0 GB on disk at Q4 (Ollama tags page) and uses about 3 GB of RAM while running. Pull: ollama pull llama3.2:3b.

2. phi3.5:3.8b-mini-instruct-q4_0 — Best reasoning on 8 GB

Microsoft's Phi-3.5 Mini. 2.2 GB on disk (Ollama tags page). In Table 7 of Microsoft's Phi-4-Mini technical report, Phi-3.5-Mini scores above Llama-3.2-3B-Instruct on BigBench-Hard (63.1 vs 55.4) and GSM8K (86.2 vs 75.6), and below it on IFEval instruction following (50.6 vs 68.0). For code, Microsoft's Phi-3.5-mini-instruct model card reports 62.8% on HumanEval (0-shot). Run both, use whichever feels right for the task.

3. gemma2:2b — Smallest on 8 GB

Google's Gemma 2 2B. 1.6 GB on disk (Ollama tags page), the smallest download on this list.

For 16 GB Macs (MacBook Air/Pro M1–M4, Mac mini M4)

4. qwen2.5:7b — Best 16 GB pick

Alibaba's Qwen 2.5 7B is the best general-purpose model in this range. Apache 2.0 license, 4.7 GB on disk (Ollama tags page), and in Table 8 of the Qwen2.5 technical report, Qwen2.5-7B-Instruct beats Llama-3.1-8B-Instruct on 12 of the 13 benchmarks (all except IFEval). Pull: ollama pull qwen2.5:7b.

5. llama3.1:8b — Most battle-tested 16 GB pick

The workhorse of the current Llama generation. 4.9 GB on disk (Ollama tags page). Behind Qwen2.5-7B-Instruct on 12 of the 13 benchmarks in Table 8 of the Qwen2.5 technical report (it leads on IFEval), ahead on fine-tune ecosystem and tool integration. Pick this if you're using LangChain, LiteLLM, or another tool with Llama-specific optimizations.

6. qwen2.5-coder:14b — Best 16 GB coding pick

The 14B coding variant of Qwen 2.5. 89.6% HumanEval pass@1 for Qwen2.5-Coder-14B-Instruct in Table 16 of the Qwen2.5-Coder technical report, from a 9.0 GB file (Ollama tags page). Pull: ollama pull qwen2.5-coder:14b. If you use Continue.dev, Cody, or Cursor with Ollama, this is the current best option for "fits on a laptop and writes good code." If you want more memory free for other apps, qwen2.5-coder:7b is a 4.7 GB file on the same tags page, with 88.4% HumanEval pass@1 for Qwen2.5-Coder-7B-Instruct in the same report. See our best local LLMs for coding post for the full coding-focused ranking.

For 24 GB Macs (MacBook Pro M3/M4, M4 Pro)

7. mistral-nemo:12b — Best 24 GB general pick

Mistral + NVIDIA's Mistral Nemo. 128K context window, Apache 2.0, 7.1 GB at Q4 (Ollama tags page). The best open model for long-context tasks that will run comfortably on 24 GB. Excellent at summarization and document Q&A because of the context window.

8. deepseek-coder-v2:16b — 24 GB coding alternative

Mixture-of-experts coding model: DeepSeek's model card lists 16B total parameters with 2.4B active per token. 8.9 GB on disk (Ollama tags page). Our coding pick for 24 GB of RAM. On HumanEval it is behind qwen2.5-coder:14b (#6): in Table 16 of the Qwen2.5-Coder report, DS-Coder-V2-Lite-Instruct scores 81.1% pass@1, against 89.6% for Qwen2.5-Coder-14B-Instruct.

9. gemma2:9b — Solid 24 GB alternative

Google's mid-tier Gemma 2. 5.4 GB (Ollama tags page). In the instruct-model tables of the Qwen2.5 technical report, Gemma2-9B-IT scores above Llama-3.1-8B-Instruct on 8 of the 13 benchmarks in Table 8 and on 8 of the 9 multilingual benchmarks in Table 14. Good choice if you want Google's safety tuning.

For 32 GB+ Macs (MacBook Pro M3/M4 Max, Mac Studio)

10. qwen2.5:32b — Best 32 GB general pick

Qwen 2.5's 32B variant. 20 GB on disk (Ollama tags page). Apache 2.0. If your work tolerates the wait for larger model inference, this is the top non-coding choice.

11. qwen2.5-coder:32b — Best 32 GB coding pick

The coding variant of #10. 92.7% HumanEval pass@1 for Qwen2.5-Coder-32B-Instruct in the Qwen2.5-Coder technical report, from a 20 GB file (Ollama tags page). In the same report's comparison table it scores above both Claude 3.5 Sonnet versions on HumanEval (92.7% vs 89.0% and 92.1%). Covered in depth in our 15 Best LLMs for Coding roundup.

12. llama3.3:70b — Best 64 GB+ frontier pick

Meta's 70B "compact" model. 43 GB on disk at Q4 (Ollama tags page). Needs 64 GB+ of RAM to run comfortably, so this one is for Max-spec and Studio Macs only. Quality is close to Llama 3.1 405B: in Meta's Llama 3.3 model card the Instruct models score 88.4% vs 89.0% on HumanEval pass@1, and the 70B is within 4.4 points of the 405B on all 9 benchmarks in that table. Only pick this if you have the RAM and want the biggest available.

The summary table

#ModelPull commandSizeBest forMacBook RAM
1Llama 3.2 3Bllama3.2:3b2.0 GBGeneral chat8 GB
2Phi-3.5 Miniphi3.52.2 GBReasoning, code8 GB
3Gemma 2 2Bgemma2:2b1.6 GBSmallest download8 GB
4Qwen 2.5 7Bqwen2.5:7b4.7 GBBest general-purpose16 GB
5Llama 3.1 8Bllama3.1:8b4.9 GBEcosystem-heavy16 GB
6Qwen 2.5 Coder 14Bqwen2.5-coder:14b9.0 GBCoding16 GB
7Mistral Nemo 12Bmistral-nemo7.1 GBLong context24 GB
8DeepSeek Coder V2 16Bdeepseek-coder-v28.9 GBCoding24 GB
9Gemma 2 9Bgemma2:9b5.4 GBMultilingual (Qwen2.5 report, Table 14)24 GB
10Qwen 2.5 32Bqwen2.5:32b20 GBGeneral use32 GB+
11Qwen 2.5 Coder 32Bqwen2.5-coder:32b20 GBFrontier-adjacent coding32 GB+
12Llama 3.3 70Bllama3.3:70b43 GBBiggest available64 GB+

Best Ollama models for coding on Mac (by RAM)

If your Mac is mainly a coding machine, the picks narrow down. These are the same models from the list above, filtered to the best code model at each RAM tier — all run through Ollama with Continue.dev, Cody, or Cursor.

Mac RAMCoding modelPull commandWhy
8 GBPhi-3.5 Miniollama pull phi3.5At 2.2 GB (Ollama tags page) it scores above Llama 3.2 3B on BigBench-Hard and GSM8K in Microsoft's Phi-4-Mini report, and its model card reports 62.8% on HumanEval (0-shot); our 8 GB coding pick.
16 GBQwen 2.5 Coder 14Bollama pull qwen2.5-coder:14b89.6% HumanEval pass@1 (Qwen2.5-Coder report) from a 9.0 GB file (Ollama tags page); the best 16 GB coding pick. For more free memory, qwen2.5-coder:7b is a 4.7 GB file with 88.4% in the same report.
24 GBDeepSeek Coder V2 16Bollama pull deepseek-coder-v2Mixture-of-experts (2.4B active params per the model card), 8.9 GB file (Ollama tags page); our coding pick for 24 GB.
32 GB+Qwen 2.5 Coder 32Bollama pull qwen2.5-coder:32b92.7% HumanEval pass@1, above both Claude 3.5 Sonnet versions (89.0% and 92.1%) in the same table of the Qwen2.5-Coder report.

Short version: on a 16 GB Mac, qwen2.5-coder:14b is the one to pull; on 32 GB+, qwen2.5-coder:32b is genuinely frontier-adjacent. For the full runtime-agnostic ranking, see our best local LLM for coding 2026 deep dive. To drive these models with the Claude Code CLI, see Use Claude Code with local models.

Which Ollama model for your Mac's RAM?

Figure out your RAM (Apple menu → About This Mac). Look at the matching row. Pull the recommended model. That's it. Don't run larger models than your RAM supports — Ollama will technically load them using swap, but the speed drops sharply and you'll blame the model when you should be blaming the file size.

One edge case: on 16 GB, models with a 7 to 9 GB file fit, such as the 9.0 GB qwen2.5-coder:14b (Ollama tags page) or the 7.1 GB mistral-nemo (Ollama tags page). The KV cache needs RAM on top of the file, so close other heavy applications for long sessions.

Compare Ollama and llama.cpp for Mac for runtime setup and local controls.

Want the same models on your iPhone?

Ollama doesn't run on iOS — see What Is Ollama? 8 Things iPhone Users Should Know for why. On iPhone, the same models (Llama 3.2, Phi-3.5 Mini, Qwen 2.5 Coder 1.5B, etc.) run through native on-device apps. PocketLLM is designed to be the easiest one to install (coming soon) — join the launch list. Our iPhone app roundup covers all the native alternatives. Wondering if Ollama itself is private and safe? See Is Ollama private and safe?

The quick answer

The best Ollama model for your MacBook depends only on how much RAM you have. On 8 GB, llama3.2:3b. On 16 GB, qwen2.5:7b, or qwen2.5-coder:14b for code. On 24 GB, mistral-nemo or deepseek-coder-v2. On 32 GB+, qwen2.5:32b. Don't overthink it — the default Q4 quantization is fine, and the right model for your machine is the biggest one that comfortably fits.

Frequently asked questions

What is the best Ollama model for a Mac with 8 GB of RAM?

On an 8 GB Mac, stick to a small 3B-class model like llama3.2:3b at the default Q4 quantization. It leaves room for macOS and other apps while still handling everyday chat, drafting, and summarizing. Larger 7B models can technically load on 8 GB but leave little headroom and lean on swap, which slows generation.

How much RAM do I need to run Ollama models well on a Mac?

A rough guide: 8 GB comfortably runs 3B models, 16 GB runs 7B-class models like qwen2.5:7b and the 14B coding model qwen2.5-coder:14b, 24 GB opens up 12B to 16B models, and 32 GB or more lets you run 32B models. Apple Silicon's unified memory is shared with the GPU, so leave a few gigabytes free for the system. The right model is the largest one that fits comfortably, not the largest that loads.

Does Ollama run on iPhone or iPad?

No. Ollama is a desktop tool for macOS, Windows, and Linux; it does not run on iOS or iPadOS. PocketLLM launches on iPhone and has no iPad version yet. Its catalog includes Llama 3.2 1B, Phi-4 Mini, and Qwen 2.5 Coder 1.5B. The app is pre-launch with a waitlist.

What quantization should I use for Ollama models on Mac?

The default Q4 quantization is the right choice for almost everyone. It roughly halves memory use versus higher-precision formats with only a small quality trade-off, which is what makes larger models fit on consumer Macs. Only step up to Q5, Q6, or Q8 if you have RAM to spare and need the extra fidelity for a specific task.

Is running a model with Ollama private?

Yes, in the sense that inference happens locally on your Mac and prompts are not sent to a cloud provider. The model runs on your own hardware, so your conversations are not sent to a server for processing. On-device apps like PocketLLM extend the same local-only approach to iPhone.

The same Ollama-friendly models, on your iPhone.

PocketLLM is built to run Llama 3.2, Phi-4 Mini, and Qwen 2.5 Coder natively on iOS. No account, no cloud, no telemetry. Coming soon — join the launch list.

One email, the day it launches. No spam, no drip.