# EP 66: Ternary Bonsai 2.5: A 27B Coding Model in Just 5.9 GB

- URL: https://www.agenticpod.net/episodes/ep66-ternary-bonsai-local-coding-model/
- Watch on YouTube: https://www.youtube.com/watch?v=vg8Rz_ANhOM
- Published: 2026-11-25
- Length: 6 min
- Hosts: Stella (asks), Liam (answers). Both are AI hosts with AI-generated voices.

## Summary

PrismML announced Ternary Bonsai 2.5 on November 24, 2026: a 27B coding model stored with ternary weights that fits in just 5.9 GB instead of roughly 54 GB, free under the Apache 2.0 license and running locally via llama.cpp and MLX.

## Key takeaways

- Ternary Bonsai 2.5, announced by PrismML on November 24, 2026, is a 27-billion-parameter coding model stored with ternary weights: every weight is minus one, zero or one, about 1.76 bits per weight, so the full model is 5.9 GB instead of roughly 54 GB at 16-bit precision.
- It is a free download under the Apache 2.0 license, so commercial use is allowed, and launch coverage describes llama.cpp and MLX builds that run locally on Mac, iPhone and iPad, with no API meter and no code leaving the machine.
- PrismML claims 75.6 on SWE-Bench Verified, an agentic coding average up from 37.9 to 54.2 and a tool-calling average up from 60.2 to 82.2 versus Bonsai 2, but the 75.6 is a vendor claim with no independent verification yet, and SWE-Bench scores vary with harness and attempts.
- The honest test is your own repo: run the model on five real issues you already fixed by hand, grade it against the fixes you know pass, and watch multi-turn tool use first, because that is where small local models stumble.
- The tradeoff is precision: ternary weights carry less nuance than 16-bit weights, so treat the headline score as a reason to test the model, not a reason to switch to it.

## Chapters

- 0:00 Intro
- 0:49 What ternary actually means
- 1:50 How to run it on your own machine
- 3:08 The benchmark claim, and how to test it yourself
- 4:34 Gotchas, limits, and the honest verdict

## FAQ

**What is Ternary Bonsai 2.5?**

PrismML's 27-billion-parameter coding model, announced on November 24, 2026. It stores its weights as ternary values (minus one, zero or one, about 1.76 bits per weight), which shrinks the full model to 5.9 GB instead of roughly 54 GB at 16-bit precision.

**How do I run Ternary Bonsai 2.5 locally?**

Download the model (free, Apache 2.0), then run the llama.cpp build with llama-cli or llama-server, or the MLX build on Apple Silicon Macs, iPhone and iPad. Point it at the model file and start with a simple prompt before wiring it into a coding agent.

**Is the 75.6 SWE-Bench Verified score verified?**

Not independently. 75.6 is PrismML's own figure from its announcement, and SWE-Bench scores move with the harness, the setup and the number of attempts. The episode recommends grading the model on five real issues from your own repo before trusting any benchmark.

**What does ternary cost in quality?**

Precision. Three values per weight carry less nuance than 16-bit weights, so a full-precision model still has more room to think on fuzzy, ambiguous tasks. The size win is real (about nine times smaller); how much coding ability survives is what your own tests decide.

## Resources

