Research date 2026-11-18

The model layer on M4 Mac minis

Hardware facts, speeds with stated hardware, what leads for agent work, tool-calling reliability, a recommendation per RAM tier, and where local models still fall short.

Hardware facts

Speed numbers with stated hardware

Hardware Model Quant Runtime Tokens/s Kind Source, date
M4 mini 24 GB, under normal desktop load Qwen 3 14B dense 4-bit MLX 11.5 measured [29], 2026-03
M4 mini 24 GB, same Qwen 3 30B-A3B MoE 4-bit MLX 44.8, with 2.74 GB swap and memory pressure measured [29]
M4 mini 24 GB, same Qwen 3.5 35B-A3B MoE 4-bit MLX Metal out-of-memory crash at 20.4 GB measured [29]
M4 mini 24 GB, same Llama 3.2 3B Q4_K_M Ollama 42.0 measured [29]
M4 mini 24 GB, same DeepSeek-R1 32B dense Q4_K_M Ollama 0.28 (swapping) measured [29]
M4 mini 16 GB Mellum2.1-12B-A2.5B-Thinking Q4_K_M llama.cpp about 50 community run [28], 2026-11-14
M4, 24 GB LFM2.5-24B-A2B 4-bit MLX 59.9 community run [30], 2026-11-14
M4, 16 GB LFM3-1.7B 4-bit MLX 92.5 community run [30]
M4, 16 GB Qwen 3.5 9B Q4_K_M LM Studio 18 estimate from a bandwidth model [30]
M4, 16 GB gpt-oss 20B MXFP4 MLX 34 estimate [30]
M4, 16 GB Gemma 4 12B Q4_K_M MLX 13 estimate [30]
M4 Pro mini 64 GB Qwen3.5-35B-A3B 8-bit llama.cpp 40.0 at 512 context, 35.7 at 16K measured [12], 2026-09-12
M4 Pro mini 64 GB Qwen3.5-35B-A3B 8-bit mlx_lm 49.3 at 512, 43.7 at 16K measured [12]
M4 Pro mini 64 GB Qwen3.5-35B-A3B 8-bit EXO 66.8 at 512, 57.0 at 16K measured (EXO Labs co-authored the paper) [12]
M4 Pro 48 GB Qwen 3.5 9B 4-bit MLX 50.2 community run [30]
M4 Pro 48 GB Qwen 3.5 9B Q4_K_M llama.cpp 39.1 community run [30]
M4 Pro 48 GB Recursive Flint (40B, about 2.5B active) Q4_1 llama.cpp 79.6 community run [28][30]
M4 Pro 48 GB Qwen 3.8-27B dense Q4_K_M Ollama 13 estimate [30]
M4 Pro 64 GB Qwen3-Coder-Next (80B, 3B active) Q4_K_M Ollama about 44 estimate; the source says no measured Mac run exists [28]
M4 Pro 24 GB Qwen 3.6-35B-A3B Q4_K_M Ollama 74 estimate; and it does not fit comfortably in 24 GB [30]
M6 mini 32 GB Qwen 3.6-35B-A3B 4-bit MLX and oMLX 59 community runs [28]
M6 mini 24 GB Qwen 3.8-27B dense 4-bit not stated about 10, "too slow for an agent loop" community run [28]

Prefill matters as much as decode for agents. On the M4 Pro 64 GB mini with the 8-bit 35B-A3B model, processing a 16K-token prompt took 25.0 s on llama.cpp, 22.8 s on mlx_lm and 18.8 s on EXO [12]. An agent turn with a large tool list and history pays that cost every time the cached prefix is invalidated. Prompt caching is not optional.

The index in [30] labels its figures as 73 published, 246 community and 300 estimated, and reports a 14% median gap between its estimates and measurements. Treat its estimate rows accordingly. The measured M4 24 GB study found that "theoretical estimates were 1.5-2x too optimistic" under real desktop load [29].

What currently leads for local agent work

Model families that exist on Hugging Face today (verified by listing, 2026-11-18) [15]: Qwen 3.5 (February 2026), Qwen 3.6-35B-A3B (April 2026), Qwen 3.8-27B (August 2026), Gemma 4 (E2B, E4B, 12B, 26B-A4B, 31B; March to May 2026), NVIDIA Nemotron 3.5 Lightning 30B-A3B (August 2026) and Bolt E4B (October 2026), GLM-5.3 and GLM-5.3-Flash (August 2026), DeepSeek V4.1 Flash (September to October 2026), Recursive Flint (October 2026), JetBrains Mellum2.1-12B-A2.5B (September 2026), Cohere North Mini Code 1.0 (June 2026), Kwaipilot KAT-Coder-V2.5 (July 2026), Ornith 1.5 9B and 35B-A3B (August 2026), LiquidAI LFM3 (October 2026), Qwen3-Coder-Next (January 2026), gpt-oss 20b and 120b (August 2025), Devstral Small 2 24B and Devstral 2 123B (December 2025), Mistral Small 4 119B (January 2026), Hermes 4 (August 2025) and Hermes 4.3 36B (November 2025). I found no Phi-5 and no Llama 5; the newest Phi and Llama entries in these searches are old.

