Here’s the pitch that made me stop scrolling: a 27-billion-parameter coding agent, squeezed into about 5.9GB, that runs on your laptop. Not in a data center. Not behind an API key. On the machine in front of you, with your code staying exactly where it already is.
That’s Ternary Bonsai 2.5, released by PrismML on 24 November 2026. I went into this one skeptical, because I’ve heard this pitch before: a small model that will supposedly replace the big expensive ones, and then the demo turns out cherry-picked and the setup turns out painful. Fair warning too: I haven’t run this model myself, and I won’t pretend I have. Everything hands-on here is the documented setup, straight from PrismML’s announcement and model card, with the commands quoted exactly as the card gives them. What I can do is read those sources properly, separate PrismML’s claims from what’s verified, and show you the traps before you spend an afternoon finding them yourself.
The headline numbers are striking, if you take them at face value. On PrismML’s own table, Bonsai 2.5 jumps from 60.8 to 75.6 on SWE-bench Verified in one release — that’s the test where a model fixes real issues in real repos. AppWorld goes from 51.2 to 90.5. DeepSWE goes from zero to 27.0. Every one of those numbers is PrismML’s own, measured by PrismML in thinking mode at xhigh reasoning effort, and none has been independently reproduced yet. Say that out loud before you repeat any of them. Still, the direction is hard to ignore: a much stronger model than its predecessor, in a file smaller than a single 4K movie.
Who is this for? If you’re a founder with a small team, a creeping API bill, and client code or regulated data you don’t love sending to someone else’s servers — this is worth an hour. If you need the absolute best coding quality money can buy, keep reading too, because the honest answer for you might be “not yet.” This guide helps you tell the difference before you commit either way.




