News 3 min read

PrismML releases Ternary Bonsai 2.5 27B, a 5.9 GB local coding model


PrismML released Ternary Bonsai 2.5 27B on November 24, 2026, an upgrade to its ternary-compressed Bonsai 2 27B aimed at agentic coding and multi-step tool use. It is based on Qwen3.8 27B, still fits in a 5.9 GB model footprint, and its weights are out today under the Apache 2.0 license. PrismML calls it “by far the strongest AI model of its memory footprint for agentic workloads,” which matters to developers who want a coding agent on their own GPU or Mac.

What’s new

  • Same size, better agent. The 2.5 release keeps the previous model’s 5.9 GB footprint. PrismML says it worked on long chains of tool calls: reading results, recovering when a step fails and keeping to the task’s goal.
  • Less overthinking. PrismML says it fixed the excessive thinking and repetitive loops of Bonsai 2, so the new model finishes tasks in fewer turns and with fewer tokens.
  • Speed. On one NVIDIA H100, PrismML measured 291 tokens per second of generation with multi-token prediction (MTP) and 3,200 tokens per second of prompt processing on a 2,000-token prompt. On an RTX 4090 it reports 204 tokens per second with MTP and about 3,060 tokens per second of prompt processing.
  • Platforms. It runs on NVIDIA and Intel GPUs through llama.cpp, and on Mac, iPhone and iPad through MLX.
  • License. The weights are on Hugging Face under Apache 2.0, so commercial use is allowed.

How it compares

PrismML’s own table compares the new model with Bonsai 2 27B and with the full-precision Qwen3.8 27B it was compressed from:

Benchmark Qwen3.8 27B Bonsai 2 27B Bonsai 2.5 27B
SWE-bench Verified 80.6 60.8 75.6
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 jumps are in agent work: AppWorld goes from 51.2 to 90.5 and DeepSWE v1.1 (with mini-swe-agent) from 0 to 27, against 30.1 for the base model. Plain code generation barely moved: LiveCodeBench v6 slipped from 83.8 to 83.0 and BigCodeBench rose from 57.2 to 60.3. On SWE-bench Verified the compressed model is now about 5 points behind its full-precision base, down from about 20. These are PrismML’s numbers, and the full method is in its whitepaper.

What it means for developers

The point of ternary models is memory. A 27-billion-parameter model at 16-bit precision takes about 54 GB for its weights alone; at 5.9 GB, Bonsai 2.5 27B fits on a gaming card such as the RTX 4090 PrismML tested, or on a Mac. That makes a local coding agent practical for code you can’t send to a cloud API: a private repository, client work under an NDA, or an offline machine. PrismML’s two demos show the model reproducing and fixing a pytest regression and rebuilding a web page from a screenshot, end to end on a local machine.

To try it, download the weights from the Hugging Face collection and run them with llama.cpp on NVIDIA or Intel GPUs, or MLX on Apple hardware. PrismML’s Bonsai-demo repository has its demo code. Expect it to trail the big hosted models on the hardest tasks: on Terminal-Bench 2.1 it is still about 10 points behind its own base model.

It comes a day after Z.ai’s GLM-5.4, a coding model that is not yet open-weight, and follows Google’s offline speech models in AI Edge Gallery as more AI moves onto developers’ own devices.

Sources