Best Local LLM for a 16GB Mac: I Tested 3 Models
On this page, 10 sections
I ran three open models on a 16GB MacBook Pro (M1 Pro) this morning, 26 November 2026. Gemma 4 12B passed 7 of 10 coding tasks. Qwen3.5 9B passed 5. Ornith 1.5 9B passed 3.
So my pick for this machine is Gemma 4 12B, if you can wait a little longer for each answer. Pick a 9B model if speed matters more than being right first time.
The part I did not expect: all three failed the same three tasks. A calculator, a server log parser and a robots.txt matcher.

The results in one table
| Gemma 4 12B | Qwen3.5 9B | Ornith 1.5 9B | |
|---|---|---|---|
| Tasks passed (of 10) | 7 | 5 | 3 |
| Model file | 6.98 GB | 5.68 GB | 5.78 GB |
| Reading speed (tokens per second) | 99 | 181 | 223 |
| Writing speed (tokens per second) | 14.5 | 18.0 | 20.9 |
A token is a piece of a word. Reading speed is how fast the model takes in your prompt. Writing speed is how fast the answer appears. Both speed rows are the middle value of 3 runs with a prompt of about 4,000 tokens.
Ornith writes fastest, but speed did not help its score.
The setup, so you can repeat it
Everything ran locally with llama.cpp, version 0.4.1 (build 10964), on macOS with 16GB of memory. I used its built-in server and sent each task through the local API.
brew install llama.cpp
llama-server -m gemma-4-12b-it-qat-q4_0.gguf -c 8192 -np 1 --reasoning off
The three files, all 4-bit compressed versions (that is what Q4 means), downloaded from Hugging Face the same morning:
- Google’s Gemma 4 12B QAT Q4_0, Apache 2.0 licence.
- Qwen3.5 9B Q4_K_M, converted by Unsloth, Apache 2.0 licence.
- Ornith 1.5 9B Q4_K_M from its own team, MIT licence.

Settings were the same for all three: temperature 0, thinking mode off, one attempt per task. If an answer hit my 1,500 token cap, it got one retry at 4,000.
That happened twice (Qwen on robots.txt, Ornith on Roman numerals) and neither passed. Each answer was Python code. A script ran that code against checks I wrote before any model saw the tasks, in a sandbox with no network.
I first ran every check against a known good solution, so a failed task means the model’s code failed, not the test.
The 10 tasks and who passed
| Task | What it asked for | Gemma | Qwen | Ornith |
|---|---|---|---|---|
| Merge intervals | Join overlapping number ranges | Pass | Pass | Pass |
| Parse duration | Turn 1h30m15s into seconds, reject bad input | Pass | Fail | Fail |
| Slugify | Make a clean URL slug | Pass | Pass | Pass |
| LRU cache | A small cache that drops the oldest item | Pass | Pass | Fail |
| Calculator | Do maths with brackets, without eval | Fail | Fail | Fail |
| Bot hits | Count successful requests per bot in server logs | Fail | Fail | Fail |
| Build order | Order tasks by what depends on what | Pass | Pass | Pass |
| robots.txt | Decide if a bot may open a page, per the standard | Fail | Fail | Fail |
| Roman numerals | Convert them, reject invalid ones | Pass | Fail | Fail |
| Top words | List the most frequent words | Pass | Pass | Fail |
Where each model broke
The failures tell you more than the score. These are the ones I opened and read.
Gemma 4 12B wrote a calculator and left division out of its operator list. So 2+3*4 worked, but 10/4 crashed. In the log parser, its pattern expected one field too many before the date, so no line matched.
Qwen3.5 9B got the duration parser wrong in a quiet way. Its pattern made the letters optional but required all three numbers, so a plain 45m was rejected. Its Roman numeral code accepted MMMM, past the limit I set.
Ornith 1.5 9B used OrderedDict without importing it, so the cache crashed as soon as it was created. Its word counter had a broken pattern that Python refused to compile.
None of these look strange when you skim the code. That is the real lesson for me: run it before you trust it.
Why the robots.txt task matters
This one is close to real site work. The rules come from RFC 9309: pick the right group for the bot, let the longest matching rule win, handle wildcards.
All three produced code that looked reasonable. All three failed.
If you plan to block or allow AI crawlers with code a small model wrote, test it first. My guides on Anthropic’s crawlers and verifying GPTBot by IP cover the rules those scripts have to follow.
What about thinking mode?
Ornith 1.5 9B ships as a reasoning model: it is meant to think before it answers. So I ran some of its failed tasks again with thinking on, at temperature 0.6, the coding setting on its model card, with up to 10,000 tokens.
I ran 5 of its 7 failures to the end and then stopped the run for time. It passed 1 (top words). The other 4 still failed. The log parser used all 10,000 tokens over 463 seconds and never defined the function. The calculator took 293 seconds.
I did not rerun the robots.txt and Roman numeral tasks, and I did not test Gemma or Qwen with thinking on. So treat the table above as an instant answer test only.
Which one I would pick
- Best answers on 16GB: Gemma 4 12B. Most tasks passed, slowest output.
- Quick drafts and small edits: Qwen3.5 9B. Close on speed, 2 more passes than Ornith here.
- Ornith 1.5 9B: its team calls it a reasoning model. My partial thinking-on rerun recovered 1 of 5 failed tasks, slowly.
For anything that must be right, I would still check the output or use a larger hosted model. I wrote about how I choose between Claude Code and Codex for that side of the work.
If your question is whether to teach a model your own data, that is a different problem. Start with RAG vs fine-tuning. And if you give coding tools a project instructions file, see what top GitHub repos put in AGENTS.md.
What this test does not show
- 10 small Python tasks, one scored attempt each. It is not a full benchmark.
- Only coding. I did not score writing, summaries or chat.
- My usual apps stayed open and macOS was using swap (disk space as extra memory). A clean machine may be faster.
- I skipped gpt-oss-20b. Its file in the llama.cpp team’s repo is 12.11 GB, which leaves little room on 16GB. I did not try it.
- A different compression, runtime or newer model file can change the result.
Try it in 10 minutes
Install llama.cpp, download one file, start the server and open the local web page it prints. Then give it three tasks from your own week, not a puzzle from the internet.
Run the code it gives you. Keep the model that passes your tasks.
Which task would you throw at it first?
Frequently asked questions
What is the best local LLM for a 16GB Mac?
In my 10 task coding test on an M1 Pro with 16GB, Gemma 4 12B passed the most, 7 of 10. Qwen3.5 9B passed 5 and Ornith 1.5 9B passed 3, all with thinking off.
How fast is a local LLM on an M1 Pro?
In this test, writing speed was 14.5 tokens per second for Gemma 4 12B, 18.0 for Qwen3.5 9B and 20.9 for Ornith 1.5 9B on long prompts.
Can a local model replace a paid coding assistant?
Not from this evidence. Every model failed the calculator, log parser and robots.txt tasks, so I would use them for small jobs and always run the code.