What “ternary” actually means, in plain English
Most models store each weight — the numbers learned during training — as a fairly precise decimal, typically 16 bits per weight. Bonsai 2.5 stores each weight as one of only three values: minus one, zero, or plus one. That’s it. Thumbs-down, shrug, or thumbs-up. It sounds like it should destroy anything subtle the model can do, and for a long time that was the reasonable assumption. The surprise is that you can train a model from the start to live with only three values per weight, and it holds up far better than expected. It spreads its knowledge across many simple connections instead of relying on a few precise ones. A different way of being smart, not just a worse version of the usual way.
The payoff is size. At 1.76 bits per weight, the whole 27.36-billion-parameter model fits into a 5.93GB file in its smallest packing, versus 53.8GB for the same model in FP16. Roughly nine times smaller. And one honest note on the number, mentioned once so nobody thinks I’m hiding a discrepancy: the Hugging Face file listing shows 5,993,834,848 bytes for that file, a touch above 5.93GB depending on how you count gigabytes. Same file, just rounding. That’s why this guide says “about 5.9GB.” What matters isn’t the third decimal place — it’s the category change. A 53.8GB model is infrastructure you provision for. A 5.9GB model is a download you try on a Tuesday afternoon. That difference in friction is the whole story here.
What PrismML actually shipped
Bonsai 2.5 27B upgrades Ternary Bonsai 2 27B (17 September 2026). Same size class, same ternary approach, much better results. It’s based on Qwen3.8-27B, with 27.36 billion total parameters. The weights are free under the Apache 2.0 licence — a real, permissive licence covering commercial use, products, and fine-tuning, subject to its terms. There’s no API price because there’s no API. Your costs are hardware, electricity, and time. That changes the shape of the bill from variable to fixed: an API bill grows with every token your team generates, while a local model costs the same whether it writes ten lines or ten thousand. Fixed doesn’t automatically mean cheaper — hardware and your time aren’t free — but for steady, heavy use it often wins. I’ve written before about cutting your AI API bill, and the same logic applies: the cheapest token is often the one you never send to an API.
Two scope notes that save confusion later. First, the vision tower ships separately as an optional mmproj file — the 5.9GB text download doesn’t see images on its own. Second, the MLX build is text-only. MLX is Apple’s framework and the route for Macs and Apple mobile devices; if your use case needs the model to read screenshots, that’s a different setup. Neither is a deal-breaker for a coding agent, which mostly reads text. For context on where this fits among laptop-sized models, compare notes with Inkling 2 Mini, which takes a very different technical path — mixture-of-experts with looping layers — to a similar goal. The founder question is the same for both: what can you get done on hardware you already own, and where do you still need the big hosted models?
The benchmark story, told honestly
Benchmark tables are where you slow down, not speed up. Every lab picks tests that flatter its model and runs them in the configuration that flatters it most. That doesn’t make the numbers fake — it makes them partial. So here’s my rule for this section: every number is PrismML’s own, from PrismML’s table, in thinking mode at xhigh reasoning effort, vendor-run, not independently reproduced. When I say “Bonsai 2.5 scores 75.6,” I mean precisely “PrismML reports 75.6 on its own setup.” Hold that distinction, because most press coverage doesn’t.
| Benchmark | Bonsai 2 | Bonsai 2.5 | FP16 |
|---|---|---|---|
| SWE-bench Verified | 60.8 | 75.6 | 80.6 |
| DeepSWE v1.1 | 0 | 27.0 | 30.1 |
| Terminal-Bench 2.1 | 52.8 | 60.1 | 70.8 |
| AppWorld | 51.2 | 90.5 | 93.2 |
| tau3-Bench | 69.1 | 73.9 | 72.8 |
SWE-bench Verified gives the model real GitHub issues and checks whether its patch fixes the issue without breaking tests — about as close as benchmarks get to real coding work. A 14.8-point jump in one release matters, even though 75.6 is still five points short of FP16’s 80.6. DeepSWE is a long-horizon agentic test in a real software environment, over many steps with tools. Bonsai 2 scored zero there — not low, zero — and Bonsai 2.5 scores 27.0 against 30.1 for FP16. That suggests the older model couldn’t complete the task setup at all. Going from that to within three points of full precision is the most encouraging result here for anyone who wants an agent, not just a code completer — and the one I’d most like to see independently reproduced, precisely because the jump is so dramatic. Terminal-Bench 2.1 tests terminal work (commands, file edits, debugging). AppWorld tests multi-step work across apps through APIs. tau3-Bench is the exception that proves the model isn’t just a degraded copy: Bonsai 2.5 beats FP16 there, 73.9 to 72.8, on disciplined tool use in simulated customer-facing scenarios.
The averages, again PrismML’s own figures, tell the same story in summary. Across five tool-calling benchmarks: 77.2 vs 77.7 for FP16 — essentially tied. Across three agentic-coding benchmarks: 54.2 vs 60.5, about 90% of full precision. Across sixteen general-capability benchmarks: 82.1 vs 84.3. A coding agent lives or dies on tool use and sustained multi-step work, and that’s exactly where Bonsai 2.5 is closest to the full model.
“On PrismML’s own table, Bonsai 2.5 jumps from 60.8 to 75.6 on SWE-bench Verified and from 51.2 to 90.5 on AppWorld — but it still trails the FP16 model on coding, and every number here is vendor-run in thinking mode at xhigh effort, not independently reproduced.”
Where it loses — because it does
PrismML published the weaker rows too, and a lot of launch coverage skipped them. LiveCodeBench v6 actually dipped: 83.8 for Bonsai 2 down to 83.0 for Bonsai 2.5. Small, wrong direction, and a useful reminder that newer doesn’t mean better at everything. BFCL v4 (the Berkeley Function Calling Leaderboard) trails FP16 too: 67.2 vs 70.8 — interesting, given the near-tied tool-calling average, so if your product depends heavily on precise function calling in BFCL’s exact format, test Bonsai 2.5 on your own schemas before committing. And remember the configuration: xhigh is the most accurate setting and the slowest. At medium effort, expect lower scores. Low effort is unsupported and behaves close to xhigh, so don’t hunt for a low-effort mode that doesn’t really exist — your real choice is xhigh (default, most accurate) or medium (faster, a bit less careful).

