PrismML · 2026-11-24 · major
Ternary Bonsai 2.5 27B — near full-precision agentic coding in 5.9 GB
In short
Ternary Bonsai 2.5 27B is PrismML's new ternary build of Qwen3.8 27B for agent work. In the same 5.9 GB it lifts SWE-bench Verified to 75.6 from Bonsai 2's 60.8, against 80.6 for full precision. Apache-2.0 weights.
PrismML · 2026-11-24 · 4 sources checked

PrismML keeps the 5.9 GB size of Bonsai 2 and closes most of the gap to full precision on agent tasks.
Key specs
| SWE-bench | 75.6 |
|---|---|
| Footprint | 5.9 GB |
Quick facts
| Maker | PrismML |
|---|---|
| Base model | Qwen3.8 27B |
| Weights | Ternary g128, 1.76 bits per weight |
| Context window | 262K tokens |
| License | Apache-2.0 |
| Runs on | llama.cpp (NVIDIA, Intel) and MLX (Apple) |
| Speed | 291 tok/s on H100, 204 tok/s on RTX 4090 with MTP |
Benchmarks
| Ternary Bonsai 2.5 27B | 75.6% | |
|---|---|---|
| Ternary Bonsai 2 27B | 60.8% | |
| Qwen3.8 27B (full precision) | 80.6% |
| Ternary Bonsai 2.5 27B | 90.5% | |
|---|---|---|
| Ternary Bonsai 2 27B | 51.2% | |
| Qwen3.8 27B (full precision) | 93.2% |
| Ternary Bonsai 2.5 27B | 60.1% | |
|---|---|---|
| Ternary Bonsai 2 27B | 52.8% | |
| Qwen3.8 27B (full precision) | 70.8% |
What is it?
Ternary Bonsai 2.5 27B is an upgrade to September's Ternary Bonsai 2 27B, tuned for agentic coding, multi-turn tool use and long multi-step tasks. PrismML says it handles long tool-call sequences better, recovers after failed steps, and thinks less and loops less. It is still Qwen3.8 27B with every weight stored as -1, 0 or +1, in the same 5.9 GB footprint.
How does it work?
The weights are ternary with FP16 scaling per group of 128, stored in a blockwise Hadamard basis, for 1.76 bits per weight. The densest PTQ1_0 file needs PrismML's llama.cpp fork, while a Q2_0 file runs on stock llama.cpp from release b11556. Optional MTP files add a draft head for speculative decoding, which the model card says gives a 1.5–1.8x speed-up on NVIDIA GPUs.
Why does it matter?
Bonsai 2 lost most on agent work: it scored 0 on DeepSWE and 51.2 on AppWorld. Bonsai 2.5 reaches 27.0 and 90.5 there, close to full precision's 30.1 and 93.2, at one ninth of the 53.8 GB FP16 size. That makes a useful local coding agent possible on one consumer GPU.
Who is it for?
developers running local coding agents
Frequently asked questions
- How is Ternary Bonsai 2.5 27B different from Bonsai 2 27B?
- Ternary Bonsai 2.5 27B keeps Bonsai 2's base model and 5.9 GB size but is much stronger on agent tasks. PrismML's table shows SWE-bench Verified rising from 60.8 to 75.6, Terminal-Bench 2.1 from 52.8 to 60.1, and DeepSWE from 0 to 27. General scores barely move, and LiveCodeBench v6 slips slightly from 83.8 to 83.0.
- Does Ternary Bonsai 2.5 27B run on stock llama.cpp?
- Only the Q2_0 file of Ternary Bonsai 2.5 27B runs on stock llama.cpp, from release b11556 onward; the model card warns that older builds load it silently and produce garbage. The smaller PTQ1_0 and PQ2_0 files need PrismML's llama.cpp fork. The card also lists Ollama and Docker Model Runner commands for the Q2_0 file.
- How fast is Ternary Bonsai 2.5 27B on consumer hardware?
- PrismML reports 204 tokens per second for Ternary Bonsai 2.5 27B on an RTX 4090 and 291 on an H100 when using the MTP draft head. Without MTP, the model card lists 112 tokens per second on an RTX 4090 and 163 on an RTX 5090. On an Apple M5 Pro it reaches about 30 tokens per second with Metal.
- Can Ternary Bonsai 2.5 27B read images?
- Yes, but vision is optional. The Ternary Bonsai 2.5 27B model card says the vision tower ships as a separate mmproj file that is loaded only for image input, so text-only serving skips it. The language weights alone account for the 5.93 GB PTQ1_0 file, and the model keeps the base model's 262K-token context.
Try it
ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0