Gemma 4 on a Mac, 7 months on: plain MLX and TheStage AI's builds are 10-15% faster than Ollama's MLX
I've been tracking how fast Gemma 4 runs locally: in April with Ollama, then in August with Ollama's MLX implementation. This time I added MLX runtimes outside Ollama, including TheStage AI's compressed builds running on their edge-lm runtime.
Plain MLX is now the fastest way to run Gemma 4 on my Mac: 10-15% faster than Ollama's MLX tags, measured back to back. TheStage's builds match that speed while using ~40% less memory.
All measured today, back to back on the same machine: each date's best option, re-run now. Whiskers show the min-max of three runs. (When I first measured them, they gave 66.3 / 41.3 tps in April and 74.2 / 37.9 in August; numbers on this machine drift ±10-15% between sessions, so the same-day comparison is the fair one.)
Today, side by side: MLX wins
Bars are the median of three runs; the whiskers show the min-max of those runs.
TheStage's MLX build is ~15% faster than Ollama's MLX tag on E2B, and ~11% faster on E4B. Against Ollama's standard tags it's ~1.55x and ~1.43x faster. Prompt processing is quicker too: time to first token on a ~1000-token prompt was ~0.5s vs ~0.8s for Ollama's MLX tag on E2B.
But the plain mlx-community 4-bit build, run through the same mlx-vlm code path, is level with it (77.5 vs 77.1 tps on E2B, 44.0 vs 44.5 on E4B). So the speedup over Ollama comes from the MLX runtime, not from TheStage's compression.
TheStage's GGUF is no faster than a standard quantisation either. In llama.cpp it was 19% slower than Unsloth's Q4_K_M on E2B (47.8 vs 59.2 tps), and level on E4B (31.7 vs 32.5). My guess is that its "S" tier stores many tensors at 2-3 bits (Q2_K/Q3_K), which decode more slowly on Metal than Q4_K.
TheStage AI: same speed, ~40% less memory
In MLX, TheStage's M build peaked at 2.4GB vs 4.4GB for mlx-community 4-bit on E2B, and 3.7GB vs 6.1GB on E4B. The downloads are small too: 1.4GB and 2.7GB. For GGUF the saving is smaller, ~17-21% vs Unsloth's Q4_K_M.
How much to trust these numbers
Runs within a session were consistent: the three runs for each build were within ±0.3-2.4% of each other (±4.5% for TheStage's GGUF imported into Ollama). So the comparisons above, which were each measured back to back, are good to a few percent.
Absolute numbers are much less stable. I ran most of the E2B builds twice, ~40 minutes apart, and the medians all dropped the second time, by very different amounts:
| E2B build | Session 1 tps | Session 2 tps | Change |
|---|---|---|---|
| Ollama gemma4:e2b | 57.0 | 49.8 | -13% |
| Ollama gemma4:e2b-mlx | 71.0 | 67.1 | -5% |
| TheStage GGUF in Ollama | 47.6 | 44.1 | -7% |
| TheStage GGUF (llama.cpp) | 48.6 | 47.8 | -2% |
| mlx-community 4-bit | 79.0 | 77.5 | -2% |
The drift hit the Ollama builds hardest, so the Ollama gaps are the least certain numbers here. In session 1, mlx-community was ~11% faster than Ollama's MLX tag, rather than ~15%. Likewise Ollama's MLX speedup over standard was 1.25x in session 1 and 1.35x in session 2 (E4B, measured once, gave 1.28x). That's a bit more than the 1.20x and 1.16x I measured in August, but I wouldn't read much into the difference. Treat absolute tps, and so every then-vs-now comparison above, as ±10-15%.
My best guess is heat after an hour of continuous load.
Ollama itself also came out slower than in my earlier posts:
| Ollama tag | Apr 2026 (0.20.7) | Aug 2026 (0.32.4) | Nov 2026 (0.32.4) |
|---|---|---|---|
gemma4:e2b | 66.3 | 61.8 | 49.8-57.0 |
gemma4:e2b-mlx | n/a | 74.2 | 67.1-71.0 |
gemma4:e4b | 41.3 | 32.6 | 31.1 |
gemma4:e4b-mlx | n/a | 37.9 | 39.9 |
This is using the same version as in August (0.32.4) with the same downloaded tags, so it's most likely the machine's state on the day.
Appendix: Test details
Methodology matches my earlier posts as closely as I could: generate 1000 tokens, three runs, median reported, after the model has been loaded and used for at least 60 seconds. The prompt asked for a long essay on the history of the printing press, and every run hit the 1000-token limit. Sampling used Gemma's defaults (temperature 1.0, top_k 64, top_p 0.95), with thinking turned off everywhere. Only one model was loaded at a time.
Versions: Ollama 0.32.4 (as in August), llama.cpp b12844, mlx 0.32.5, mlx-vlm 0.8.1, and edge-lm at commit ddddf9f.
Getting TheStage's MLX build running needed two workarounds. Its config has an empty _name_or_path, so edge-lm silently fails to find a chat template; I used Google's Gemma 4 template instead. And with mlx-vlm 0.8.1 the tokenizer edge-lm returns isn't callable, so I passed token IDs directly (as edge-lm's own example does). The mlx-community rows used the same code path.
TheStage also ships a "GGUF + custom PLE" variant, but its own manifest says no runtime can load it yet, so I skipped it. llama.cpp also couldn't load Ollama's own Gemma 4 GGUFs (they bundle vision and audio tensors), which is why the llama.cpp baseline is Unsloth's Q4_K_M rather than Ollama's.
Raw data
Median of three runs generating 1000 tokens each, after at least 60 seconds of warm-up. Individual runs in brackets. pp is prompt processing speed on a ~1020-token prompt; TTFT is time to first token for that prompt, measured client-side.
| Size | Build | Runtime | tps | pp tps | TTFT | Peak memory |
|---|---|---|---|---|---|---|
| E2B | Ollama gemma4:e2b | Ollama | 49.8 (50.4/49.8/49.8) | 849 | 1.63s | 7.0GB ¹ |
| E2B | Ollama gemma4:e2b-mlx | Ollama | 67.1 (68.8/66.3/67.1) | 1559 | 0.78s | 6.2GB ¹ |
| E2B | TheStage GGUF S | llama.cpp | 47.8 (47.8/47.9/45.7) | 1780 | 0.58s | 2.9GB ² |
| E2B | TheStage GGUF S | Ollama | 44.1 (42.3/44.1/46.3) | 752 | 1.78s | n/a |
| E2B | Unsloth Q4_K_M | llama.cpp | 59.2 (59.2/58.7/59.4) | 1839 | 0.56s | 3.5GB ² |
| E2B | TheStage MLX M | edge-lm | 77.1 (77.1/77.0/77.9) | 2107 | 0.49s | 2.4GB ³ |
| E2B | TheStage MLX L | edge-lm | 71.8 (71.9/70.5/71.8) | 1988 | 0.52s | 2.6GB ³ |
| E2B | mlx-community 4-bit | mlx-vlm | 77.5 (76.6/77.5/78.3) | 2033 | 0.51s | 4.4GB ³ |
| E4B | Ollama gemma4:e4b | Ollama | 31.1 (31.1/31.1/32.0) | 380 | 3.19s | 9.5GB ¹ |
| E4B | Ollama gemma4:e4b-mlx | Ollama | 39.9 (39.7/39.9/39.9) | 504 | 2.17s | 8.5GB ¹ |
| E4B | TheStage GGUF S | llama.cpp | 31.7 (31.6/31.7/32.2) | 550 | 1.88s | 4.4GB ² |
| E4B | TheStage GGUF S | Ollama | 31.4 (31.4/31.4/31.0) | 376 | 3.14s | n/a |
| E4B | Unsloth Q4_K_M | llama.cpp | 32.5 (31.8/32.9/32.5) | 563 | 1.83s | 5.6GB ² |
| E4B | TheStage MLX M | edge-lm | 44.5 (44.7/44.5/43.8) | 575 | 1.78s | 3.7GB ³ |
| E4B | TheStage MLX L | edge-lm | 41.1 (41.1/41.1/41.1) | 561 | 1.83s | 4.3GB ³ |
| E4B | mlx-community 4-bit | mlx-vlm | 44.0 (43.7/44.9/44.0) | 577 | 1.78s | 6.1GB ³ |
Memory is measured differently per runtime, so only compare within a runtime: ¹ SIZE from ollama ps; ² model + KV cache + compute buffers from llama-server's load log; ³ MLX peak memory.
TheStage's L tier is their larger, higher-quality operating point. It was 7-8% slower than M, so I've used M in the charts.
E2B rows are from the second session; E4B rows are from the first, except the two llama.cpp E4B rows which were re-run in the second.