What PrismML released

On 24 November, PrismML announced Ternary Bonsai 2.5 27B, an update to the Ternary Bonsai 2 27B model it shipped in September. The new model is a compressed Qwen3.8 27B and keeps the earlier release's 5.9GB footprint. The weights are on Hugging Face under the Apache 2.0 licence, so commercial use is allowed. PrismML says the update brings much stronger agentic coding, multi-turn tool use and multi-step task execution. The company also says the model overthinks less and falls into fewer repetitive loops, which means tasks take fewer turns and fewer tokens than they did on Bonsai 2. GIGAZINE's report gives the same release date, base model and licence, and describes PrismML demos in which the model makes 180 offline tool calls to fix a pytest bug and rebuilds a web page from a single screenshot.

A model that fits on a mid-range laptop GPU and still handles long tool-calling sessions is useful to local-first builders. Bonsai 2 had already shown that heavy compression could keep chat quality. The weak point was agentic work, and the 2.5 release targets that.

How a 27B model fits in about 6GB

A ternary model stores each weight as one of three values: minus one, zero or plus one. The model card gives the format as "ternary g128". Each group of 128 weights shares one FP16 scale factor, and the weights are stored in a blockwise Hadamard basis, a fixed rotation that spreads outlier values across a block so they compress with less damage. The result averages 1.76 bits per weight. The full model has 27.36 billion parameters, including a 0.47B vision tower, and the 5.93GB file compares with 53.8GB for FP16.

PrismML hasn't described its training recipe on the pages we read. The docs say every language-model weight is ternary and point to a whitepaper for the method. The model uses hybrid attention, with about 75% linear attention layers and 25% full attention layers. The card lists a 262K-token context window.

Benchmark numbers

PrismML compares the model with the FP16 Qwen3.8 27B, with Bonsai 2 and with a 10.1GB IQ3_XXS quantisation. All of these figures are self-reported and come from the model card, run in thinking mode at the default effort setting:

  • SWE-bench Verified: 75.6, against 80.6 for FP16 and 60.8 for Bonsai 2
  • Terminal-Bench 2.1: 60.1, against 70.8 for FP16 and 52.8 for Bonsai 2
  • DeepSWE: 27.0, against 30.1 for FP16 and 0.0 for Bonsai 2
  • AppWorld: 90.5, against 93.2 for FP16 and 51.2 for Bonsai 2
  • Average across five tool-calling benchmarks: 77.2, against 77.7 for FP16

On tool calling, the ternary model nearly matches its base. On coding, the gap is wider: an agentic coding average of 54.2 against 60.5 for FP16. Terminal-Bench, which tests work at a shell, shows the biggest drop at more than ten points. The DeepSWE result is the clearest change from Bonsai 2, which scored zero. The announcement explains why agent tasks are harder for compressed models: a small error early in a run can compound across later tool calls. We haven't found any independent reproduction of these scores yet.

Speed and memory on real hardware

The model card gives decode speeds for the dense PTQ1_0 file. An RTX 4090 runs at 112 tokens per second, an RTX 5090 at 163 and an H100 at 186. The model ships with an optional multi-token prediction (MTP) head, a small draft model for speculative decoding. With the MTP head, the RTX 4090 reaches 204 tokens per second and the RTX 5090 reaches 312. Apple hardware is much slower: an M5 Pro decodes the PQ2_0 packing at 30.2 tokens per second through Metal.

The weights are only part of the memory bill. According to the Bonsai-demo README, the FP16 KV cache (the stored attention state for the context) costs 64KiB per token, or about 6.3GiB at 100K tokens. Setting BONSAI_KV4=1 switches to a 4-bit cache of about 18KiB per token. For long agent sessions, budget for weights plus cache. The card cites a community report from a 10GB RTX 3080, where adding -np 1 to llama-server cut memory use from about 9.5GB to 7.8GB.

Running the model

The GGUF files come in three packings. The dense PTQ1_0 packing and the PQ2_0 packing both need PrismML's llama.cpp fork, and PTQ1_0 is still under upstream review. The Q2_0 packing runs on stock llama.cpp build b11556 or newer. The card warns that older builds load the Q2_0 file without complaint and produce garbage, so check your build with llama-cli --version first. The card shows this stock-build command:

hf download prism-ml/Ternary-Bonsai-2.5-27B-gguf Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir .
llama-cli -m Ternary-Bonsai-2.5-27B-Q2_0.gguf \
    -ngl 99 -fa on -c 32768 \
    --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
    -p "Explain quantum computing in simple terms." -n 16384

Pass --min-p 0 explicitly, because llama.cpp defaults to 0.05. Keep -n large: the model thinks by default, and a small token cap cuts the output off before any answer. The card also lists ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0 for Ollama users. For a full setup with an OpenAI-compatible server and Open WebUI, the demo repo uses four commands on macOS or Linux:

git clone https://github.com/PrismML-Eng/Bonsai-demo.git
cd Bonsai-demo
./setup.sh
./scripts/start_llama_server.sh

The server supports native OpenAI-style tool calling, so existing agent harnesses can point at the local endpoint without code changes. On Apple devices there's an MLX build, but that build is text-only. On llama.cpp, image input needs the separate mmproj file.

Limits and costs

The weights are free, and the main cost is hardware. The fastest path depends on a fork that hasn't been merged upstream. On an H200, the card measures stock llama.cpp decoding the Q2_0 file at 109 tokens per second, against 150 on PrismML's runtime. Some of the MTP speed figures depend on kernels that are still in testing, and the Galaxy S26 Ultra NPU result needs a fix that hasn't been released. The reasoning effort setting has no working low option: low behaves much like xhigh, so every request pays for full reasoning. Thinking mode can produce long outputs, and each turn adds latency. On a laptop running at about 30 tokens per second, that latency becomes a real constraint in interactive use.

What builders in New Zealand could do with it

Teams that can't send source code or client data to offshore APIs now have a local option that scores 75.6 on SWE-bench Verified and fits on a single consumer GPU. A team could run the model as a private coding agent backend on a workstation in the office and test it on real tickets before buying larger hardware. Comparing the stock Q2_0 build with the fork's PTQ1_0 build would also show whether the fork's speed is worth the extra maintenance. Because the model is Apache 2.0, it can go into shipped products. We'd suggest running your own task suite before trusting the published averages, especially for shell-heavy work, where the gap to the base model is largest. If you build something with it, you can share it on the ASAI projects page.

Sources

Build with people working on the same things

Join the Auckland Society for AI: NZ$599 a year with a ForgeBox and the members' projects area. Our Auckland meetups are open to everyone.

Become a member