Disclaimer:This site is not affiliated with or endorsed by PrismML.
YuliusWiki
Published:•Last updated:•yulius
🌐 中文版 (Chinese)

Ternary-Bonsai-2.5-27B Explained: A 27B Ternary Model That Matches FP16 on Tool Calling at 5.93GB

Quick Answer

A 27B ternary agentic model in a 5.93GB file — tool calling matches FP16, coding reaches 90% of it.

Ternary-Bonsai-2.5-27B is an open agentic model PrismML released on November 24, 2026: built on Qwen3.8-27B, 27.36B total parameters, a 262,144-token context window, and weights under Apache 2.0. The counterintuitive part is the size: every weight takes only the values -1, 0, or +1, at 1.76 bits per weight, in a 5.93GB file — the FP16 version needs 53.8GB, so this one is about a ninth of that (53.8 ÷ 5.93 ≈ 9.07). Yet the vendor-reported benchmarks say tool calling across five benchmarks averages 77.2, against 77.7 for full precision — essentially tied — and agentic coding across three benchmarks averages 54.2, 90% of full precision. Every fact below comes from the official model card and the Hugging Face API; one caveat up front: all benchmark scores are vendor-reported (labeled preliminary), and independent evaluations have not caught up yet, so read them with a discount.

1. What it is: a 27B model squeezed into 5.93GB with ternary weights

Start with what it is. Ternary-Bonsai-2.5-27B is the agentic release of PrismML's Ternary Bonsai line: built on Qwen3.8-27B, 27.36B total parameters — 24.35B for the language model, 0.47B for the vision tower, 2.54B for embeddings and the output head — with a hybrid-attention architecture (about 75% linear-attention layers, 25% full-attention layers), a 262,144-token context window, and weights under Apache 2.0. Get the positioning right first: this is an agentic model, tuned for long-horizon, tool-driven work — calling tools, running terminal commands, writing code — not a general-purpose chat assistant. The model card states the selling point plainly: about a ninth of the size, full-precision-level tool calling. The size math is simple: full-precision FP16 Qwen3.8-27B is 53.8GB; Bonsai 2.5 is 5.93GB, a 9.07× difference. What does 5.93GB mean in practice? A consumer GPU with 8GB of VRAM can hold the whole model, with VRAM to spare for a decent context; a laptop with 16GB of RAM can run it on CPU. A 27B-class model has, for the first time, genuinely crossed into “runs on ordinary hardware” territory.

2. How ternary quantization works: every weight is -1, 0, or +1

The ternary idea is extreme: each weight may only be -1, 0, or +1. One ternary value carries log₂3 ≈ 1.585 bits of information — theoretically less than 2 bits. Stored, it works out to 1.76 bits per weight, with the overhead coming from a shared FP16 scale factor per group of 128 weights (g128 group-wise quantization), plus a blockwise Hadamard rotation applied to each weight matrix before the ternary assignment. The rotation itself costs no extra bits and no extra weight traffic at inference; the runtime applies the matching transform to the activations instead. The obvious question is why accuracy does not collapse at 1.76 bits per weight. The model card's answer has two parts. First, the rotated basis “flattens” the weight distribution, so the ternary assignment throws away less information. Second, this generation's training improved on purpose — the same ternary format in Bonsai 2 kept only 63% of full precision on agentic coding and solved zero DeepSWE tasks; generation 2.5 lifts coding to 90% and DeepSWE from 0 to 27.0. The format did not change; the training did. One detail worth noting: the vision tower ships as a separate mmproj file and loads only on demand. Text-only serving never pays for it — no VRAM, no disk — and you attach it only when images are involved. Multimodality is an option, not a forced bundle.

3. Benchmarks: tool calling ties full precision, coding reaches 90% of it (preliminary)

