All hardware

Best AI models that run on Mac Mini M4 (24 GB)

Cheapest serious local LLM box on the planet.

Apple · mini desktop
Mac Mini M4 (24 GB)
24 GB 18 GB usable 120 GB/s $999
switch in the live picker →

What models fit this build

Mac Mini M4 (24 GB) has 18 GB of usable memory. Here's which open-weights model sizes fit at each quant, at ~8K context with an FP8 KV cache.

Largest comfortable fit: 30–32B at Q2 (~15 GB).

Model size Q2Q4Q5Q8
7–8B Fits Fits Fits Fits
13–14B Fits Fits Fits Fits
30–32B Fits Won't fit Won't fit Won't fit
70–72B Won't fit Won't fit Won't fit Won't fit
~120B MoE Won't fit Won't fit Won't fit Won't fit
~235B MoE Won't fit Won't fit Won't fit Won't fit
~670B MoE Won't fit Won't fit Won't fit Won't fit
1T+ MoE Won't fit Won't fit Won't fit Won't fit

✓ = the weights + FP8 KV cache fit within this build's usable memory at ~8K context. Longer context needs more — size any model in the picker →

Our picks for this build

Sourced from the State of Local AI snapshot — the model + quant + backend we'd actually deploy on this hardware today, with the recipe in the setup guide below.

Also runs well

Gemma 4 12B Unified (dense)

12 B Apache 2.0 🤗

Jun 3 2026. Google's encoder-free 12B dense — unified decoder-only transformer with no separate vision/audio encoder; raw patches + audio waveforms project directly into embedding space. 256K context, 140+ langs, native multimodal (text/image/audio/video), Apache 2.0. Runs on a 16GB laptop (~8-9GB Q4). Strong for its size: AIME 77.5, GPQA 78.8, MMLU-Pro 77.2, LCB 72.0.

≥8 GB Q4 14 t/s
  • HLE5.2%
  • LCB72.0%

Coding: Gemma 4 12B scores LCB 72.0, AIME 77.5, Codeforces 1659 — strongest sub-16B open-weights coder. Encoder-free design means image+audio inputs add zero encoder latency. Runs on a 16GB laptop (8-9GB Q4) — the practical 'AI laptop' model of the month.

Agent: TAU2 69.0 is strong for 12B — usable in Cline / Roo Code for short agent loops, but sub-60B caps it at single-session autonomous work. Not a multi-hour orchestrator.

Setup guide for Mac Mini M4 (24 GB)

Every known recipe for running a model on this build — sourced from the State of Local AI 2026-07-05 snapshot (2026-07-05). Pick the one that matches your model + quant, then follow the linked original write-up.

Recipes for Mac Mini M4 (24 GB)
ModelDecode tok/sPrompt processingRecipeRuns
qwen3-6-35b-a3b-moe@ MLX-4bit on MLX-LM~25 est.@ 4Kmaloyan.xyz (M4 16GB, scaled)
gemma-4-12b@ MLX 4-bit on Ollama (MLX) / mlx-lmOllama model library (Apple-Silicon MLX build). Fit corroborated by HN launch thread.

Want to compare this against other builds? Open the live picker (Q2 / Q4 / Q5 / Q8 toggles) or see best build by budget.

See all recipes

Every open-weights model that fits, ranked by composite score

Composite blends benchmark averages (60 %) with editorial 0-5 ratings (40 %). Closed-frontier references mix into the ranking and stay amber-tinted.

Modeltg/sppTTFT @ 100KHLETB2SWE-ProSWE-VerAiderLCBGPQAMMLU-ProScore
Qwen 3.5 9B9 B · dense🤗
20 t/s220 pp15.0 min65.6%81.7%82.5%4623
DiffusionGemma 26B-A4B26 B · 4 B active · diffusion-moe🤗
55 pp69.1%73.2%77.6%4358
Phi-4 14B14 B · dense🤗
12 t/s120 pp56.1%70.4%4160
14 t/s120 pp5.2%72.0%78.8%77.2%3759
55 pp45.3%66.0%3361
Gemma 4 26B-A4B (MoE)26 B · 4 B active · moe🤗
55 pp8.7%34.2%13.8%17.4%77.1%82.3%82.6%3060
Llama 3.1 8B8 B · dense🤗
22 t/s220 pp15.0 min34.6%49.0%2527
Qwen 3 8B8 B · dense🤗
22 t/s220 pp15.0 min2.8%47.0%65.5%2325
Gemini 3.1 ProGoogle DeepMind · closed125 t/s2.1 min44.7%80.2%54.2%80.6%91.7%94.3%91.0%
ChatGPT 5.5OpenAI · closed61 t/s1.6 min52.2%82.0%58.6%88.7%88.0%93.6%
Claude Sonnet 5Anthropic · closed57.4%80.4%63.2%
Claude Opus 4.8Anthropic · closed59 t/s2.9 min57.9%69.2%88.6%93.6%
Open in the live picker (Q2 / Q4 / Q5 / Q8 toggles) → Compare Mac Mini M4 (24 GB) with another build → Try other hardware → Submit a benchmark for Mac Mini M4 (24 GB) ↗

Last updated 2026-07-11