Ternary Bonsai 2.5 27B is a free AI model from PrismML built for coding agents that run on your own computer, and the whole model fits in a 5.93GB file. In PrismML’s own tests, the new model scores 75.6 on SWE-bench Verified, up from 60.8 for Ternary Bonsai 2 27B and close to the 80.6 that the 53.8GB full-precision Qwen3.8 27B reaches.
PrismML released the model on November 24 under the Apache 2.0 license, with downloads on Hugging Face for llama.cpp and Apple’s MLX. Ternary Bonsai 2.5 27B keeps the same file size as Ternary Bonsai 2 27B from September, so the gains come from how the model handles long tasks with many tool calls.
Ternary Bonsai 2.5 Nearly Matches the Full Model
Ternary Bonsai 2 27B fell furthest behind the full-size model in agentic coding, and that is where Ternary Bonsai 2.5 27B gained the most. Across three coding benchmarks, the new model averages 54.2 against 37.9 for Ternary Bonsai 2 27B and 60.5 for full-precision Qwen3.8 27B, or about 90 percent of the full model’s score.
- SWE-bench Verified climbs to 75.6 from 60.8, against 80.6 for the full model.
- On DeepSWE, the score goes from 0.0 to 27.0, a few points short of the full model’s 30.1.
- Terminal-Bench 2.1 improves to 60.1 from 52.8, while the full model scores 70.8.
- In the AppWorld tool-calling test, Ternary Bonsai 2.5 27B reaches 90.5, up from 51.2 and close to 93.2.
Ternary Bonsai 2.5 27B averages 77.2 across five tool-calling benchmarks, close to the 77.7 of the full model and well ahead of the 67.0 for Ternary Bonsai 2 27B. Its average across 16 general benchmarks also rose slightly to 82.12 from 81.55, though its instruction-following score dipped to 80.90 from 82.55.
A larger 3-bit build of Qwen3.8 27B called IQ3_XXS still has a higher coding average at 55.5. That build is a 10.1GB file, about 1.7 times the size of Ternary Bonsai 2.5 27B.
PrismML says the work focused on how the model behaves as a task unfolds, such as using tool feedback and recovering from failed actions. Small errors in a compressed model can add up over dozens of tool calls, so the company aimed for fewer wasted steps, fewer tokens and shorter run times.
M5 Pro Runs It at 30 Tokens per Second
PrismML says Ternary Bonsai 2.5 27B runs on Mac, iPhone and iPad through MLX, and on NVIDIA and Intel GPUs through llama.cpp. On a Mac with the M5 Pro chip, the model generates 30.2 tokens per second and reads prompts at 416 tokens per second with PrismML’s own build of llama.cpp on Metal.
The MLX version is slower on the same chip at 21.7 tokens per second, and it handles text only. An M4 Pro Mac reaches 22.9 tokens per second, or 29.2 with speculative decoding and new kernels that PrismML has not released yet.
PrismML has not published iPhone or iPad speeds, or a minimum amount of RAM for any Mac. You also need the right file for your setup, since only the Q2_0 file runs on stock llama.cpp from build b11556 onward. The smaller PTQ1_0 and PQ2_0 files need PrismML’s fork of llama.cpp.
A 5.93GB model is far smaller than what other local coding agents on the Mac ask for. Junie Local needs an M5 Mac with 64GB, and Local Code suggests Qwen3.8 27B for Macs below 48GB at 9.6GB to 29.2GB depending on the build.
Developers Can Ship It in Their Apps
The Apache 2.0 license lets developers build Ternary Bonsai 2.5 27B into their own apps, including commercial ones, at no cost. PrismML pitches it for coding assistants that fix bugs in a private repository and run its tests on your machine, and for document tools that turn a folder of files into a structured analysis.
Your code and documents stay on your device when an app runs the model locally, because prompts never go to a server. PrismML also works with companies to retrain and tune the model for their own data and target hardware.
PrismML came out of Caltech research and is backed by Khosla Ventures, Cerberus, Google and Samsung. Apple held talks with PrismML in July about running the startup’s compressed 27-billion-parameter models on iPhone.