First, the ground rules: every score below is self-reported by PrismML (vendor-reported, labeled preliminary), taken from the model card; the comparison targets are conventional low-bit GGUF builds of the same base model (GSQ-RCO and Unsloth Dynamic), all measured in thinking mode at reasoning effort xhigh. No independent evaluator has re-run them yet, and scores hold only under the vendor's own harness and settings. Tool calling is the brightest part of the story. Across five benchmarks (τ²-Bench, τ³-Bench, BFCL v3, BFCL v4, AppWorld) it averages 77.2, against 77.7 for FP16 — a gap of just 0.5 points, essentially tied. By benchmark, τ²-Bench 82.0, τ³-Bench 73.9, and BFCL v3 72.6 all beat full precision; only BFCL v4 (67.2 vs. 70.8) trails by 3.6 points. The AppWorld jump is the most dramatic: from 51.2 for Bonsai 2 to 90.5, ahead of every conventional build — that benchmark has the agent write code against the APIs of nine everyday apps, and Bonsai 2.5 completes whole scenarios 89.3% of the time. Agentic coding is where compression usually fails hardest, because one bad action can derail a long episode. Bonsai 2.5 averages 54.2 across the three coding benchmarks, 90% of FP16's 60.5 (54.2 ÷ 60.5 ≈ 0.896); the previous generation managed 37.9, or 63%, with DeepSWE at 0. By benchmark, DeepSWE goes from 0 to 27.0 (90% of FP16's 30.1), SWE-bench Verified from 60.8 to 75.6 (94% of FP16), and Terminal-Bench 2.1 from 52.8 to 60.1. Against the conventional builds it beats all three 2-bit versions; only the 1.7× larger IQ3_XXS (10.1GB) edges its coding average higher, on the strength of one Terminal-Bench 2.1 score. General capability did not collapse either: averaged over five categories and 16 benchmarks, it scores 82.1 against 84.3 for FP16 — a 2.2-point gap, the best of any compressed build. The largest gap is math (90.1 vs. 93.15, 3.05 points); the other four categories sit within 2 points. In other words, at 1.76 bits per weight it is first an agent model that can do the work, and second a general model — and general ability only cost about 2 points.

4. Speed: multi-token prediction, about 300 tokens/s on an H200

The payoff of a much smaller model is not just VRAM saved — it is speed. The model ships with a multi-token prediction (MTP) head: one extra layer that guesses the next few tokens, then the full model verifies all the guesses in one pass and keeps only the tokens it would have produced itself, so output matches decoding without drafting (mean KL divergence between drafting on and off is 5.2 × 10⁻⁵ on an H200). In numbers, MTP speeds up decode 1.5–1.8× on NVIDIA GPUs: H200 from 194 to 306 tokens/s, B200 from 191 to 309, RTX PRO 6000 from 158 to 283, and RTX 5090 from 174 to 312. With the kernels still in testing, decode runs 2.3–3.0× faster than the fastest setup available on Bonsai 2's release day across six of the seven NVIDIA GPUs measured. The cost is prefill slowing 9–23% (the draft head makes its own pass over the prompt), though the new kernels recover that too. On Apple hardware the numbers are smaller but usable: 30.2 tokens/s decoding with llama.cpp on an M5 Pro, 21.7 tokens/s with the MLX build. More extreme still is the phone: 8.79 tokens/s with the whole model on a Galaxy S26 Ultra's Hexagon NPU — though the model card is explicit that this needs a fix that has not been released yet, so it does not run today. One caution when reading the speed tables: the speedup ratios compare runs on the same machine and build, so numbers from different devices cannot be compared sideways.

5. How to run it: three files — pick the wrong one and you get silent garbage

The same ternary model ships as three GGUF files, and which one you want depends on your runtime — with different costs for choosing wrong. PTQ1_0 is the smallest file (5.93GB) and the fastest decoder on NVIDIA GPUs, but it needs PrismML's own llama.cpp fork; upstream review is still pending. PQ2_0 stores each trit in a 2-bit slot and is the format benchmarked on Apple Metal, and the source of the MLX export; it also needs the fork. Q2_0 is stock llama.cpp's standard 2-bit type and runs on upstream llama.cpp — but only from release b11556 onward, which added the Hadamard activation runtime these weights need. There is a trap here that deserves to be stated plainly: older stock builds load the Q2_0 file with no warning at all and produce garbage. Check your build first (llama-cli --version) instead of debugging garbled output later. Running it is otherwise straightforward. Download the file with hf download, then run llama-cli with -m for the model, -ngl 99 to offload everything to the GPU, and -c 32768 for context, using the official sampling settings: temperature 1.0, top_p 0.95, top_k 20, min_p 0 (llama.cpp defaults min_p to 0.05, so pass --min-p 0 explicitly). Reasoning effort defaults to xhigh (most accurate); use medium for shorter answers — low is not supported and behaves close to xhigh. On memory-limited machines, note that server mode starts four parallel slots sharing one KV cache: a community report on an RTX 3080 10GB measured about 9.5GB of GPU memory, dropping to 7.8GB with -np 1 to limit it to one slot. For a cost reference: 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.

6. Who it fits, who should wait, and sources

Who it fits: anyone who wants to run agentic coding locally — a single 8GB GPU runs a 27B terminal agent with SWE-bench Verified at 75.6 and Terminal-Bench 2.1 at 60.1, from a 5.93GB file; anyone building tool-calling or multi-turn customer-facing agents who does not want to provision data-center GPUs for a full-precision model (tool calling ties FP16); anyone who wants agents on a laptop, a Mac, or even a phone, with prompts and data staying on the device (Apple Silicon and Core Ultra laptops are measured, and a phone path exists); and researchers interested in the ternary-quantization recipe who want open weights to experiment with. Who should wait: anyone expecting it to match full precision on every benchmark — math trails by 3 points and BFCL v4 by 3.6, so the compression cost is still there; anyone on stock llama.cpp older than b11556 (upgrade first, or Q2_0 silently produces garbage); anyone who wants to call an API (PrismML has no hosted service and the model card lists no API pricing — self-hosting is the only path); and anyone who wants to run it on a phone today (the Galaxy S26 Ultra NPU path needs an unreleased fix — wait for it to land). The limits, laid out plainly. First, the release is a day old and every eye-catching score is vendor-reported — independent leaderboards have not re-run them. Second, PTQ1_0 and PQ2_0 depend on PrismML's fork, with upstream support still under review, so the ecosystem is just starting. Third, MTP's speedup depends on the text — the draft head has to guess right to pay off, and guessing wrong is wasted work. Fourth, it is open under Apache 2.0, but it is a derivative of Qwen3.8-27B — confirm both sides' license terms before commercial use. Sources (verified November 25, 2026, Beijing time): 1) https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF — Hugging Face model card (read directly): 27.36B total parameters, 262,144-token context, 1.76 bits per weight, 5.93GB; full tool-calling and agentic-coding tables; general capability across five categories and 16 benchmarks; MTP speedup 1.5–1.8×; H200 decode 306 tokens/s, RTX 5090 312 tokens/s; Q2_0 needs stock llama.cpp b11556 or newer; MLX numbers on the M5 Pro; sampling parameters and reasoning effort; 2) https://huggingface.co/api/models/prism-ml/Ternary-Bonsai-2.5-27B-GGUF — Hugging Face API (read directly): createdAt 2026-11-24T16:32:20Z, license apache-2.0, base model Qwen/Qwen3.8-27B, 181 likes, context_length 262144; 3) Not verified and not written into the article: API pricing on any channel (the model card lists none); real-world speeds of each quantized build on your machine; the follow-up of the PTQ1_0 upstream review. Disclaimer: this site is not affiliated with PrismML, Hugging Face, Qwen, llama.cpp, or any party cited here; Ternary Bonsai, Qwen, llama.cpp, and related names are trademarks of their respective owners. This article is product-technology reporting and analysis, not procurement, deployment, or legal advice. Parameters, specs, and status follow the official pages and model card and may change; anything not publicly disclosed follows the official pages.

Comparison: Ternary-Bonsai-2.5-27B vs Qwen3.8-27B FP16 vs GSQ-RCO IQ3_XXS vs Bonsai 2

DimensionBonsai 2.5 27BQwen3.8-27B FP16GSQ-RCO IQ3_XXSBonsai 2 27B
File size5.93GB53.8GB10.1GB5.93GB
Bits per weight1.7616.03.001.76
Context262,144 tokens262,144 tokens262,144 tokens262,144 tokens
Tool-calling average (5)77.277.775.367.0
Agentic coding average (3)54.260.555.537.9
General capability average (5 categories)82.184.381.781.6
AppWorld90.593.286.151.2
DeepSWE27.030.127.00.0
LicenseApache 2.0Apache 2.0Apache 2.0Apache 2.0

Tool-calling average (5 benchmarks)

Qwen3.8 FP1677.7
★ Bonsai 2.5 27B77.2
GSQ-RCO IQ3_XXS75.3
GSQ-RCO IQ2_S74.1
Bonsai 2 27B67.0

数据来源: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.”

© 2026 YuliusWiki. All rights reserved.