Bonsai 2.5 Fits a Coding Agent Into 5.9GB
PrismML released Ternary Bonsai 2.5 27B on Nov. 24, 2026, an Apache 2.0 open-weight model that keeps a 5.93 GB footprint while raising its agentic coding average to 54.2 from 37.9, about 90% of the full-precision Qwen3.8 27B, by the company's measurements.
PrismML on Tuesday released Ternary Bonsai 2.5 27B, an open-weight model that keeps its predecessor's 5.93 GB footprint while sharply improving how it handles long, multi-step agent tasks such as fixing code and calling tools. The Pasadena, California, startup published the weights for free under the Apache 2.0 license on Nov. 24, 2026.

Key takeaways
- Bonsai 2.5 averages 54.2 on three agentic coding benchmarks, up from 37.9 for Bonsai 2 and about 90% of the full-precision base model's 60.5, according to PrismML.
- Its SWE-bench Verified score rose to 75.6 from 60.8, and its AppWorld tool-use score to 90.5 from 51.2.
- The model is about 9 times smaller than the 53.8 GB FP16 original and runs on Nvidia and Intel GPUs via llama.cpp and on Mac, iPhone and iPad via MLX.
What changed in Ternary Bonsai 2.5 27B
Bonsai 2.5 is built on Alibaba's open-weight Qwen3.8 27B. Like Bonsai 2, released Sept. 17, it stores each weight as -1, 0 or +1, with one shared scale for every group of 128 weights. That works out to 1.76 bits per weight.
The weight format did not change. What changed is behavior over long tasks. PrismML said it focused on helping the model interpret tool results, adjust when a step fails and stay on the task's goal. It also targeted "excessive thinking and repetitive loops" in the previous model, which the company says now finishes tasks in fewer turns and with fewer tokens.
"Getting a capable model onto a device is only part of the challenge," said Babak Hassibi, PrismML's founder and CEO. "It also has to remain effective through all the decisions involved in completing a real complex task. That is where we focused our work with Bonsai 2.5."
Bonsai 2.5 benchmarks vs. Qwen3.8 27B
| Benchmark | Qwen3.8 27B (FP16) | Bonsai 2 27B | Bonsai 2.5 27B |
|---|---|---|---|
| SWE-bench Verified | 80.6 | 60.8 | 75.6 |
| DeepSWE v1.1 | 30.1 | 0 | 27.0 |
| Terminal-Bench 2.1 | 70.8 | 52.8 | 60.1 |
| AppWorld | 93.2 | 51.2 | 90.5 |
| τ³-Bench | 72.8 | 69.1 | 73.9 |
| LiveCodeBench v6 | 87.6 | 83.8 | 83.0 |
The biggest jump is on DeepSWE, where Bonsai 2 did not solve a single task. On tool calling, the model card puts Bonsai 2.5 at 77.2 across five benchmarks, against 77.7 for full precision. Across 16 general benchmarks it averages 82.1, versus 84.3. Not every score rose: LiveCodeBench v6 slipped to 83.0 from 83.8.
All figures are PrismML's own and have not been independently reproduced.
Speed and hardware
On a single Nvidia H100, PrismML reports 291 tokens per second of generation using a multi-token prediction (MTP) draft head, and 3,200 tokens per second when processing a 2,000-token prompt. On a consumer RTX 4090 it reports 204 tokens per second. The company says the MTP head speeds decoding by 1.5 to 1.8 times on Nvidia GPUs.
One file format, Q2_0, runs on stock llama.cpp from build b11556 onward. The smaller PTQ1_0 packing still needs PrismML's fork and is under upstream review.
Why on-device agents matter
Agents are hard on compressed models because small errors compound across many tool calls. PrismML argues that keeping such work local lets apps handle private repositories or documents without sending them to a server. The company, which grew out of a Caltech research team, was founded with support from Khosla Ventures, Cerberus and Google, with continuing support from Samsung.
What's next
The key test is outside replication of the agent scores, and whether the PTQ1_0 format is merged into mainline llama.cpp, which would make the smallest build usable without a fork.
FAQ
Is Bonsai 2.5 free to use?
Yes. The weights are on Hugging Face under the Apache 2.0 license, which permits commercial use.
Can it run on a laptop or phone?
PrismML says it runs on Apple Mac, iPhone and iPad through MLX and on Nvidia and Intel GPUs through llama.cpp. Its most compact file is 5.93 GB.
How close is it to the uncompressed model?
By PrismML's measurements, it reaches about 90% of full precision on agentic coding and is roughly level on tool calling.
References
- Introducing Ternary Bonsai 2.5 27B: Powering Agentic Coding and Private Knowledge Work — PrismML (Nov. 24, 2026)
- prism-ml/Ternary-Bonsai-2.5-27B-GGUF — Hugging Face model card
- PrismML Launches Ternary Bonsai 2.5 27B for Agentic Coding and Private Knowledge Work — PR Newswire (Nov. 24, 2026)
Editor responsible for AI Newsway. Writes about AI, developer tools, cloud and productivity technology.
Comments 0
Comments are currently disabled.