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
- Apple's published power figures: Mac mini (2024) M4 draws 4 W idle and 65 W maximum; M4 Pro draws 5 W idle and 140 W maximum [26].
- Memory bandwidth decides token speed for models that fit. One source cites 273 GB/s for the M4 Pro mini [27]. The base M4 figure of about 120 GB/s is from my prior knowledge of Apple's specifications and was not re-verified today. Expect a base M4 to generate at a bit under half the speed of an M4 Pro on the same model.
- RAM configurations, from prior knowledge and not re-verified today: base M4 comes in 16, 24 or 32 GB; M4 Pro comes in 24, 48 or 64 GB. So "64 GB" implies an M4 Pro and "32 GB" implies a base M4.
- Sources now benchmark against a Mac mini M6 [28]. The M4 minis are previous-generation hardware. This does not change what they can run.
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:
- The runtime changes the result. In SiliconBench's agent split on Gemma 4 E4B, llama.cpp completed 100 of 100 requests, oMLX 94, vllm-metal 93 and mlx_lm 56, with the paper attributing part of the failures to tool-call serialization [12]. On Qwen3-0.6B, Ollama failed the paper's five-shot fidelity check and streamed about 254 tokens with an empty tool-call field on tool prompts; the paper traces this to a chat-template import bug in April [12]. A model that calls tools correctly on one server can fail on another.
- The quantization source changes the result. One hands-on OpenCode comparison found Unsloth's IQ3_XXS build of Qwen 3.5 27B made 5.0% errors on a migration task while another publisher's IQ3_XXS of the same model made 100% [31] (secondary; hardware was a 16 GB VRAM PC, not a Mac; no date on the page).
- Small models skip tools. In the same test,
qwen3.5:9bat the default Ollama quantization "never called a tool" and claimed a build without touching files. gpt-oss 20b failed at default reasoning and passed with high reasoning. Devstral Small 2 24B wrote shell commands intogo.mod. Qwen3-Coder-Next, Gemma 4 26B-A4B and the good Qwen 3.5 27B build passed with single-digit error rates [31]. - KV cache quantization hurts. One guide reports that aggressive KV cache quantization degrades tool-calling accuracy [32] (secondary).
- Published numbers: Qwen 3.6-35B-A3B reports 62.8 on MCP-Atlas and 67.2 on TAU3-Bench (vendor); an arXiv agent benchmark scored Gemma 4 26B at 0.82 overall and Gemma 4 31B at 0.86, with gpt-oss-120b lowest at 0.71 [32][33] (both secondary summaries; I did not read the paper).
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
- 4-bit is the floor for agent work. Hermes Agent refuses to offer anything lower because "the quality loss is too severe" [5]. Sub-4-bit builds produced erratic results in hands-on testing [31].
- For MoE models with about 3B active parameters, speed is cheap, so spend spare memory on 6 or 8-bit weights rather than a larger model.
- Prefer builds from the model vendor, Unsloth,
ggml-org,lmstudio-communityormlx-community, and test the exact file. Publisher matters [31]. - Do not quantize the KV cache aggressively for tool-calling work [32].
- Set context explicitly. Ollama defaults to 4,096 tokens and silently truncates; llama.cpp also truncates unless the slot context is raised [12][28].
Where local still falls short, and the hybrid pattern
- METR's May 2026 report put the public frontier at about 12 hours of task length at 50% reliability and about 1.5 hours at 80% [34] (secondary summary of METR). METR notes this measures task difficulty, not how long an agent can run unattended.
- A long-horizon terminal benchmark published in October 2026 ran 15 frontier models on tasks of up to three hours. The best scored a dense mean reward of 0.69, and on its 30 reconstruction tasks the binary pass rate averaged 0.221 [13]. Frontier hosted models still fail most strict multi-hour tasks. The paper's abstract reports no open-weight results.
- Epoch AI's estimate, as reported, is that open weights trail the closed frontier by about four months [34] (secondary). That figure is for the best open models, which are hundreds of billions of parameters. Models that fit in 64 GB are a further step down, as the 88.2 against 67 comparison above suggests.
- Failure modes reported for small local models in agent loops: not calling tools and claiming success, fabricating endpoints, malformed or text-only tool calls, looping, and collapse when context is truncated silently [31][8][12].
- Local models have no provider-side safety filtering, so prompt injection from fetched content is a larger risk [8].
Hybrid setups people actually run
- Hosted primary with local fallback, or the reverse. Both Hermes Agent (
fallback_providers, per-job cron model pins,cron.model) and OpenClaw (models.mode: "merge", per-turn fallback) support this in configuration [2][8]. - Local model extracts facts, deterministic code decides. This is the most robust use of a small model. A read-only upstream triage job is the standard example: the model labels, deterministic code computes priority, and nothing pushes.
- Local for anything that reads personal data (messages, mail, calendar), hosted for code in public repos.
- Frontier model at design time, local model at run time. OpenJarvis uses cloud models to search for a better local configuration and then runs fully on-device [14].
- A small hosted "judge" or a rules check on the output of a local worker before anything is published.