The best local LLM for a MacBook Air M4 (16 GB) is MiniCPM5-2B at ~66 tok/s (estimated). Its 16 GB fits 38 of the 130 models in the LLMCheck index, up to 24B-class. For everyday chat and coding, MiniCPM5-2B is the sweet spot.
Considering this Mac?
MacBook Air M5 (16GB) on Amazon → · compare every Mac for local AI →
Ranked by LLMCheck suitability (capability balanced against speed on the M4); the top pick is the best-ranked model that reaches 15 tok/s here, has a standard Mac runtime and fits the GPU memory limit (raised if need be), and slower models are tagged slow. Maple Preview 20B-A1B ranks higher on suitability but is not the pick. Runs only through DeepGrove's own forks (mlx-lm-deepgrove, deepgrove-ai/llama.cpp); its cards name no stock llama.cpp, mlx-lm, LM Studio or Ollama route. Click a model for its full figures and setup. Every speed carries its provenance mark: most are index estimates from the memory-bandwidth model, a filled square is a published figure and a hollow circle a community run — submit a real run →
| # | Model | Size | License | Speed | 64K context | Capability |
|---|---|---|---|---|---|---|
| 1 | MiniCPM5-2B | 2.52B | Apache 2.0 | estimated66 tok/s | agent-ready | 21/50 |
| 2 | Ternary Bonsai 2 27B | 27.36B | Apache 2.0 | — | 37/50 | |
| 3 | Maple Preview 20B-A1B | 20B MoE | MIT | sourced169 tok/s | agent-ready | 20/50 |
| 4 | Bonsai 27B | 27B | Apache 2.0 | — | agent-ready | 33/50 |
| 5 | Gemma 4 12B slow | 12B | Apache 2.0 | estimated13 tok/s | agent-ready | 30/50 |
| 6 | Ling-3.0-tiny | 7.9B MoE | MIT | estimated115 tok/s | agent-ready | 15/50 |
| 7 | LFM3-1.7B | 1.73B | LFM Open | community93 tok/s | agent-ready | 17/50 |
| 8 | Nanbeige4.2-3B | 3B | Apache 2.0 | estimated51 tok/s | agent-ready | 20/50 |
| 9 | GPT-oss 20B raise GPU limit | 21B MoE | Apache 2.0 | estimated34 tok/s | 22/50 | |
| 10 | Mistral Small 3.2 24B slow over GPU limit | 24B | Apache 2.0 | estimated7 tok/s | 25/50 | |
| 11 | K2-Horizon-3.7B | 5.1B | Apache 2.0 | estimated31 tok/s | 22/50 | |
| 12 | Devstral Small 24B slow over GPU limit | 24B | Apache 2.0 | estimated7 tok/s | 24/50 |
Showing the top 12 of 38 models that fit in 16 GB. See the full leaderboard or all benchmarks.
Context: “fits” means the weights at a short prompt. Coding agents (Claude Code, OpenCode, Codex CLI) hold 64K tokens or more, and every token adds KV cache: agent-ready marks a model whose weights plus a 64K-token 16-bit KV cache still fit in the 12 GB this Mac’s GPU can use with the limit raised (20 of the 34 models here with a KV figure). That is an estimate from each model’s config.json, not a measurement; a q8 KV cache halves the cache part, and — means the index has no KV figure for the model yet. The GPU memory limit below applies on top.
GPU memory limit: macOS lets the GPU use about 10.7 GB of this Mac’s 16 GB by default on macOS 15 and earlier, and about 11.8 GB on macOS 26 and later. Of the 38 models that fit, 3 need more than that at a short prompt: 1 needs a raised limit and is tagged raise GPU limit (GPT-oss 20B only past the safe setting below, as measured runs on this much memory show); 2 need more than even the raised limit and are tagged over GPU limit. sudo sysctl iogpu.wired_limit_mb=12288 raises it to 12 GB, leaving 4 GB for macOS, until the Mac restarts (sudo sysctl iogpu.wired_limit_mb=0 restores the default). How the limit is read →
The index has no verified Ollama tag for MiniCPM5-2B, so start from its listing and copy the exact name there: Hugging Face repo → · model card →
GGUF builds run in LM Studio or llama.cpp; MLX builds run in LM Studio or mlx-lm.
Prefer a GUI? LM Studio gives you a one-click download and chat window. For step-by-step help see our Ollama install guide, or open the MiniCPM5-2B on M4 page for its figures and setup.
Twice as fast: the cheapest Mac in the index that runs MiniCPM5-2B at 2× or more of this Mac’s estimated~66 tok/s is the Mac Studio M2 Max (32 GB) at estimated~180 tok/s, about $1,300 refurbished or used: search Amazon Renewed listings →. New: the Mac mini M5 Pro (24 GB) at community144 tok/s, $1,699 new (Apple list price, checked 2026-11-14): Mac mini M5 Pro (24GB) on Amazon →.
For less: the cheapest Mac that still runs MiniCPM5-2B at 15+ tok/s is the MacBook Air M1 (8 GB) at estimated~39 tok/s, about $450 refurbished or used: search Amazon Renewed listings →. New: the Mac mini M6 (16 GB) at estimated~82 tok/s, $899 new (Apple list price, checked 2026-11-14): Mac mini M6 (16GB) on Amazon →.
Speeds are each Mac’s own figure from the index, with its provenance mark. Prices come from data/macs.json: Apple’s list price for a new Mac (dated), an approximate street price for a used or refurbished one. Amazon stock checked 2026-11-18. Amazon links are affiliate links: as an Amazon Associate, LLMCheck earns from qualifying purchases.
Apple no longer sells the MacBook Air M4 (16 GB) new. A current MacBook Air M5 (16 GB) runs the same models with 153 GB/s of memory bandwidth instead of 120 GB/s, so they generate faster:
As an Amazon Associate, LLMCheck earns from qualifying purchases. Affiliate links cost you nothing extra and never influence our rankings.
LLMCheck. (2026). Best Local LLMs for the MacBook Air M4 (16 GB). llmcheck.net. https://llmcheck.net/best-llm/macbook-air-m4-16gb/ (updated ). CC BY 4.0.
MiniCPM5-2B (2.52B, Apache 2.0) is the best all-round pick at ~66 tok/s (estimated) on the MacBook Air M4. If you want maximum speed, Maple Preview 20B-A1B hits 169 tok/s (published figure); for maximum capability, Ternary Bonsai 2 27B still fits in 16 GB.
About 38 of the 130 models in the LLMCheck index fit in 16 GB of unified memory, from compact models up to Mistral Small 3.2 24B (24B).
No. A dense 70B such as Llama 3.3 70B needs about 44 GB at 4-bit; with 16 GB, stick to models like MiniCPM5-2B. For a 70B, look at a 64 GB+ Mac.
16 GB is enough for dense models up to about 24B at 4-bit (the largest in the index that fits is Mistral Small 3.2 24B), and for mixture-of-experts models such as GPT-oss 20B (~34 tok/s (estimated)). As a rule of thumb a 4-bit model needs about 0.57 GB per billion parameters plus ~2 GB, and macOS needs its own share of memory too. Because Apple Silicon uses unified memory, the same pool serves as system RAM and GPU memory.