Ollama on Apple silicon now ships model tags that end in -mlx. Those builds use Ollama’s MLX engine, the Metal-backed path that sits on unified memory. The June 11, 2026 blog post calls this the highest performance yet for that engine. Higher quality with NVFP4. Output up to about 20% faster than the prior path, per Ollama’s own chart. Do not treat that as a number from this Mac.
This tip is not the same as a plain ollama run gemma4:e2b install, and it is not the Python mlx-lm package either. Those stay on their own pages. Here the point is the -mlx tag inside Ollama.
Update Ollama then pull an -mlx tag
Install or update to the latest Ollama build from ollama.com first. Older apps will not see the newer MLX tags the same way. If you still need a first install, use our Ollama on Apple silicon tip.
On the library page for Gemma 4, the MLX line is listed next to the normal tags. Examples from that page:
gemma4:e2b-mlx- 7.5GB, 128K contextgemma4:e4b-mlx- 9.5GB, 128Kgemma4:12b-mlx- 7.7GB, 256Kgemma4:26b-mlx- 18GB, 256Kgemma4:31b-mlx- 19GB, 256K
All of those are listed as text and image. The non-MLX gemma4:12b sits at 7.7-8.0GB. Download size is the number to check against free disk, not a guess about VRAM.
A separate path is the Python mlx-lm package. That is pip and a venv, not an Ollama tag. See our mlx-lm tip if that is what you want.

Run gemma4:12b-mlx in Terminal
Ollama’s get-started block for the June update is one line:
ollama run gemma4:12b-mlx
The first run pulls the weights. Then Terminal opens a chat. Type a prompt. Leave with /bye.
To download without chatting yet:
ollama pull gemma4:12b-mlx
After that, the local server is still http://localhost:11434. Same port as any other local model. Pick a smaller -mlx tag if Activity Monitor shows memory pressure. The 26B and 31B MLX files are 18GB and 19GB on the library list.
Gemma 4 can think before it answers. If the grey thinking block is too slow for a short rewrite, the --think=false tip covers that flag.
Optional: ollama launch with an -mlx model
For a coding agent, the same June post shows:
ollama launch pi --model gemma4:12b-mlx
That wires the agent to the local MLX build instead of a cloud name. Other launch targets on the Gemma 4 library page use the same idea with a different agent name. Keep the model tag ending in -mlx if you want this engine.

Local vs cloud and memory size from the library list
A local -mlx model keeps prompts on the Mac when you talk to localhost. Cloud models are a different setting. If nothing should leave the machine, use our tip to turn off Ollama cloud models.
Match the library size to the Mac you have. 12b-mlx at 7.7GB is the example in the June blog. Edge tags e2b-mlx and e4b-mlx are smaller downloads with a 128K window. The 26B and 31B MLX tags need more free unified memory in practice. An older March 30, 2026 MLX preview talked about more than 32GB for a different Qwen3.5 NVFP4 path. That is not restated as a hard floor for every June Gemma 4 -mlx tag on the performance post. Prefer the size next to the tag on the library page.
Update Ollama. Pull one -mlx tag. Confirm ollama run answers offline. Add ollama launch only after that works.
Photo: Apple
Source: Ollama Blog (Ollama's highest performance on Apple Silicon yet with MLX, June 11, 2026; MLX preview March 30, 2026); Ollama library gemma4; Apple Newsroom (MacBook Air, MacBook Pro, iMac)