# A 27B AI model now fits in 6 GB. Here is what I would do with it on my Mac

> On November 24, 2026, PrismML released Ternary Bonsai 2.5 27B, a 27 billion parameter model based on Qwen3.8 27B, free under Apache 2.0. Its weights are -1, 0 or +1 with a shared scale per 128 weights, 1.76 bits per weight, so the model is 5.93 GB instead of 53.8 GB at 16 bits. PrismML reports 75.6 on SWE-bench Verified, against 80.6 for the full model. It runs on Apple silicon Macs through MLX, llama.cpp, LM Studio and Ollama; the MLX download is 8.86 GB. PrismML gives no minimum memory. By MacPip's memory calculator it fits on a 16 GB Mac and is tight on 8 GB.

By Justinas Rolando, maker of MacPip. Published November 29, 2026. Page: https://macpip.com/blog/bonsai-2-5-27b-local-ai-mac

A 27 billion parameter AI model now fits in about 6 GB. PrismML released Ternary Bonsai 2.5 27B on November 24, 2026, free under Apache 2.0, and it runs on Apple silicon Macs through MLX, llama.cpp, LM Studio and Ollama.

That's a big deal for anyone who wants AI on a Mac without sending everything to a server. The full model it's built on, Qwen3.8 27B, weighs 53.8 GB at 16 bits, which most Macs can't hold at all. Bonsai 2.5 packs the same model into 5.93 GB, per [PrismML's model card](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF). If you're still picking which [AI apps for Mac](/best/best-ai-apps-for-mac) to use, this is worth a look first. Here's what changed, which Macs can run it, and what I'd do with it as a user and as a Mac app maker.

## What did PrismML release?

[PrismML's announcement](https://prismml.com/news/bonsai-2-5-27b) calls it a ternary model. Each weight is one of three values, -1, 0 or +1, with one shared scale for every group of 128 weights. That works out to 1.76 bits per weight in the smallest file, where a normal model uses 16.

The usual catch with squeezing a model this hard is that it gets dumber. PrismML's own numbers say it lost less this time:

- **SWE-bench Verified**, a coding test: 75.6 for Bonsai 2.5, against 80.6 for the full 16-bit model and 60.8 for the older Bonsai 2.
- **AppWorld**, a test of using apps through tools: 90.5, against 93.2 for the full model.
- **Tool calling**, averaged over five tests: 77.2, against 77.7 for the full model.

These are PrismML's own benchmarks, run in its own setup, so I'd treat them as a promise to check, not a verdict.

## Which Macs can run Bonsai 2.5 27B?

PrismML doesn't give a minimum amount of memory, and it doesn't list which Macs it tested beyond two chips. So I did the math with today's free tool, the [Mac AI model memory calculator](/tools/mac-llm-memory-calculator). At 5.93 GB of weights, it fits on a 16 GB Mac with about 7 GB to spare after leaving 4 GB for macOS and your apps. On an 8 GB Mac it's tight: it fits in the memory, but only if you close almost everything else.

Two things make it bigger than 6 GB in practice:

- **The download you pick.** The MLX version is 8.86 GB, because it carries the picture-reading part of the model at full size. The Q2_0 GGUF files for standard llama.cpp are around 7.5 GB.
- **Long chats.** The model takes up to 262K tokens of context, and every token in a chat needs a bit of memory on top of the weights. A short chat is fine. A whole codebase pasted in is not free.

On speed, the card's numbers are from an M5 Pro: 30.2 tokens a second through llama.cpp and 21.7 through MLX. An M4 Pro did 22.9, or 25.3 with the model's built-in speedup turned on. That's quick enough to read along as it writes. PrismML gives no numbers for base M chips or for iPhone, so I wouldn't assume those.

Intel Macs can run it on the CPU through llama.cpp, the [Bonsai demo README](https://github.com/PrismML-Eng/Bonsai-demo) says, but expect it to be slow.

## How would I try it on my Mac?

The easiest way is an app, not Terminal:

1. **LM Studio.** The [MLX model page](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit) has a link that opens it straight in LM Studio. PrismML notes that LM Studio ships its own engines, so whether it loads depends on the LM Studio version you have.
2. **Ollama.** One line: `ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0`.
3. **llama.cpp.** Check your version first with `llama-cli --version`. The card says stock builds older than b11556 load the Q2_0 file without any warning and produce garbage. The smallest 5.93 GB file needs PrismML's own fork of llama.cpp.

Two things on the pages don't agree yet. The MLX model card says that version reads pictures, and the demo README says it's text only. The card also shows `mlx_lm.server` commands, while the README says the tested mlx-lm can't load these files directly. If one of those is the reason you're trying it, test it before you count on it.

Before downloading anything, open Activity Monitor and look at Memory Pressure with your normal apps open. If it's already yellow, a 6 GB model will push you into swap.

## What does this mean for Mac app makers?

This is the part I find most interesting. Apache 2.0 means you can ship it inside a commercial app, as long as you keep the license and attribution notice. And a coding model that fits in 6 GB changes the math on a few things:

- **On-device AI features.** No server bill, no API key for your users, and their text never leaves the Mac. That's a real selling point for notes, mail and writing apps.
- **The download.** A 6 to 9 GB model is too big to bundle in the app itself. I'd download it on first use, show the size before starting, and let people delete it from Settings.
- **The 8 GB question.** Plenty of people still use 8 GB Macs. I'd check memory at launch and offer a smaller model, or an online fallback, on those Macs. My [post on Mac memory prices](/blog/mac-memory-prices-8gb-macs-app-makers) has more on why 8 GB Macs aren't going away.
- **Coding agents.** If you build or use [AI coding agents on the Mac](/best/best-ai-coding-agents-for-mac), a local 27B model that scores 75.6 on SWE-bench is worth a test run as an offline backup.

If you'd like a quick way to build a small AI tool without any of this, my [Claude Install as app post](/blog/claude-install-as-app-mac-indie-apps) covers the online route.

## What I'd do this week

1. Put your Mac's memory and the file you want into the [memory calculator](/tools/mac-llm-memory-calculator) before downloading anything.
2. Try it in LM Studio or Ollama on one real task you do every week, and compare it with the AI tool you use now.
3. If you make a Mac app with AI features, test one of them against this model on a 16 GB Mac.

The [AI category](/category/ai) on MacPip is a good place to see what other Mac apps do with local models. If you make one, [listing it on MacPip is free](/submit). Apps are scanned automatically when they're submitted, and a blue tick only means MacPip checked the app on a date.


## Sources
- [PrismML: Ternary Bonsai 2.5 27B (November 24, 2026)](https://prismml.com/news/bonsai-2-5-27b)
- [Hugging Face: Ternary-Bonsai-2.5-27B-GGUF model card](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF)
- [Hugging Face: Ternary-Bonsai-2.5-27B-mlx-2bit model card](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit)
- [GitHub: PrismML Bonsai demo README](https://github.com/PrismML-Eng/Bonsai-demo)
- [llama.cpp release b11556 (Q2_0 support)](https://github.com/ggml-org/llama.cpp/releases/tag/b11556)