Published coding-agent scores, all vendor or secondary, with different scaffolds, so not directly comparable [28][16][27]:

Model Size Score Scaffold Source
Recursive Flint 40B, about 2.5B active 74.2 SWE-bench Verified mini-swe-agent, vendor run [28]
Qwen 3.6-35B-A3B 35B, 3B active 73.4 SWE-bench Verified Qwen's own scaffold; 64.4 in a third-party Claude Code run [28]
Qwen3-Coder-Next 80B, 3B active 70.6 SWE-bench Verified SWE-Agent [28]
KAT-Coder-V2.5 35B, 3B active 69.4 SWE-bench Verified Claude Code 2.1.195, vendor run [28]
North Mini Code 1.0 30.5B, 3B active 67.6 SWE-bench Verified SWE-agent, vendor [28]
MiMo-V2.6-Distill-Qwen-9B 9.4B dense 61.1 SWE-bench Verified scaffold not named [28]
Mellum2.1-12B-A2.5B 12B, 2.5B active 47.0 SWE-bench Verified Pi harness, vendor [28]
Qwen 3.8-27B 27B dense 67% Terminal-Bench 2.1; 65.77% Hermes Bench Nous Research's runs [16]
Arete-27B (Nous) 27B dense 70% Terminal-Bench 2.1; 65.60% Hermes Bench Nous Research's runs [16]
GLM-5.3 753B, about 40B active 88.2 Terminal-Bench 2.1 cited without a primary link [27]

GLM-5.3 at 4-bit is about 425 GB [27]. It is not a Mac mini model. The gap between it and Qwen 3.8-27B on the same benchmark (88.2 against 67) is a rough measure of what fitting in a mini costs. I did not find hosted frontier scores on Terminal-Bench 2.1 from a primary source today.

Tool-calling reliability

There is no single authoritative tool-calling leaderboard for these models that I could find. What the evidence shows:

Practical rule: pick the model with your own evaluation, on the runtime that will be used in production, at the quantization that will be used.

Recommendations per RAM tier

These assume a dedicated mini with no desktop apps competing for memory. The 24 GB study that hit swap had 12 to 13 GB committed to other apps before loading a model [29]. Speeds for the base M4 are my inference from the rows above unless a row is cited; they are not measurements.

Tier Chip (a) Fast assistant chat and tool calls (b) Long-horizon agent work Context in practice Honest verdict
16 GB M4 Gemma 4 E4B or Qwen 3.5 9B at 4-bit (about 18 tok/s estimated for the 9B [30]). Mellum2.1-12B-A2.5B if coding-flavoured answers are fine (about 50 tok/s on a 16 GB M4, community [28]). Do not. Use hosted. 16K to 32K Fine as a voice and chat endpoint and for classification. A 9B model dropped 25 to 39 points against a frontier model in agent benchmarks [14] and skipped tools in a hands-on test [31].
24 GB M4 or M4 Pro Gemma 4 26B-A4B at 4-bit (16 GB of weights [27]) or LFM2.5-24B-A2B (59.9 tok/s in a community run on a 24 GB M4 [30]) or gpt-oss 20b with reasoning set high. Marginal. A 30B-A3B MoE at 4-bit fits only on a headless machine with a capped context; the 35B-A3B class crashed at 20.4 GB on a loaded 24 GB machine [29]. Nemotron 3.5 Lightning 30B-A3B is the same size class. 32K, sometimes 64K Good assistant tier. Agent work is limited to narrow, structured, checkable jobs such as read-only upstream triage.
32 GB M4 Same as 24 GB, with room for STT and TTS models alongside. Qwen 3.6-35B-A3B at 4-bit (23 to 24 GB [28]) or Recursive Flint (23 GB [28]). Qwen 3.8-27B dense fits at 18 GB but is slow: about 10 tok/s on a faster M6 [28]. 32K to 64K. Flint's full 262K window needs 48 GB [28]. The first tier where a credible local coding agent runs. Expect it to be slower and less reliable than hosted, and keep context short. On a base M4 expect well under the 59 tok/s reported in community runs on an M6.
64 GB M4 Pro Keep a small fast model pinned for chat and voice (Gemma 4 E4B or a 9B) and swap the big one in for work. Three sensible choices: Qwen 3.6-35B-A3B at 8-bit (39 GB in Ollama [28]; the older 3.5 version of this class measured 40 to 67 tok/s at 8-bit on this exact hardware [12]) for speed; Qwen 3.8-27B at 6 or 8-bit for quality at roughly 13 tok/s or less [30]; Qwen3-Coder-Next at Q4 (52 GB, 64 GB "is the practical floor" [28]) for repo-scale work. 64K to 128K realistically. Full 256K fits for the 27B per one source [27] but prefill time makes that slow. The only tier where local long-horizon work is worth attempting. Still below hosted frontier models.

Quantization guidance

Where local still falls short, and the hybrid pattern

Hybrid setups people actually run