{−1, 0, +1} with an FP16 scale per group of 128 weights, which puts the whole model in 5.93 GB at 1.76 bits per weight, against 53.8 GB at FP16. It takes images as well as text, carries a 262K-token context, calls tools natively, and reasons before it answers.
What changed from Bonsai 2 27B
Bonsai 2.5 replaces Ternary Bonsai 2 27B. The base model, the ternary format, the file size, and the runtimes are all the same; what changed is how the model behaves over a long task. It reads tool results, recovers when a step fails, and keeps the objective in view, and it finishes in fewer turns and fewer tokens, with less of the over-thinking and repetition the earlier model could fall into.
Three practical differences if you are coming from Bonsai 2:
- Speculative decoding is built in. MTP variants of each file carry a draft head that speeds up decode by 1.5–1.8× on NVIDIA GPUs. See Speculative decoding.
min_pis now 0.0 in thinking mode, where Bonsai 2 recommended 0.05.- The
Q2_0file sits in the main GGUF repo, next to the other two packings.
prism-ml/Ternary-Bonsai-2-27B-gguf and -mlx-2bit.
Specifications
Benchmarks
All figures are in thinking mode atxhigh reasoning effort, from the model card.
Tool calling is level with full precision, agentic coding keeps 90% of it, and general capability stays within about two points. Among low-bit GGUF builds of the same base model, Bonsai 2.5 is the smallest compared and leads every build under 10 GB on both agentic suites. The per-benchmark tables, the comparison builds, and the evaluation setup are on the model card and in the whitepaper.
Artifacts
The three packings are the same ternary model in different layouts:
Which runtime runs which file. Upstream llama.cpp from release
b11556 runs the Q2_0 file; older upstream builds load it without a warning and produce garbage, so check llama-cli --version first. PTQ1_0 and PQ2_0 need the PrismML llama.cpp binaries, which the demo’s setup.sh installs; upstream refuses them as unknown types. See Formats & runtime support.How to run it
Through the demo repo, where the 27B is the default, so no flags are needed:-n 16384 (or max_tokens) leaves room for the thinking trace: the template defaults to xhigh reasoning effort, so a small cap ends generation mid-thought, before any answer. On Apple Silicon the MLX pack is a text-only alternative; its model card has the loading steps. The demo repo is the source of truth for running these models; tested setups and current implementation details live there.
Best practices
Generation parameters
llama.cpp applies
min_p = 0.05 when you don’t set it, so pass --min-p 0 explicitly, as the commands on this page do. The published benchmarks used the thinking-mode values.
Reasoning effort
The model uses
xhigh by default, which is the most accurate. medium gives shorter responses and a balance of speed and accuracy. low is not supported: when selected, the model behaves close to xhigh. To bound reasoning, use a token budget instead (see Thinking mode).reasoning_effort per request, or make medium the server-wide default while letting a request still ask for xhigh:
System prompt
A plain system message works well:Choosing a packing
Prompt processing is mixed on NVIDIA:
PQ2_0 is ahead on H200, H100, B200, and L40S, and PTQ1_0 is slightly ahead on the rest. PTQ1_0 also runs on Metal with the PrismML binaries.
Speculative decoding
The files inTernary-Bonsai-2.5-27B-gguf-mtp carry a multi-token prediction (MTP) draft head: one extra layer that guesses the next few tokens. The full model checks every guess in one pass and keeps only the tokens it would have produced itself, so the output distribution is unchanged and only speed differs. Load an MTP file instead of the plain one, not alongside it; without the flags below it runs as the plain model. MTP drafting needs the PrismML binaries.
--spec-draft-n-max is the number of tokens drafted per pass and --spec-draft-p-min is the confidence below which the head stops drafting. The best values differ by device:
Two things to weigh. The head makes its own pass over the prompt, so prompt processing is 9–23% slower on NVIDIA GPUs with drafting on; for long prompts with short answers, run without it. And on Apple Silicon the gain is small today. Kernels now in testing lift both: about 300 tok/s on an H200 or B200, and 1.27× on the M4 Pro. Measurement details and the full device table are on the model card.
Vision and tool calling
27B is trained for both. Send an image as a normal OpenAI-styleimage_url content part, and a tools array for function calling. Both come back through the standard API, no prompt hacks required:
choices[0].message.tool_calls carries the call. Image input needs the mmproj file from the GGUF repo, loaded with --mmproj; it is used only when an image arrives, so text-only serving never pays for it. The demo’s server launcher loads it for you. See Tool calling & MCP in the demo repo for MCP server setup and the full agentic walkthrough, and Open WebUI for a point-and-click demo of the same capabilities.
Thinking mode
27B reasons by default. Toggle it per request withthinking_budget_tokens (0 to disable, -1 for unlimited), cap it server-wide with --reasoning-budget N, or turn it off entirely by passing --reasoning-budget 0 through the launcher (./scripts/start_llama_server.sh --reasoning-budget 0). The built-in chat UI has a Reasoning effort picker (Off / Low / Medium / High / Max) that overrides the server default per conversation. The UI’s levels are fixed token budgets (Medium is 2,048 tokens), which cut thinking off at that length; the model’s own reasoning_effort: "medium" asks it to think less instead, and rarely runs out mid-reasoning.
Large images are downscaled to ~1,024 vision tokens by default on Metal, Vulkan, and CPU to keep latency reasonable; CUDA and ROCm run uncapped. Override with
BONSAI_IMAGE_MAX_TOKENS (0 disables the cap, useful for reading small text in screenshots).