# PrismML's Ternary Bonsai 2.5 27B squeezes a coding agent into 5.93 GB under Apache 2.0. What it needs to run

> PrismML has released a ternary-quantised build of Qwen3.8-27B that weighs 5.93 GB at 1.76 bits per weight, free under Apache 2.0, and closes most of the agentic-coding gap its predecessor lost. The catch is the runtime: the smallest files only load in PrismML's own llama.cpp fork, and stock builds silently produce garbage.

Published Nov 25, 2026 by TechMeasured Staff · AI · Canonical: https://techmeasured.com/ai/ternary-bonsai-2-5-27b-5-9gb-apache-coding-agent-what-it-needs-to-run

**PrismML** released **Ternary Bonsai 2.5 27B** on **November 24**: a ternary-quantised build of Alibaba's **Qwen3.8-27B** that ships as a **5.93 GB** file at **1.76 bits per weight**, free to download under **Apache 2.0**, according to [PrismML's announcement](https://prismml.com/news/bonsai-2-5-27b) and its [PR Newswire release](https://www.prnewswire.com/news-releases/prismml-launches-ternary-bonsai-2-5-27b-for-agentic-coding-and-private-knowledge-work-302949886.html).

Why it matters: the previous generation of the same trick, Bonsai 2 from September, held general benchmarks nearly intact but fell apart on agentic work — an 18-point hole on Terminal-Bench against the full-precision parent, by PrismML's own figures. Version 2.5 is an attempt to fix exactly that, which is the difference between a local model that chats and one that can drive a tool loop on a laptop GPU.

## What PrismML reports

All figures below are the company's own, run in thinking mode at its default **xhigh** reasoning effort. Nobody has reproduced them independently yet.

| Agentic coding | Qwen3.8-27B FP16 | Bonsai 2 | Bonsai 2.5 |
|---|---|---|---|
| Terminal-Bench 2.1 | 70.8 | 52.8 | 60.1 |
| SWE-bench Verified | 80.6 | 60.8 | 75.6 |
| DeepSWE | 30.1 | 0.0 | 27.0 |
| **Average** | **60.5** | **37.9** | **54.2** |

| Agentic tool calling | FP16 | Bonsai 2 | Bonsai 2.5 |
|---|---|---|---|
| τ³-Bench | 72.8 | 69.1 | 73.9 |
| AppWorld | 93.2 | 51.2 | 90.5 |
| BFCL v4 | 70.8 | 64.4 | 67.2 |
| **Average of five** | **77.7** | **67.0** | **77.2** |

Read against the full-precision parent, the honest summary is: tool calling is essentially recovered, coding is not. **Terminal-Bench is still 10.7 points down**, and DeepSWE three points down — though Bonsai 2's 0.0 on DeepSWE shows how far the previous build had collapsed. General capability lands at **82.12** against FP16's **84.32** on the model card's 16-benchmark aggregate; the docs page quotes 82.3 against 84.4 over 14 benchmarks, an inconsistency PrismML hasn't reconciled.

## Files, and the runtime trap

This is the part to get right before downloading. Three GGUF builds exist, and only one works with upstream software:

| File | Size | Runtime |
|---|---|---|
| `PTQ1_0` | 5.93 GB | **PrismML's llama.cpp fork only** |
| `PQ2_0` | ~7.2 GB | PrismML fork; source of the MLX export |
| `Q2_0` | ~7.6 GB | Stock llama.cpp, **build b11556 or newer** |

The docs are explicit that older stock builds load the `Q2_0` file without a warning and produce garbage, so check `llama-cli --version` first. PrismML says the `PTQ1_0` format is still under upstream review in llama.cpp. Weights are on Hugging Face as [Ternary-Bonsai-2.5-27B-GGUF](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF), with an [MLX 2-bit build](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit) for Apple Silicon that is **text-only**.

```bash
./llama-cli -m Ternary-Bonsai-2.5-27B-PTQ1_0.gguf -ngl 99 -fa on -c 32768 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 -n 16384
```

Pass `--min-p 0` explicitly, because llama.cpp defaults to 0.05, and keep the generation budget large — thinking is on by default and will eat a small one. Context is **262,144 tokens**. Image input works via a separate `mmproj` vision file, but is downscaled to about 1,024 vision tokens on Metal, Vulkan and CPU unless you set `BONSAI_IMAGE_MAX_TOKENS=0`.

## Speed

PrismML's headline numbers use its built-in multi-token-prediction draft head: **291 tokens/s** decode on a single H100 and **204 tokens/s** on an RTX 4090. Plain `PTQ1_0` decode without MTP is lower — the model card lists **186** on H100, **163** on RTX 5090, **112** on RTX 4090, **107** on A100. On Apple, an M5 Pro managed **30.2 tokens/s** through llama.cpp and 21.7 through MLX.

MTP buys 1.5–1.8× decode on NVIDIA but costs **9–23% on prompt processing**, so it is a poor trade for long-prompt, short-answer workloads. PrismML also reports 109 tokens/s for the stock-llama.cpp `Q2_0` path on an H200 against 150 on its own runtime — the compatible file is the slow one.

## What's missing

- **No hosted API or pricing.** Download is free; the model card shows no inference provider deploying it, and custom work routes to a sales address.
- **Low reasoning effort doesn't exist.** The docs say selecting `low` leaves the model behaving close to `xhigh`, so you cannot buy latency by thinking less.
- **A known VRAM issue** with automatic server parallelism; pass `-np 1` on limited-VRAM cards.
- [AlphaSignal](https://alphasignal.ai/news/prismml-squeezes-a-27b-coding-agent-into-5-9-gb-with-bonsai-2-5) points out that PrismML's demo runs — a 180-call pytest fix, a 47-call screenshot rebuild — are illustrative, not repeatable benchmark results.

## Who should care

If you want a local agentic coding model on one consumer GPU or a Mac, this is the strongest sub-10 GB option PrismML has shipped, and Apache 2.0 means no licence negotiation. If your work is terminal-driven agent loops specifically, the 10-point Terminal-Bench gap against full precision is the number to weigh against the 9× size saving. Worth watching: whether the `PTQ1_0` format lands in upstream llama.cpp, which would remove the fork requirement, and whether anyone reproduces the coding benchmarks outside PrismML.


## Sources

1. [PrismML — Introducing Ternary Bonsai 2.5 27B: powering agentic coding and private knowledge work](https://prismml.com/news/bonsai-2-5-27b)
2. [PrismML Docs — Ternary Bonsai 2.5 27B](https://docs.prismml.com/models/bonsai-2-5-27b)
3. [Hugging Face — prism-ml/Ternary-Bonsai-2.5-27B-GGUF model card](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF)
4. [PR Newswire — PrismML launches Ternary Bonsai 2.5 27B for agentic coding and private knowledge work](https://www.prnewswire.com/news-releases/prismml-launches-ternary-bonsai-2-5-27b-for-agentic-coding-and-private-knowledge-work-302949886.html)
5. [AlphaSignal — PrismML squeezes a 27B coding agent into 5.9 GB with Bonsai 2.5](https://alphasignal.ai/news/prismml-squeezes-a-27b-coding-agent-into-5-9-gb-with-bonsai-2-5)
