A 27B Coding Agent That Fits in 5.9GB — and Runs on a Phone

Human Verified

Share to: , and

A laptop and a smartphone running a small local coding agent, illustrating a 27B model that fits in 5.9GB.

PrismML has released Ternary Bonsai 2.5 27B, a coding agent model that fits in 5.9GB, scores 75.6 on SWE-bench Verified, close to the 80.6 of the full-precision model it compresses. The weights are free under Apache 2.0 and run on laptops, desktops and phones without sending code to the cloud.

What changed

Bonsai 2.5 upgrades the September release, Ternary Bonsai 2 27B, keeping the same ternary weight format while retraining the model for longer tool-using work. PrismML says the build completes tasks in fewer turns, uses fewer tokens and fixes the excessive thinking and repetitive loops of its predecessor.

The model is built on Alibaba’s Qwen3.8 27B and stores each weight as -1, 0 or +1, with one shared 16-bit scale per group of 128 weights. That squeezes the 53.8GB full-precision model down to 5.93GB, about one-ninth of the size, with a 262,000-token context window for working across repositories.

The numbers that matter

On SWE-bench Verified, a test of fixing real GitHub issues, Bonsai 2.5 scores 75.6, up from 60.8 for its predecessor and within five points of the full-precision base at 80.6. On DeepSWE it rises from zero to 27.0, and on Terminal-Bench 2.1 from 52.8 to 60.1.

Tool calling holds up even better: across five tool-calling benchmarks the model averages 77.2 against 77.7 for full precision, indistinguishable. One result went backwards, with LiveCodeBench v6 slipping from 83.8 to 83.0, a trade-off that PrismML’s own table makes visible.

Speed is part of the pitch. With its drafting layer, the model generates 291 tokens per second on a single Nvidia H100 and 204 per second on a consumer RTX 4090, fast enough for interactive coding work on ordinary hardware rather than a data-centre cluster.

Why the size matters

A 5.9GB agent model changes who can run serious coding help locally. A developer can point it at a private repository and keep the code on the machine, which matters for companies that cannot send source code to a cloud API for legal or security reasons.

It also runs where big models cannot: on Apple devices through MLX, including Mac, iPhone and iPad, and on Nvidia and Intel graphics cards through llama.cpp. The weights are free, so the cost of trying it is a download and a few gigabytes of disk.

The catches

The smallest file has a catch: it loads only in PrismML’s own fork of llama.cpp, not the stock build. A larger stock-compatible file exists, at 7.25GB to 7.91GB, but it runs slower, and the drafting layer has not yet been checked on Apple hardware.

Every benchmark figure is PrismML’s own, from its whitepaper, with no independent reproduction of the new model published so far. The headline test itself carries a warning: OpenAI stopped reporting SWE-bench Verified in February 2026 after finding flaws in the test set.

Why It Matters

Coding agents have been held back by size: frontier quality needed a data centre, and small models made too many mistakes across long tool chains. Bonsai 2.5 narrows that gap to five points on the coding test while fitting on a laptop, making private, offline help practical rather than theoretical.

The wider shift is toward agents that work where the data already lives. If a 27B model does nine-tenths of the coding work of its full-precision parent at one-ninth of the size, the case for sending every task to a hosted frontier model gets weaker.

Background

PrismML, founded by Caltech researchers and backed by Khosla Ventures, Cerberus and Google, with continuing support from Samsung, has spent years compressing neural networks without losing their reasoning ability. Ternary Bonsai 2, released in September, kept 75% of its base model’s SWE-bench score; the new version lifts that to 94%.

Source: PrismML announcement and TechTimes report

Share to: , and

Faheem R. Khattak

Senior automation engineer and AI marketing journo covering LLMs, algorithms, analytics, core updates, Bing search, and technical SEO.

0 Comments

Leave a Reply

Optional Take Tag:

🛡️ Spam protection: Honeypot + Time-Trap Active

This site uses Akismet to reduce spam. Learn how your comment data is processed.