# Ternary Bonsai 2.5 27B

> Agent-tuned ternary Qwen3.8 27B: near full-precision tool calling in 5.9 GB

- Maker: PrismML
- Line: Bonsai (ternary open weights)
- Canonical page: https://ai-tldr.dev/models/ternary-bonsai-2-5-27b/
- Updated: 2026-11-24

## In short

Ternary Bonsai 2.5 27B is an open-weight model from PrismML. PrismML released it on 24 November 2026. It has a 262K-token context window. Its weights can be downloaded under the Apache-2.0 licence.

## Facts

| Fact | Value | Source |
| --- | --- | --- |
| Context window | 262K | [1] |
| Licence | Apache-2.0 · open weights | [1] |
| Released | 24 November 2026 | [2] |
| Parameters | 27.36B total (24.35B language, 0.47B vision, 2.54B embedding/lm-head), stored as ternary weights at 1.76 bits per weight | [1] |

## Sources

1. [Hugging Face — Ternary-Bonsai-2.5-27B-GGUF model card](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF)
2. [PrismML — Introducing Ternary Bonsai 2.5 27B (24 November 2026)](https://prismml.com/news/bonsai-2-5-27b)

## Overview

Ternary Bonsai 2.5 27B is PrismML's second ternary release of Qwen3.8 27B, announced on 24 November 2026 as an upgrade to Ternary Bonsai 2 27B. It keeps the previous release's 5.9 GB footprint and 1.76 bits per weight, and focuses the gains on agentic coding, multi-turn tool use and long multi-step tasks. PrismML says the model handles long tool-call sequences better, adjusts after failed steps, uses fewer turns and tokens, and thinks less and loops less than Bonsai 2.

The agent numbers are where the change shows. On PrismML's published table, SWE-bench Verified rises from 60.8 for Bonsai 2 to 75.6 (full-precision Qwen3.8 27B scores 80.6), AppWorld from 51.2 to 90.5, and DeepSWE from 0 to 27. The Hugging Face model card puts the five-benchmark tool-calling average at 77.2 against 77.7 for FP16 — "FP16-level agentic tool calling at one ninth of the size" — while general capability averages 82.12 against 84.32.

The weights are ternary {−1, 0, +1} with FP16 scaling per group of 128, stored in a blockwise Hadamard basis. The vision tower ships as a separate optional mmproj file, loaded only for image input, and the model keeps the base model's 262K-token context. The model thinks by default, and the card recommends a large generation cap so answers are not cut off mid-thought.

Three GGUF packings ship. PTQ1_0 (5.93 GB) and PQ2_0 need PrismML's llama.cpp fork — "Stock llama.cpp rejects them as unknown types" — while Q2_0 runs on stock llama.cpp from release b11556. Optional MTP files add a draft head for speculative decoding: PrismML reports 291 tokens per second on an H100 and 204 on an RTX 4090 with it. An MLX 2-bit package covers Apple silicon. The weights are Apache 2.0 and there is no hosted API.

## Benchmarks

- SWE-bench Verified: 75.6% ([source](https://prismml.com/news/bonsai-2-5-27b))
- AppWorld: 90.5% ([source](https://prismml.com/news/bonsai-2-5-27b))
- τ³-Bench: 73.9% ([source](https://prismml.com/news/bonsai-2-5-27b))
- LiveCodeBench v6: 83% ([source](https://prismml.com/news/bonsai-2-5-27b))
- BigCodeBench: 60.3% ([source](https://prismml.com/news/bonsai-2-5-27b))
- Terminal-Bench 2.1: 60.1% ([source](https://prismml.com/news/bonsai-2-5-27b))
- DeepSWE v1.1 (mini-swe-agent): 27% ([source](https://prismml.com/news/bonsai-2-5-27b))

## Strengths

- Tool-calling average of 77.2 against 77.7 for full-precision Qwen3.8 27B, at about one ninth of the 53.8 GB FP16 size
- SWE-bench Verified up to 75.6 from Bonsai 2's 60.8, and AppWorld up to 90.5 from 51.2
- A Q2_0 packing that runs on stock llama.cpp (b11556+), Ollama and Docker Model Runner
- MTP draft head for speculative decoding, 1.5–1.8× faster decode on NVIDIA GPUs per the model card
- 262K-token context and Apache 2.0 weights

## Best for

- Running a local coding agent on a single consumer GPU
- Private, offline tool-using agents where a full-precision 27B checkpoint will not fit in memory
- Long multi-step agent tasks on an Apple-silicon laptop through the MLX package
- Comparing ternary compression against 2- and 3-bit quantisations of the same base model

## FAQ

### How much better is Ternary Bonsai 2.5 27B than Bonsai 2 27B?

On agent work, a lot: PrismML's table shows SWE-bench Verified rising from 60.8 to 75.6, AppWorld from 51.2 to 90.5 and DeepSWE from 0 to 27, in the same 5.9 GB. General scores barely move, and LiveCodeBench v6 slips slightly from 83.8 to 83.0.

### Which file should I download to use stock llama.cpp?

The Q2_0 file. It runs on stock llama.cpp from release b11556 onward; the model card warns that older builds load it without a warning and produce garbage. The smaller PTQ1_0 (5.93 GB) and PQ2_0 packings need PrismML's llama.cpp fork.

### How fast does Ternary Bonsai 2.5 27B run?

With the MTP draft head, PrismML reports 291 tokens per second on an H100 and 204 on an RTX 4090. Plain PTQ1_0 decode is listed at 186 on an H100, 163 on an RTX 5090 and 112 on an RTX 4090; an Apple M5 Pro reaches about 30 tokens per second with Metal.

### What licence are the weights under?

Apache 2.0, per the announcement and the Hugging Face model card. There is no hosted PrismML API for this model — the download is the product.

## Links

- [PrismML — Introducing Ternary Bonsai 2.5 27B (24 November 2026)](https://prismml.com/news/bonsai-2-5-27b)
- [Hugging Face — Ternary-Bonsai-2.5-27B-GGUF model card](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF)
- [Hugging Face — Bonsai 2.5 27B collection](https://huggingface.co/collections/prism-ml/bonsai-25-27b)
- [Hugging Face — Ternary-Bonsai-2.5-27B-mlx-2bit](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit)
- [PrismML-Eng/Bonsai-demo on GitHub](https://github.com/PrismML-Eng/Bonsai-demo)
- [PrismML](https://prismml.com/)

Source: AI/TLDR LLM registry, https://ai-tldr.dev/models/ternary-bonsai-2-5-27b/