- [Step-by-step guide](https://github.com/asly-97/ai-automation-workflows/tree/main/ternary-bonsai-local-coding)

## Transcript

### Intro

Liam: Hey hey hey, welcome to Agentic Pod! I'm Liam.

Stella: And I'm Stella! Liam, a 27 billion parameter coding model that fits in 5.9 gigabytes? That is phone storage, not server storage.

Liam: That is the headline. PrismML announced Ternary Bonsai 2.5 on November 24th, and the whole model is smaller than most game updates.

Stella: 27 billion parameters is a serious size. My laptop starts sweating at half that.

Liam: Normally it would need about 54 gigabytes just to sit there. This one needs 5.9. The trick is in the weights, and it has a name you can actually picture.

### What ternary actually means

Stella: Okay, plain words. What is a weight, and what does ternary do to it?

Liam: A weight is one number inside the model, one tiny dial it learned during training. A normal model stores each dial with 16 bits of precision.

Stella: And ternary stores it with, what, three options?

Liam: Exactly three. Minus one, zero, or one. That works out to about 1.76 bits per weight, because three options carry a bit more than one bit of information.

Stella: So 27 billion dials, each one just low, off, or high?

Liam: Low, off, or high. That is the whole trick, and that is why 54 gigabytes becomes 5.9, about nine times smaller.

Stella: Something has to give. You do not throw away that much precision for free.

Liam: Right, precision is the price, and we will come back to what it costs. First, the part everyone actually cares about: it runs on the machine already on your desk.

### How to run it on your own machine

Liam: The model is a free download right now, under the Apache 2.0 license.

Stella: Apache 2.0 means commercial use is allowed, yes?

Liam: Allowed. Your company can ship with it. No license fee, and no API meter running while you code.

Stella: And it runs where, exactly?

Liam: Locally. The launch coverage points to llama dot cpp and MLX builds, for Mac, and even iPhone and iPad.

Stella: A 27B coding model on a phone. That still sounds wrong.

Liam: Wrong but real. On a Mac you grab the MLX build, or the llama dot cpp build, point it at the model file, and start chatting with it.

Stella: And then I wire it into my coding agent?

Liam: That is the upgrade story. Bonsai 2.5 is built for agentic coding: multi turn tool use, and long tasks that run step after step without drifting.

Stella: Which is exactly where small local models usually fall apart.

Liam: Exactly where they fall apart. So the claim is big, and the claim needs testing. Which brings us to the number everyone will quote.

### The benchmark claim, and how to test it yourself

Stella: The number is 75.6 on SWE-Bench Verified, right?

Liam: That is PrismML's number, from their own announcement. SWE-Bench Verified is a set of real GitHub issues, and the model has to produce a fix that passes the project's own tests.

Stella: And 75.6 would put it near models many times its size.

Liam: It would. PrismML also says the agentic coding average jumped from 37.9 to 54.2 over Bonsai 2, and tool calling from 60.2 to 82.2.

Stella: Those are big jumps. Who checked them?

Liam: Nobody independent, yet. And that matters, because SWE-Bench scores move with the harness, the setup, and how many attempts the model gets.

Stella: So how should a listener test it?

Liam: On their own repo. Take five real issues you already fixed by hand, run Bonsai on them locally, and grade it against the fixes you know pass.

Stella: And watch the tool use first?

Liam: Watch multi turn tool use like a hawk. One clean answer is easy. Ten steps of reading files, editing, and running tests without losing the thread is the real exam.

Stella: That is a test anyone can run this weekend, for free.

Liam: Free, private, and your code never leaves your machine. Which is the whole point, and also where the limits live.

### Gotchas, limits, and the honest verdict

Liam: Limit one: ternary weights cost precision. On fuzzy, ambiguous tasks, a full precision model still has more room to think.

Stella: Limit two?

Liam: The 75.6 is a vendor claim until an independent lab reproduces it. Treat it as a reason to test, not a reason to switch.

Stella: And the timing is wild, by the way. This is a crowded month for open models.

Liam: Very crowded. Z.ai dropped GLM 5.4, a 750 billion parameter loop transformer, on November 23rd. Thinking Machines shipped Inkling 2 Mini on November 20th.

Stella: So Bonsai is the small, local bet in a month of giants.

Liam: That is the bet. No API bill, no code leaving the building, and it fits in 5.9 gigabytes.

Stella: My verdict: download it, grade it on your own issues, and let your repo decide.

Liam: Mine matches. The size is real, the score is a claim. Would you trust a 5.9 gigabyte model with your codebase? Tell us in the comments. See you next time!
