Ternary Bonsai 2.5 Packs 27B Coding Power Into 5.9GB — It Runs on a Phone
November 25, 2026 · 5 min read
PrismML released Ternary Bonsai 2.5 27B on November 24: a ternary-quantized model based on Qwen3.8 27B that needs just 5.9GB of memory, averaging 54.2 points across three agentic coding benchmarks including SWE-bench — up from 37.9 for the previous generation. It is open source under Apache 2.0 and runs locally on Macs, iPhones, and consumer GPUs. A 27-billion-parameter coding model that fits on a phone is edge AI taking another step forward. The release is dated November 24, and the model is already downloadable under the Apache 2.0 license, which means anyone can use it, modify it, and ship it in a commercial product without paying PrismML.
The number that does the work here is 5.9GB. A typical 27B model needs tens of gigabytes; Bonsai 2.5 needs less than a single high-end phone has to spare. The trick is ternary quantization: instead of storing each weight as a precise number, the model stores it as one of three values — roughly -1, 0, or +1. Crude, in principle. The surprise is how little it costs: the benchmark average jumped from 37.9 to 54.2 in one generation, which means the compression got much smarter, not just smaller.
Coding is the right test for a small model
The benchmarks PrismML chose are not trivia quizzes; they are agentic coding tests, including SWE-bench, where the model has to read a codebase, find a bug, and fix it. A small model that scores 54.2 on those tests is not a toy — it is doing real work, the kind developers actually pay for. That matters because coding is the first place a local model earns its keep: it can run inside an editor, offline, on your own machine, without sending your code to someone else's server. For a developer, the difference is concrete: a cloud coding assistant sends every file you open to a remote server, while a local model keeps your code on your machine — a distinction that matters for proprietary codebases and for anyone working offline.
Local changes who controls the model
A model that runs on a phone changes the power balance. A cloud model is rented: the provider can change it, restrict it, watch what you ask, or take it away. A local model is yours: it runs on your hardware, on your data, with no one in the middle. That is why the 5.9GB figure matters more than the benchmark score. The score says the model is capable; the size says it can live where you live. Privacy, offline use, and independence from any provider all follow from fitting in a pocket. There is a second effect, less obvious: when the model lives on your device, it works when the network does not — on a plane, in a basement, in a country with unreliable connectivity.
The tradeoff is real, and so is the progress
Ternary quantization is still a tradeoff: three values cannot carry as much information as a full-precision weight, and a 27B ternary model will not match a 27B full-precision model on every task. But the gap is closing fast — a 16-point jump in one generation is the kind of improvement that changes what the tradeoff is worth. The question is no longer whether a tiny model can be useful; it is how much capability can be squeezed into how little memory, and Bonsai 2.5 just moved the answer. The compression technique itself is not new; ternary networks have been a research curiosity for years. What is new is the result: a ternary model good enough that the tradeoff stops looking like a sacrifice.
What to watch next
Three things. First, whether developers actually adopt it — downloads and real-world use will say more than benchmarks. Second, whether ternary quantization spreads to other model families, or stays a PrismML specialty. Third, what happens to the phone itself: if 27B-class coding runs locally, the next question is what else gets squeezed on-device, and how quickly the cloud stops being the default place where AI lives.