How to Run Local AI on macOS: Ollama on Apple Silicon, LM Studio and Memory Rules
Published October 21, 2026 · Last updated October 21, 2026
Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. This never influences our rankings or opinions.
Apple Silicon Macs are the sweet spot for local AI: unified memory means big models fit where a Windows PC with the same “RAM” number couldn’t load them. This guide gets you from zero to a working local model in about ten minutes.
What your Mac can run
The math for Apple Silicon: a Q4-quantized model of N billion parameters needs about N GB, and macOS lets a model use up to ~75% of unified memory. So:
| Your Mac | Comfortable max | Recommended |
|---|---|---|
| 8 GB (M1/M2/M3 base) | 4-7B models | Gemma 3 4B, Qwen 3 4B |
| 16 GB | 14B quantized | Qwen 3 14B, GPT-OSS 20B (tight) |
| 24-36 GB | 32B-45B quantized | Qwen 3 32B, GPT-OSS 20B comfortably |
| 48-128 GB (Pro/Max/Ultra) | 70B-123B quantized | Llama 3.3 70B, Qwen 3 123B (careful) |
Install Ollama (two ways)
With Homebrew (recommended if you already use brew):
brew install --cask ollama
Or download the app from https://ollama.com/download/mac, drag to Applications and
launch. Both register the menu-bar server and the ollama CLI.
Then pull and run a model:
ollama pull qwen3:14b
ollama run qwen3:14b

Ask it something; /bye exits. ollama ps shows whether the model is on GPU — on Apple
Silicon it always is, via Metal.
Verify performance
ollama run qwen3:14b --verbose

The output shows tokens/sec. Realistic numbers in 2026: an M-series base chip does roughly 20-40 tok/s on 14B Q4; Pro/Max chips do much better with bigger models. If you see single digits, your model is too big for your RAM.
LM Studio with MLX (the Apple-optimized option)
LM Studio now ships MLX builds — Apple’s own ML framework, which is meaningfully faster than GGUF for some models:
- Install LM Studio from https://lmstudio.ai (macOS Apple Silicon build).
- In the search, filter framework by MLX and pick an MLX-quantized model (e.g. MLX variants of Qwen, Llama and Mistral models are plentiful).
- Load and chat. Check the engine selector shows “MLX” rather than “GGUF” for the speed bump.
- Server tab → Start: you get an OpenAI-compatible endpoint at
http://localhost:1234/v1that any app can consume.
Command-line tips that save you pain
- Keep models warm: the first prompt after load is slow (model loads into memory). If you’re scripting, send a tiny warm-up prompt first.
- Free memory between models: Ollama unloads after 5 minutes idle. To force-unload
immediately:
ollama stop <model>. - Context length eats memory: a 32K context setting on a 14B model can double its RAM footprint. If you’re tight, lower context in LM Studio’s load config (num_ctx).
- Check the actual GPU share on M-series:
ollama psagain — “PROCESSOR” should read100% GPUon Apple Silicon.
Common macOS problems
- “Model requires more system memory”: macOS refuses to load if the model exceeds the memory limit. Choose a smaller quantization (Q4_K_M instead of Q8) or a smaller model.
- Sleep breaks the server: macOS naps background services aggressively on battery. Plug
in, or run
caffeinate -iin another terminal while working. - Slow after macOS update: re-download GPU drivers effectively resets; usually just rebooting once after a big update fixes Ollama Metal performance.
Where to go from here
- Wire the local endpoint into OpenCode for private coding assistance.
- Prefer a ChatGPT-style web UI on your Mac? See self-hosting Open WebUI with Docker.
- Comparing local quality with hosted models? Start with our OpenAI API guide and mirror the same prompts.