If you run Ollama on an Apple Silicon Mac, it has quietly changed engines under the hood. Since Ollama 0.40.0 (25 September 2026), models that support Apple’s MLX framework run on MLX automatically, and everything else falls back to llama.cpp.
That’s mostly good news: MLX was up to twice as fast at decoding in Ollama’s own tests. But it also means some models are faster than others for no obvious reason, some tags now refuse to download on non-Macs, and an update in October started making hidden backup copies of your models.
This guide explains how Ollama MLX works today, which models and tags use it, how to check which engine a model is running on, how to force MLX on or off, real speed numbers, and fixes for the common errors.
It’s based on Ollama’s MLX announcement, the 0.40.x release notes as summarised by several trackers, and independent benchmarks published in November 2026. Ollama ships fast, so check ollama --version against the version numbers here.
- MLX is the default on Apple Silicon since Ollama 0.40.0. No setting to flip.
- Check it: run a model, then
ollama ps. The RUNNER column saysmlxorllamacpp. - Tags decide the engine: plain tags use MLX when available;
-mlx,-nvfp4and-mxfp8are MLX only;-q4_K_Mand-q8_0always use llama.cpp. - Force an engine: the hidden flag
--runner llamacppor--runner mlxon pull or run. - Needs: an M-series Mac. Intel Macs and Rosetta can’t use MLX.
- Watch disk space: 0.40.2 started keeping backup copies of upgraded models.
New to Ollama? Start with my guide to updating Ollama, then come back here.
What MLX Is and Why Ollama Switched
MLX is Apple’s open-source machine learning framework, designed for the unified memory in M-series chips. The CPU and GPU share one pool of memory, and MLX is built to use that without copying data back and forth.
Until 2026, Ollama on Mac ran every model through llama.cpp with its Metal backend. That works well, but MLX can squeeze out more speed on Apple hardware, especially on newer chips. Ollama’s announcement also notes that M5, M5 Pro and M5 Max use their GPU Neural Accelerators through MLX.
Today Ollama is a two-engine app on Mac:
- MLX runner for model architectures Ollama has ported to MLX.
- llama.cpp runner for everything else, and for GGUF tags.
The choice happens when you pull a model. On a Mac, Ollama prefers MLX, then llama.cpp. On Linux and Windows, llama.cpp comes first.
From Preview to Default: The Timeline
| Version | Date | What changed |
|---|---|---|
| 0.19 | 30 March 2026 | MLX preview on Apple Silicon. One model (Qwen3.5-35B-A3B coding, NVFP4). Mac with more than 32 GB required. |
| 0.30 | May 2026 | Models start running through llama.cpp alongside the MLX engine. |
| 0.40.0 | 25 September 2026 | MLX becomes the default for supported architectures on Apple Silicon. |
| 0.40.2 | 8 October 2026 | Old models upgraded in the background on first run, with backups kept. |
| 0.40.3 | 11 October 2026 | Background model upgrades paused. |
| 0.40.16 / 0.40.17 | November 2026 | Qwen3.8 Flash Next needs about 27 GiB less memory on Apple Silicon; Apple Silicon serves several requests at once. |
If you followed early 2026 guides that said to set OLLAMA_MLX=1, you don’t need to any more. None of the 0.40 sources mention that variable; the engine is chosen by tag.
Requirements
- Apple Silicon Mac (M1 or newer). In Terminal,
uname -mmust printarm64. - macOS 14 Sonoma or newer for Ollama itself.
- macOS 26 gets the Metal 4 MLX build; older macOS versions get a Metal 3 build.
- Intel Macs run Ollama on the CPU through llama.cpp only, with no MLX.
- Memory: there’s no longer a fixed 32 GB floor. It depends on the model. A 9B model ran on MLX on a 24 GB Mac mini, and small models need 6 to 9 GB.
Install the official app from ollama.com or with curl -fsSL https://ollama.com/install.sh | sh. Homebrew installs have caused MLX library errors (see the errors section).
Which Models and Tags Use MLX
At 0.40.0, the MLX families listed in the release notes were qwen3.8, gemma4, qwen3.6, qwen3.5, the Decision models (nimble, tev1, clef, clef-flash) and embeddinggemma-2. Later 0.40.x releases added more, including Flint, the LFM3 family, Nemotron 3.5 Bolt E4B and Inkling 2 Mini (Apple Silicon only).
The new Qwen4-35B-A3B also has an MLX tag, qwen4:35b-a3b-nvfp4 (36 GB), on the Ollama library page.
How to read a tag:
| Tag pattern | Example | Engine on Mac |
|---|---|---|
| Plain size tag | qwen3.6:35b-a3b |
MLX if an MLX build exists, otherwise llama.cpp |
-mlx or -mlx-bf16 |
qwen3.8:27b-mlx |
MLX only |
-nvfp4 or -mxfp8 |
qwen4:35b-a3b-nvfp4 |
MLX only |
-q4_K_M, -q8_0 |
qwen3.6:27b-q4_K_M |
llama.cpp (GGUF) |
| Older GGUF imports | Custom Modelfile models | ggml (legacy) |
MLX-only tags can’t be pulled on Linux or Windows. If you share a model list between machines, use GGUF tags for the non-Mac ones.
How to Check if a Model Runs on MLX
- Run any prompt so the model loads:
ollama run qwen3.6:35b-a3b "hello" - In another Terminal window run
ollama ps. - Look at two columns:
- RUNNER:
mlxmeans MLX;llamacpporggmlmeans the llama.cpp engine. - PROCESSOR: should read
100% GPU. A CPU split means the model doesn’t fit in GPU memory.
- RUNNER:
In ComputingForGeeks’ test on an M4, qwen3.5:9b showed mlx and qwen3.5:9b-q4_K_M showed llamacpp, as expected.
Other ways to check:
ollama show <model>lists the runner and available runners.- The server log at
~/.ollama/logs/server.logshows “starting mlx runner subprocess” for MLX, or “waiting for llama-server to start responding” for llama.cpp.
My Ollama logs guide shows how to read the log on every OS.
How to Force MLX On or Off
Easiest: pick a tag. Pull a -q4_K_M tag for llama.cpp, or an -mlx / -nvfp4 tag for MLX.
Hidden flag: --runner on pull or run, with values mlx, llamacpp or ggml:
ollama pull qwen3.6:35b-a3b --runner llamacppollama run qwen3.6:35b-a3b --runner mlx
It’s hidden from --help and reportedly arrived around 0.40.6, so treat it as an advanced option that may change. On Linux, forcing MLX fails with “this model requires MLX support, but the MLX runtime is not available”.
Why turn MLX off? A few reasons: you want the exact same quant on Mac and PC, you need a feature that only works on one engine, or a model behaves oddly on MLX.
Is MLX Actually Faster? Real Numbers
Ollama’s own launch test (M-series Mac, Qwen3.5-35B-A3B, March 2026):
| 0.18 (llama.cpp, Q4_K_M) | 0.19 (MLX, NVFP4) | |
|---|---|---|
| Prompt reading | 1,154 tokens/s | 1,810 tokens/s |
| Generation | 58 tokens/s | 112 tokens/s |
Independent test, M4 Mac mini 24 GB, Ollama 0.40.13 (ComputingForGeeks, November 2026, generation speed):
| Setup | Generation |
|---|---|
Ollama qwen3.5:9b (default tag: NVFP4 on MLX, with MTP drafting) |
27.3 tokens/s |
| mlx-lm 0.32.2 (4-bit) | 21.3 tokens/s |
| LM Studio, MLX engine | 20.1 tokens/s |
| LM Studio, llama.cpp engine | 17.5 tokens/s |
Ollama qwen3.5:9b-q4_K_M (llama.cpp) |
17.1 tokens/s |
Ollama qwen3.5:9b-mlx |
16.1 tokens/s |
The lesson: MLX isn’t automatically faster. The default tag won mostly thanks to its quant format and speculative drafting, while the plain -mlx tag was the slowest. A research paper comparing mlx-lm and llama.cpp on an M4 Max found MLX 19% faster on Qwen3-30B-A3B, 4% faster on Qwen3-8B, and 14% slower on Gemma 3 4B.
So the practical advice is: use the default tag first, and if a model feels slow, try the -q4_K_M tag and compare with ollama run --verbose. My MLX vs GGUF guide goes deeper on formats.
Memory Limits on 16 and 24 GB Macs
macOS lets the GPU use only part of unified memory. On a 24 GB M4 that was about 18 GB (around 74%). When ComputingForGeeks tried the 18 GB qwen3.5:27b-mlx, Ollama refused: “model requires 18.4 GiB but only 17.3 GiB are available”.
You can raise the limit, at your own risk:
sudo sysctl iogpu.wired_limit_mb=22528(for a 24 GB Mac; leave a few GB for macOS).- Restart Ollama, because it reads the limit at start.
- Undo with
sudo sysctl iogpu.wired_limit_mb=0, or reboot.
In that test the 27B model then loaded but ran at only 5.7 tokens/s with swap in use. In practice, pick a model that fits comfortably: roughly 9 to 14B models on 16 GB, up to about 14B dense or 30B-class MoE quants on 24 GB, and 35B MoE models on 32 GB and up.
The Hidden Disk Space Problem
Ollama 0.40.2 started upgrading models pulled with older versions in the background the first time you run them. It kept the original as a backup, so each upgraded model could take up two copies on disk. The release notes gave no size figures, and ollama list hides the backups.
0.40.3 paused the background upgrades, but the notes don’t say the existing backups were removed. If your disk filled up in October:
- Check the size of
~/.ollama/modelsin Finder or withdu -sh ~/.ollama/models. - Remove models you no longer use with
ollama rm, then re-pull the ones you need. - Read any cleanup script carefully before running it, and don’t delete backups if you might downgrade below 0.40, or you’ll need to re-pull.
To move models to an external drive, set OLLAMA_MODELS; see my Ollama environment variables guide.
Common Errors and Fixes
| Error | Cause | Fix |
|---|---|---|
| “failed to load MLX dynamic library … libmlxc.dylib not found” | Homebrew install, a bad app update, Rosetta or an Intel Mac | Check uname -m says arm64; uninstall the Homebrew version and install the official app |
| “this model requires MLX support, but the MLX runtime is not available” | MLX can’t load, or not a Mac | Fix the MLX install, or pull a -q4_K_M tag |
| “pull model manifest: 412: this model requires macOS” | MLX-only tag pulled on Linux or Windows | Use a GGUF tag on that machine |
| “model requires X GiB but only Y GiB are available” | Model bigger than the GPU memory limit | Use a smaller tag, or raise iogpu.wired_limit_mb carefully |
| First load takes over a minute | Cold start after restart | Normal; later loads are fast. Use keep-alive to keep models loaded |
| Structured JSON output fails on Homebrew build | A grammar library missing from the bottle | Use the official app |
| Disk suddenly full after updating | 0.40.2 backup copies | See the disk section above |
FAQ
Does Ollama use MLX automatically on Mac?
Yes. Since 0.40.0, supported models run on MLX automatically on Apple Silicon.
How do I know if Ollama is using MLX?
Run ollama ps while a model is loaded. The RUNNER column shows mlx or llamacpp.
Do I still need OLLAMA_MLX=1?
No. That was for the early 2026 preview. Current versions pick the engine by tag.
Does MLX work on Intel Macs?
No. Intel Macs run Ollama on the CPU through llama.cpp.
Is MLX always faster than llama.cpp?
No. It is often faster, especially on MoE models and newer chips, but some models and tags run faster on llama.cpp. Test both with --verbose.
Can I turn MLX off?
Yes. Pull a -q4_K_M or -q8_0 tag, or use the hidden --runner llamacpp flag.
How much RAM do I need for Ollama MLX?
It depends on the model. Small models need 6 to 9 GB; 35B MoE models need a 32 GB Mac or more.
Sources
- Ollama blog: Ollama is now powered by MLX on Apple Silicon in preview
- Jacar: Ollama 0.40 and MLX on Apple Silicon (default behaviour, runner order,
--runner) - LLMCheck: Ollama MLX on Mac (0.40+) (tag patterns, checks, errors)
- ComputingForGeeks: Ollama vs LM Studio vs MLX on Mac (M4 24 GB benchmark, memory limit)
- ThreatFrontier: Ollama 0.40 hidden disk use
- Ollama release notes summary (0.40.x timeline)