The hardware reality check
Can it run on your laptop? Probably — but “run” covers a wide range, and the gap between a model that technically loads and one you’d work with all day is the gap between a demo and a tool. On NVIDIA, PrismML reports 291 tokens per second on an H100 with MTP (multi-token prediction: predicting several tokens at once), and 204 on an RTX 4090 with MTP. Plain decode runs at 186 and 112 respectively, so MTP speeds decode 1.5 to 1.8 times on NVIDIA. At 200 tokens per second, a long coding trace finishes while you’re still reading the first part. If you have a 4090 or better, speed isn’t your problem.
On Apple silicon it’s slower and more ordinary. PrismML reports 29.2 tokens per second on an Apple M4 Pro with optimized kernels (PQ2_0 packing, Metal). At that speed a 500-word response takes about a minute and a half, and a long agent trace takes several minutes. Usable — genuinely usable, for a solo developer working through tasks one at a time — but not snappy. On an M5 Pro, the MLX build manages 348 tokens per second prefill and 21.7 decode, against 416 and 30.2 for llama.cpp on the same machine, in PrismML’s figures. Prefill is reading your prompt; decode is writing the answer. If raw speed on a Mac is the priority, llama.cpp looks better on those numbers. If you’re shipping an Apple app, MLX integration may matter more than speed. Try both — a 5.9GB download makes that cheap.
The phone number you should not plan around
PrismML reports 8.79 tokens per second measured on a Galaxy S26 Ultra. It sounds like the future: a real coding agent on your phone. Don’t plan around it. The Hexagon fix — the optimization for the phone’s Hexagon processor — has not yet been released, so the path to day-to-day phone use isn’t there today. File it under “watch this space” and build on laptops and desktops for now.
The RTX 3060 claim, labelled properly
You may see PrismML’s pitch that the model runs on an RTX 3060 with 12GB of VRAM. I’m labelling that exactly as it is: PrismML’s pitch, not a tested guarantee. It might turn out true for careful setups with modest context windows, but 12GB is tight once you count weights, working memory for context, and everything else your machine is doing. If you own a 3060 12GB, treat it as “worth trying” — start with a modest context window and adjust. If you’re buying hardware to run this model, buy more headroom than the minimum pitch suggests. The cheapest way to hate a local model is to run it right at the edge, where every long task crawls or crashes.
The 262K context: ceiling, not promise
Bonsai 2.5 supports a 262,144-token context window. That’s the architectural maximum, not a promise you’ll get that much usable context on your machine. Memory holds three things at once: the weights (about 5.9GB), the KV cache (working memory for the conversation, which grows with every token of context), and runtime overhead. Longer context means a bigger KV cache, which eats the memory the model needs just to run. Start modest — the documented example uses 32,768 tokens, a sensible starting point — and increase it only if your machine handles it comfortably. Thinking traces eat context too: in thinking mode, the reasoning the model writes before its answer counts against your window and output budget, so a small output cap ends generation mid-thought. Plan for it, and don’t compare a laptop’s working context with a hosted model’s data-center-backed context as if they’re the same thing. Both are fine. They’re different tools.
Setup, step by step: the documented path
Here’s the setup as PrismML documents it, with commands quoted verbatim from the model card — a single wrong flag can mean the difference between a working coding agent and a screen of nonsense. Pay special attention to Step 1. That’s where most people go wrong, and the failure mode is silent.
Step 1: Pick a packing before you download anything
Three packings, same model, three file formats for different runtimes:
- PTQ1_0 — smallest and fastest on NVIDIA. The 5.93GB file. Needs PrismML’s fork of llama.cpp (upstream review is ongoing).
- PQ2_0 — the Apple Metal packing. The fork build benchmarked on Apple Metal, and the source for the MLX export.
- Q2_0 — stock llama.cpp, build b11556 or newer. The warning, and I can’t stress this enough: older stock builds load this file WITHOUT warning and produce garbage. No error, just fluent-sounding nonsense. Check your version first; if unsure, update before downloading.
On NVIDIA with a fork: PTQ1_0. On a Mac via llama.cpp: PQ2_0. Simplest standard path with current llama.cpp: Q2_0, after verifying the build number. Building an Apple app: the MLX build. Don’t download all three “just in case” — pick one, get it working, try another only with a specific reason.
Step 2: Download the file
For PTQ1_0, the model card’s download command, using the Hugging Face CLI:
hf download prism-ml/Ternary-Bonsai-2.5-27B-gguf Ternary-Bonsai-2.5-27B-PTQ1_0.gguf --local-dir . That’s a roughly 5.9GB download — a few minutes on a normal connection. For other packings the filename changes; find the matching file in the same repository. Vision needs the separate mmproj file, fetched explicitly. The full file listing, with exact sizes, is on Hugging Face — check it before you commit to a download.
Step 3: Run it from the command line
The model card’s example command, verbatim:
./bin/llama-cli -m Ternary-Bonsai-2.5-27B-PTQ1_0.gguf -ngl 99 -fa on -c 32768 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 -p "..." -n 16384 Left to right: -m is your model file; -ngl 99 offloads layers to the GPU; -fa on enables flash attention for long contexts; -c 32768 sets the 32,768-token context. The sampling settings (--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0) are the card’s recommendations for thinking mode — use them exactly. Temperature 1.0 sounds high if you’re used to taming models to 0.2 for coding, but this model was tuned to think at 1.0, and forcing it lower can make its reasoning worse. Two details matter most. Pass --min-p 0 explicitly: some builds default min-p elsewhere, and the card says it must be 0.0. And -n 16384 caps output at 16,384 tokens — room for the thinking trace plus the answer. A small cap ends generation mid-thought and looks like the model gave up, when it just ran out of room.
Step 4: Run it as a server for tools and agents
For real use — an editor integration, a coding agent, an internal tool — run llama-server with the same model file and sampling settings. It exposes an OpenAI-compatible endpoint, so most coding tools can point at your local server exactly as they’d point at a hosted API, except nothing leaves your machine. One memory tip, from the community and caveated as such: adding -np 1 to llama-server limits parallel requests to one, and a community report on an RTX 3080 10GB found it cut memory from about 9.5GB to about 7.8GB. Single report, not a PrismML figure, and memory depends on build and context — treat it as worth trying if you’re tight on VRAM, not a guaranteed saving. For a single agent working for you, one request at a time is all you need anyway.
Step 5: The Mac and MLX path
For MLX on Apple silicon, PrismML points to prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit. Remember: text-only, no vision, and slower than llama.cpp on PrismML’s M5 Pro figures (21.7 vs 30.2 decode). For pure coding-agent use on a Mac, llama.cpp with PQ2_0 is the faster documented route. For shipping an Apple app, MLX may still be the right call despite the speed gap.
Step 6: Tool calling and agent setup
A coding agent isn’t just a model that writes code — it calls tools: reading files, running commands, searching a codebase, editing, running tests, reporting back. Bonsai 2.5’s tool-calling average (77.2 vs 77.7 for FP16, PrismML’s figures) suggests it should handle this well, but tool calling lives or dies on the harness: the agent framework, tool definitions, system prompt, and guardrails. Start with a known agent harness rather than building your own tool loop. Use the card’s sampling settings. Give the agent a small tool set first — read, run tests, edit one file at a time — and expand only after that works. And sandbox everything: a local model with file-system access and no sandbox can delete work or overwrite the wrong file. Require confirmation before destructive actions, keep backups, and test on a copy of your repo first. The full announcement, with PrismML’s table and hardware notes in the company’s own words, is on the PrismML announcement page — read it before building anything on these numbers.
What founders can actually use it for
1. A private-repo coding agent
Your codebase is your crown jewels, and plenty of founders are uneasy sending all of it, file by file, to a hosted API — not because something bad will necessarily happen, but because it’s a copy of your work on someone else’s infrastructure, under someone else’s retention policy. A local model removes that question: the code never leaves the laptop. Your client work, unreleased features, and embarrassing early code that still runs production all stay home. In practice this is an agent in your editor or terminal, pointed at your local server, doing junior-developer tasks: fix this failing test, add this endpoint following the existing pattern, refactor this module, write tests, review this pull request. On PrismML’s numbers it should handle routine versions well; on hard, ambiguous, multi-file tasks, expect it to need smaller steps and more checking. That’s what “90% of FP16 on agentic coding” means in real life: capable, not magic.
The cost shape helps too. An agent running all day generates a lot of tokens — thinking traces, tool calls, retries — and on an API that adds up fast, so founders start rationing the agent, which defeats the purpose. Locally, one more run costs basically nothing, so you let the agent try, fail, and retry freely. You still review its work — always — but you stop watching the meter. If you’ve been comparing other coding-focused models, you’ll recognize the same trade-off: the local model’s job isn’t to beat the frontier model, it’s to be good enough that you use it constantly instead of sparingly.
2. Offline document and data work
Every startup accumulates sensitive documents: contracts, customer data exports, financial models, hiring notes, the due-diligence folder for a fundraise. Much of it can’t — or shouldn’t — go to an external API, whether by contract, regulation, or common sense. A local model can summarize, compare, and extract structured information from that material without it leaving your machine: summarize twenty contracts and flag unusual termination clauses, compare two agreement versions and list every change, pull revenue figures into one table. None of it needs frontier reasoning, and all of it benefits from never uploading the documents. It also works offline — on a plane, in a basement office with terrible Wi-Fi — which is a reliability feature, not a gimmick. One limit: for scanned PDFs or screenshots read as images, check the vision setup first (separate mmproj file; MLX is text-only).
3. Customer-facing tool use without sending data out
This is the use case the tau3-Bench result points at. Picture a support or operations agent that follows your policies and uses your tools — look up an order, check a refund policy, update an account, escalate when the rules say so — without customer data leaving your infrastructure. “Your data never leaves our servers” is a sentence you can put in a sales deck, and with a local model it’s true in a way that’s easy to explain and audit. The caveat: one vendor-run benchmark in a simulated environment doesn’t prove the model will handle your real requests and edge cases flawlessly. Customer-facing agents need careful policy design, testing on your own scenarios, human escalation for anything irreversible, and logging. The model is one component, not the system. But as that component — strong on disciplined tool use, local, zero per-token cost — it’s an attractive starting point.
When to use local, when to stay on an API
Local and API models aren’t rivals where one wins. They’re different tools with different cost shapes, privacy properties, and quality ceilings. The founders who get this right use both, on purpose, for different jobs.
Go local when privacy or data control decides it; when usage is steady and heavy, so fixed hardware cost beats a growing per-token bill; when you need offline work or a constantly running agent without a meter; and when tasks are routine-to-moderate coding, document work, and disciplined tool use — where Bonsai 2.5 is closest to full precision. Stay on a hosted API when you need maximum quality on the hardest tasks; when you need genuinely huge working context your hardware can’t provide; when you don’t want to babysit hardware and runtimes; and when usage is bursty and light, so per-token pricing is cheaper than buying a machine. The TechTimes report captures the excitement around the SWE-bench jump, the ExplainX analysis puts the agentic-coding numbers in context, and 9to5Mac’s coverage is the best short version of the on-device angle for Mac users. Read all three, then go back to PrismML’s table and decide for yourself.
The decision checklist
- Code or data you can’t send to an API? Yes — local is the default. No — an API stays on the table.
- Steady, heavy daily use? Yes — fixed cost wins. Occasional use — per-token is probably cheaper.
- Suitable hardware today? A recent Mac with plenty of memory, or an NVIDIA card with 12GB+ VRAM to spare? If not, budget for hardware or start hosted.
- Routine-to-hard tasks, or frontier-hard? Routine-to-hard suits Bonsai 2.5. Frontier-hard belongs on the best hosted model you can afford.
- An afternoon for setup and testing? The path is documented but still involves a fork, a build check, and a packing choice. If that sentence tired you, start hosted.
- Vision or phone deployment needed this month? Vision needs the separate file; phone use isn’t ready. If either is a must-have, this isn’t your answer yet.
- Will you test on your own work first? If yes, download it — a 5.9GB test is cheap. If no, don’t build a product on any benchmark table.
What I’d do in week one
One week, with a clear pass/fail at the end, so you either adopt it or move on without guilt. Day one: setup and smoke test. Pick your packing, verify your llama.cpp build, download, run the card’s example command, and confirm coherent output. Garbage output? Check the build version first — the most likely cause. Then compare xhigh and medium effort on the same prompt and write down speed and quality for both.
Days two and three: five real tasks from your backlog, on a copy of your repo — a bug fix, a small feature, a refactor, a test-writing task, a code review. Score each honestly: worked first time, needed one correction, or you did it yourself. The metric isn’t “did it write code?” It’s “did model plus my review finish faster and better than me alone?” If the answer is no on four out of five, it isn’t your coding agent yet, and that’s useful information, not failure. Days four and five: wire it into the tool you actually use and make it your default for two full days. Track friction — stalls, switches back to the hosted model, context running out, long thinking traces. Friction is what benchmarks can’t measure, and it’s what decides whether a tool survives past week one. Then decide: adopt, adopt for specific tasks, or park it until the next release. All three are good outcomes if they’re based on your evidence.
If it works and you need it built into a real product — a shipped feature, a customer-facing tool, a properly integrated part of your website — that’s where the engineering around the model matters more than the model itself, and AISquadX, the web development and AI integration studio run by the owner of this site, is the kind of specialist team that does that work. The model is free. The integration is where the value — and the cost — lives.
Frequently asked questions
Is Ternary Bonsai 2.5 really free?
The weights are free under Apache 2.0, and there’s no API price because there’s no API. Your costs are hardware, electricity, and setup time. “Free weights” and “free to run” aren’t the same thing: a laptop you already own makes it nearly free; a new GPU bought just for this is real capital cost. The fixed cost shape suits steady, heavy use. Anyone who tells you local AI costs nothing is selling you something.
Will it run on my laptop?
It depends on the laptop. On an M4 Pro, PrismML reports 29.2 tokens per second — usable for a solo agent, not fast. An RTX 4090 hits 204 with MTP. PrismML pitches the RTX 3060 12GB, but treat that as a pitch, not a guarantee: start with a 32K context and see how your machine behaves. Weights are only part of memory — context and working memory matter too. The cheapest test is the download itself.
Why does my download produce garbage output?
Most likely the packing/build mismatch: Q2_0 on stock llama.cpp older than b11556 loads without warning and produces garbage. Update to b11556 or newer and verify your build before concluding the model is broken. Next most likely: sampling settings — use the card’s (temp 1.0, top_p 0.95, top_k 20, min_p 0.0, passed explicitly). Third: an output cap too small for the thinking trace. Start with the card’s example command exactly as written, confirm coherent output, then change one thing at a time.
Is it better than the full-precision FP16 model?
On PrismML’s numbers, no — not overall. It trails FP16 on SWE-bench Verified (75.6 vs 80.6), agentic coding on average (54.2 vs 60.5), and general capability (82.1 vs 84.3). It ties on tool-calling on average (77.2 vs 77.7) and beats FP16 on tau3-Bench (73.9 vs 72.8). Fair summary: very close on tool use, behind on the hardest coding, dramatically better than Bonsai 2. For routine work, 90% of FP16 at a ninth of the size is a great trade. For the hardest tasks, FP16 or a frontier hosted model is still better.
Should I build my product on it today?
Build your test on it today; build your product on it only after that test passes on your own work, data, and hardware. The benchmarks are encouraging and the privacy story is real, but they’re vendor-run numbers on a days-old model, unreproduced independently. Run the week-one plan, score it honestly, and let your evidence decide. If phone deployment or vision is core to your product, wait: the phone fix hasn’t shipped, and vision needs the separate file. Don’t build a launch date around either yet.
The Bottom Line
Is Ternary Bonsai 2.5 the moment local AI gets serious for founders? It’s the strongest evidence yet that a small model on your own machine isn’t a compromise you tolerate — it’s a real option you choose on purpose, for the right jobs. A 27B coding agent in about 5.9GB, free under Apache 2.0, with tool-use numbers essentially tied with full precision and coding numbers up 15 points in one release, is a tool. An imperfect one, with a silent failure mode, modest Mac speed, no phone story yet, and benchmarks needing independent checking. But a tool.
Test it the way I’ve described: one packing, one machine, five real tasks, honest scoring, a decision at the end of the week. If it earns its place, use it for the private, steady, everyday work — the repo agent, the offline documents, the customer-facing tools that should never send data out — and keep hosted frontier models for the hardest jobs where quality is everything. That’s not a compromise. That’s good engineering. And don’t take my word for any of this: download the file, run the card’s command, and see what it does on your code. The test is cheap, the evidence is yours, and nobody has to take a benchmark table on faith.



