Ternary-Bonsai-2.5-27B Explained: A 27B Ternary Model That Matches FP16 on Tool Calling at 5.93GB
A 27B ternary agentic model in a 5.93GB file — tool calling matches FP16, coding reaches 90% of it.
1. What it is: a 27B model squeezed into 5.93GB with ternary weights
2. How ternary quantization works: every weight is -1, 0, or +1
3. Benchmarks: tool calling ties full precision, coding reaches 90% of it (preliminary)
4. Speed: multi-token prediction, about 300 tokens/s on an H200
5. How to run it: three files — pick the wrong one and you get silent garbage
6. Who it fits, who should wait, and sources
Comparison: Ternary-Bonsai-2.5-27B vs Qwen3.8-27B FP16 vs GSQ-RCO IQ3_XXS vs Bonsai 2
| Dimension | Bonsai 2.5 27B | Qwen3.8-27B FP16 | GSQ-RCO IQ3_XXS | Bonsai 2 27B |
|---|---|---|---|---|
| File size | 5.93GB | 53.8GB | 10.1GB | 5.93GB |
| Bits per weight | 1.76 | 16.0 | 3.00 | 1.76 |
| Context | 262,144 tokens | 262,144 tokens | 262,144 tokens | 262,144 tokens |
| Tool-calling average (5) | 77.2 | 77.7 | 75.3 | 67.0 |
| Agentic coding average (3) | 54.2 | 60.5 | 55.5 | 37.9 |
| General capability average (5 categories) | 82.1 | 84.3 | 81.7 | 81.6 |
| AppWorld | 90.5 | 93.2 | 86.1 | 51.2 |
| DeepSWE | 27.0 | 30.1 | 27.0 | 0.0 |
| License | Apache 2.0 | Apache 2.0 | Apache 2.0 | Apache 2.0 |
Tool-calling average (5 benchmarks)
数据来源:PrismML model card; vendor-reported, labeled preliminary, not yet independently verified; thinking mode, reasoning effort xhigh
Frequently Asked Questions
How are Ternary-Bonsai-2.5-27B and Qwen3.8-27B related?
Ternary-Bonsai is a ternary-quantized derivative of Qwen3.8-27B, with architecture, tokenizer, and chat template carried over: 27.36B total parameters and a 262,144-token context. The difference is the weights: each weight is only -1, 0, or +1, shrinking the file from 53.8GB to 5.93GB while tool calling stays essentially tied with full precision.
What does ternary quantization mean, and where does 1.76 bits come from?
Each weight may only be -1, 0, or +1. One ternary value carries log₂3 ≈ 1.585 bits of information; the stored figure is 1.76 bits per weight, with the overhead coming from one shared FP16 scale factor per group of 128 weights, plus a blockwise Hadamard rotation applied to each matrix. The rotation costs no extra bits and no extra weight traffic at inference.
What hardware can run a 5.93GB file?
A GPU with 8GB of VRAM holds the whole model; a laptop with 16GB of RAM can run it on CPU. A community report on an RTX 3080 10GB measured about 9.5GB of GPU memory, dropping to 7.8GB with -np 1 to limit the server to one parallel slot. Apple Silicon and Core Ultra laptops are measured too; the MLX build decodes at 21.7 tokens/s on an M5 Pro.
PTQ1_0, PQ2_0, or Q2_0 — which file do I pick?
PTQ1_0 is smallest and fastest on NVIDIA GPUs but needs PrismML's llama.cpp fork; PQ2_0 is the format benchmarked on Apple Metal and also needs the fork; Q2_0 runs on stock llama.cpp, but only from release b11556 onward. Warning: older stock builds load Q2_0 with no error and silently produce garbage — check your version first.
Can the benchmarks be trusted?
Apply a discount first: all of them are self-reported by PrismML, labeled preliminary, and independent leaderboards have not re-run them. Tool calling averages 77.2 against 77.7 for FP16, and coding averages 54.2 — 90% of full precision — all measured under the vendor's own harness. The improvement over Bonsai 2 is large (coding from 63% to 90%), but wait for independent reproduction before treating the numbers as settled.
Is there an API I can call? What does it cost?
No. The model card lists no API pricing and PrismML runs no hosted inference service — this is a model you run locally, and the cost is your own hardware and electricity. To wire it into an application, confirm your llama.cpp version first, then choose the file.
Ternary-Bonsai-2.5-27B or DaisyRose-27B — which one?
It depends on hardware and the job: with a single 8GB GPU and local agent work in mind, pick Ternary-Bonsai-2.5-27B (5.93GB, tool calling tied with full precision); with 24GB+ of VRAM and the highest agentic coding score as the goal, pick DaisyRose-27B (BF16 about 52GB, Terminal Bench 4.1 at 12.0). Both derive from Qwen3.8-27B; one is “small and capable,” the other “bigger and more capable.”