Requirements and install
Ollama's macOS docs list macOS Sonoma (v14) or newer, with CPU and GPU support on Apple M-series chips and CPU-only support on Intel. To install, download the app from ollama.com/download, open the disk image and drag Ollama to Applications. On first start it offers to link the ollama command into /usr/local/bin.
The commands you'll use
| Command | What it does |
|---|---|
ollama run gemma4 | Download if needed, then chat with the model |
ollama pull gemma4 | Download a model without running it |
ollama ls | List downloaded models |
ollama ps | Show loaded models, memory, CPU/GPU split and context |
ollama stop gemma4 | Unload a running model |
ollama rm gemma4 | Delete a downloaded model |
ollama serve | Run the server without the app |
Full list in the CLI reference. A tag picks the size: gemma4:26b-a4b or gpt-oss:20b.
Which Mac runs which model
| Ollama model | Size | Mac mini M6 16GB | Mac mini M6 32GB | Mac mini M5 Pro 64GB |
|---|---|---|---|---|
gemma4 | 6.6 GB | ~17.4 tok/s | ~19.3 tok/s | ~34.9 tok/s |
gpt-oss:20b | 14 GB | doesn't fit | ~31.9 tok/s | 61.0 tok/s |
gemma4:26b-a4b | 18 GB | doesn't fit | ~28.2 tok/s | ~50.9 tok/s |
qwen3-coder-next | 52 GB | doesn't fit | doesn't fit | ~70.8 tok/s |
A model needs its download size in memory plus room for context, and macOS keeps about 4 GB. Run ollama ps after loading: the PROCESSOR column should say 100% GPU. A CPU/GPU split means the model didn't fit and will be much slower (see the FAQ).
Ollama and MLX on Apple silicon
Ollama announced an MLX engine as a preview in March 2026 (version 0.19). With version 0.40 in September 2026, models run on MLX on Apple silicon by default, for architectures the MLX runtime supports, including Gemma 4 and recent Qwen models. Other models still run on Ollama's llama.cpp-based engine. See GGUF vs MLX vs Ollama.
Context length
Ollama picks a default context window based on available memory (per its context length docs: 4K tokens under 24 GiB, 32K from 24 to 48 GiB, 256K at 48 GiB and up). Its FAQ still mentions a 4,096-token default, so check ollama ps, which shows the context in use. To change it:
- In the app: the context length slider in Settings.
- In a chat:
/set parameter num_ctx 8192. - For the server:
OLLAMA_CONTEXT_LENGTH=8192 ollama serve.
Storage, settings and the API
- Models are stored in
~/.ollama/models; setOLLAMA_MODELSto move them. - Settings for the Mac app are environment variables set with
launchctl setenv, for examplelaunchctl setenv OLLAMA_CONTEXT_LENGTH 8192, then restart Ollama (FAQ). - The API listens on 127.0.0.1:11434. OpenAI-compatible endpoints live under
http://localhost:11434/v1/(docs), so editors and agent tools can use your local models.
Before you buy a Mac for Ollama
Ollama makes it easy to try a model, but only on a Mac you already own. LaneBench lets you run your own prompts, documents or code on the Mac you're considering, with the same models, so you can see whether it handles your work before you buy. Compare apps in LM Studio vs Ollama.
FAQ
How do I run Ollama on a Mac?
Does Ollama use the GPU on a Mac?
Where does Ollama store models on a Mac?
Does Ollama use MLX on a Mac?
See any model on the exact Mac you're considering.
- Ollama docs: macOS
- Ollama docs: CLI reference
- Ollama docs: FAQ
- Ollama docs: context length
- Ollama docs: OpenAI compatibility
- Ollama blog: MLX
- Ollama v0.40.0 release notes
Speeds come from published measurements (with source links) or labeled estimates. How we measure