Bonsai logo with headline saying Bonsai puts a coding agent on your laptop, about PrismML's Ternary Bonsai 2.5 27B local open-weights model

PrismML Releases Ternary Bonsai 2.5: A 27B Agent Model That Fits in 6 GB

Short answer: Ternary Bonsai 2.5 is PrismML’s new 27B open-weights model for agents and coding, a ternary compression of Qwen3.8 27B that weighs 5.93 GB instead of 53.8 GB and runs locally through llama.cpp or MLX under Apache 2.0. PrismML reports near full-precision tool calling (77.2 vs 77.7 on its five-benchmark average) and about 90% of full-precision agentic coding. The caveat: those are PrismML’s own numbers, the fastest files still need PrismML’s llama.cpp fork, and it trails Qwen3.8 27B at full size on hard coding tasks.

Key points

  • Ternary Bonsai 2.5 27B keeps the Qwen3.8 27B hybrid-attention architecture, stores every weight as -1, 0 or +1 with one FP16 scale per group of 128, and averages 1.76 bits per weight.
  • On agentic coding, SWE-bench Verified rises to 75.6 from 60.8 in Bonsai 2, Terminal-Bench 2.1 to 60.1 from 52.8, and DeepSWE to 27.0 from 0. Full-precision Qwen3.8 27B scores 80.6, 70.8 and 30.1.
  • It has a 262K token context window, an optional vision projector, and two reasoning efforts: xhigh by default and medium.
  • Three file packings ship: PTQ1_0 and PQ2_0 for PrismML’s llama.cpp fork, and Q2_0 for stock llama.cpp from build b11556 onward.
  • On an RTX 4090, PrismML measures 112 tokens per second plain decode and 204 with its multi-token prediction (MTP) draft head.
  • Weights are on Hugging Face under Apache 2.0, so commercial use is allowed.

What shipped

PrismML, a startup out of Caltech, released Ternary Bonsai 2.5 27B as an agent-focused upgrade to Ternary Bonsai 2 27B. The file size did not change. What changed is behavior over long tool-calling sessions: PrismML says the model now reads tool results better, recovers when a step fails, finishes tasks in fewer turns, and fixes the excessive thinking and repetitive loops that users reported in the previous release.

The headline claim is that compression no longer costs much on tool use. Across τ²-Bench, τ³-Bench, BFCL v3, BFCL v4 and AppWorld, Bonsai 2.5 averages 77.2 against 77.7 for the full-precision base. On AppWorld alone it jumps to 90.5 from 51.2 in Bonsai 2. General capability across 16 benchmarks averages 82.1 versus 84.3 for full precision.

PrismML also compares it with other low-bit builds of the same Qwen base. Against a 3-bit IQ3_XXS build that is 10.1 GB, Bonsai 2.5 is ahead on tool calling (77.2 vs 75.3) and slightly behind on agentic coding (54.2 vs 55.5) at a bit more than half the size. If you followed the Qwen3.8 family from our story on Strata running Qwen3.8-Flash-Next on a 12 GB gaming GPU, this is the same push from a different angle: shrink the weights instead of streaming them.

How to run Ternary Bonsai 2.5

Pick the file by runtime, not by preference:

  • PTQ1_0 (about 6 GB on disk): the smallest file and the fastest decode on every NVIDIA GPU PrismML measured. Needs the PrismML llama.cpp fork; upstream support is under review.
  • PQ2_0: the packing PrismML benchmarked on Apple Metal and the source for the MLX export used on Mac, iPhone and iPad.
  • Q2_0 (about 7.7 GB): runs on stock llama.cpp, but only from build b11556 onward. PrismML warns that older builds load the file without any warning and produce garbage, so check llama-cli --version first, including inside apps that bundle their own llama.cpp.

Each packing also has an MTP variant with a draft head for speculative decoding. PrismML reports 1.5 to 1.8 times faster decode on NVIDIA GPUs, at the cost of 9% to 23% slower prompt processing unless you use the drafting kernels still in testing.

Three settings save time. Pass --min-p 0, because llama.cpp defaults to 0.05 and PrismML benchmarked without it. Leave a large output cap such as -n 16384, because the model thinks at xhigh effort by default and a small cap cuts it off mid-thought. And if you serve one request at a time on a card with limited VRAM, add -np 1 to llama-server: one community report on a 10 GB RTX 3080 dropped from about 9.5 GB to 7.8 GB of GPU memory with that flag.

On speed, PrismML measures plain decode at 112 tokens per second on an RTX 4090, 163 on an RTX 5090 and 186 on an H100, and about 30 tokens per second on an Apple M5 Pro. A Hacker News commenter reported 22 to 25 tokens per second with the Q2_0 file on a 24 GB Mac Mini with an M5 Pro, with 128K context fitting in memory.

What Ternary Bonsai 2.5 means for builders

The practical change is that a 27B-class agent model now fits on hardware many developers already own, with room left for context. That matters most for work you cannot or should not send to a hosted API: private repositories, client documents, or regulated data. Our report on inference provider prompt leaks at OpenRouter is a reminder that routing prompts through third parties carries real risk, and a local model removes that layer entirely.

It is not a frontier replacement. On SWE-bench Verified it gives up five points to its own full-precision base, and ten points on Terminal-Bench 2.1, which is where long shell-driven tasks live. The Hacker News thread, which reached the front page, is split: some users call Bonsai 2 genuinely usable for multi-step agent work, while others report loops and weak output with the earlier release and want independent evaluations before trusting the new numbers.

Our take: Ternary Bonsai 2.5 is the most interesting local agent option right now for developers with an 8 GB to 12 GB GPU or a recent Mac, and a strong default for tool-calling agents that need privacy. For heavy coding on a laptop, compare it against Thinking Machines’ Inkling 2 Mini, which needs more memory but was built for coding from the start. Run both on a real task from your own backlog before choosing, because published benchmarks will not tell you how either handles your codebase.

What to watch

  • Independent benchmark runs, especially SWE-bench Verified and Terminal-Bench, from groups other than PrismML.
  • Whether upstream llama.cpp merges PTQ1_0 support, which would let Ollama, LM Studio and similar apps run the smallest file without a fork.
  • MTP and drafting kernel support moving from testing into release builds, which decides the real speed on consumer cards.
  • Whether PrismML applies the same agent training to its smaller Bonsai 2 models, which target phones and everyday laptops.
  • Reports of loops or tool-call failures over long sessions, the main complaint about the previous release.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *