How Much To Run AI
Open weights

Ternary Bonsai 2.5 27B: Local Coding and Agent Workflows

Ternary Bonsai 2.5 27B is PrismML’s open-weight coding and tool-use model based on Qwen3.8-27B. Its PTQ1_0 weights are 5.93 GB, while the full-precision checkpoint is 53.8 GB. Choose a compatible GGUF packing and runtime, then measure the memory and time used by the complete agent task, including tool calls and retries.

Content reviewed:

PrismML reports Ternary Bonsai 2.5 27B weights at 5.93 GB versus 53.8 GB for Qwen3.8-27B FP16, with a five-benchmark tool-use average of 77.2 versus 77.7.
PrismML’s published checkpoint sizes and tool-use scores. Scores are benchmark results, not a local measurement.

Use this model

Official model repository

Where to try Ternary Bonsai 2.5 27B

  • Run a coding agent on a repository issue when code and prompts need to stay on infrastructure you control.
  • Complete multi-step terminal tasks where the model must read tool output, correct mistakes and continue toward a testable result.
  • Build a private assistant that calls local tools or searches documents without sending each inference request to a hosted model API.

What changed in Bonsai 2.5 27B?

Bonsai 2.5 is a separate release from Ternary Bonsai 2 27B. It keeps the Qwen3.8-27B hybrid-attention base and ternary weight format, then targets longer coding and tool-use sequences. The checkpoint has 27.36 billion total parameters, a 262K-token context, text and image input, and Apache 2.0 weights.

The 5.93 GB figure is for the base PTQ1_0 weights, without the optional multi-token-prediction (MTP) draft head. The current Hugging Face repository lists the PTQ1_0 MTP file at about 6.23 GB. Neither figure includes the runtime, context cache or separate image projector. A smaller checkpoint is easier to store, but full memory use still depends on the packing, context length, runtime and concurrent work.

PropertyPublished specification
Base modelQwen3.8-27B hybrid-attention model
Total parameters27.36B, including the vision tower and embedding/lm-head
Context length262K tokens
PTQ1_0 base weights5.93 GB; MTP variants include a separate draft head
Input and outputText and image input; generated text and tool calls
Weight licenseApache 2.0

Choose a GGUF packing and run it locally

Choose Q2_0 if you want to use upstream llama.cpp. PrismML says Q2_0 needs llama.cpp b11556 or newer, which includes the Hadamard activation support for these weights. Older builds may load the file but produce incorrect output. PTQ1_0 and PQ2_0 use PrismML’s llama.cpp fork; PrismML recommends PTQ1_0 on NVIDIA GPUs and PQ2_0 for its published Apple Metal measurements. Check the current backend matrix before choosing an MLX, Windows, Vulkan or ROCm setup.

The commands below download the Q2_0 file and run a local request. For a single-user server on a GPU with limited VRAM, PrismML recommends adding `-np 1`. A user on an RTX 3080 10 GB reported that total GPU use fell from about 9.5 GB to 7.8 GB with this setting, including the desktop; this is one setup-specific community measurement.

For another single-card reference, Doğukan Urker reported about 47 tokens/s without MTP and 74 tokens/s with it on an RTX 3060 12 GB, with the server configured for a 262K context. The post does not say the measured prompt filled that window. This PTQ1_0-MTP run used PrismML’s llama.cpp fork and Q4_0 for both model and draft KV caches; it is a decode-speed report, not the completion time or success rate for a coding task.

A report for PrismML fork build `b12178-03ec600` on an RTX 3090 24 GB describes intermittent CUDA crashes during repeated image requests with MTP and the separate image projector. MTP disabled passed six image requests in that user’s run; an MTP setting with one draft token passed once, which is not enough to establish a workaround. Check the open issue if your workflow depends on MTP with image input.

For a coding agent, use the official demo scripts or a compatible client connected to the local server. The client manages the tool loop: it presents available tools, executes approved calls and returns their results to the model.

Download the upstream-compatible Q2_0 file and run a prompt
hf download prism-ml/Ternary-Bonsai-2.5-27B-gguf Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir .

llama-cli -m Ternary-Bonsai-2.5-27B-Q2_0.gguf \
  -ngl 99 -fa on -c 32768 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
  -p "Explain what this repository's tests cover." -n 16384

What do the published coding and tool-use scores show?

PrismML’s release evaluation reports gains over Bonsai 2 27B on multi-step coding and application tasks. Its five-benchmark tool-use average is 77.2 for Bonsai 2.5 and 77.7 for Qwen3.8-27B FP16. These are publisher-reported scores from PrismML’s evaluation setup; task harnesses and sampling settings affect results, so compare rows within the same report.

PrismML also published two local workflow demonstrations: an offline pytest regression investigation and fix over 180 tool calls, and a screenshot-to-HTML recreation over 47 calls with browser feedback. These illustrate long tool loops, but the posts do not give a shared benchmark protocol or repeat count.

GuideboardLabs tested Bonsai 2.5 PQ2_0 with MTP on its Agon benchmark, averaging 57.33/66 across three runs for each of its Agent, Code and Reason events on an RX 5700 XT 8 GB. The event averages were 23/24, 18.33/25 and 16/17; the Regex Engine task scored 0/4 in each Code run. The benchmark author also reported that MTP decode speed varied with KV-cache type: 17 tokens/s with Q8_0 versus 10.8 without drafting in a shallow run, while MTP with F16 KV reached 8.5; a longer task sustained about 10.5.

On November 25, Reddit user u/majmichu reported 13 of 13 small hidden-test coding tasks passing in a first run on an RTX 5060 Laptop GPU with 8 GB VRAM and 16 GB system RAM. The setup used a 6.2 GB PTQ1_0 MTP file, PrismML’s llama.cpp build, a 54K context and Q4_0 KV cache. The run took 66 minutes and reported 73.8 generated tokens per second with MTP. The author described it as a 13-task, one-attempt preview and disclosed that they are building the Local Quench app used in the run.

Use the model on your own representative issues before choosing it for a team workflow. Keep the repository, agent client, runtime build, packing, context, tool permissions and test checks fixed when comparing it with another model. Count a task as accepted only after its tests or review criteria pass.

PrismML evaluationQwen3.8-27B FP16Bonsai 2 27BBonsai 2.5 27B
SWE-bench Verified80.660.875.6
DeepSWE v1.130.10.027.0
Terminal-Bench 2.170.852.860.1
AppWorld93.251.290.5
Five-benchmark tool-use average77.767.077.2

Estimate local cost per accepted coding task

The release materials reviewed here do not publish a hosted API price for Bonsai 2.5. For self-hosting, calculate the full GPU or computer charge for model loading, prompt processing, generation and verification, then divide by completed tasks that pass your checks. Add storage, electricity when billed separately, and any external search or tool services.

A smaller checkpoint can make a lower-cost machine viable, but 5.93 GB does not imply nine times lower runtime cost than FP16. Compare actual hourly rental or electricity rates and complete-task duration on your workload. Include reasoning tokens, failed tool calls and repair attempts in the same task total.

For a worked illustration, apply an assumed full-node rental rate of $1.50 per hour to the 66-minute, 13-task Reddit run described above. That is $1.65 for the batch, or about $0.13 per accepted task if all 13 pass. This calculation substitutes a sample node rate, not the user’s actual rental quote; add storage and any external tools separately.

Before you use it

  • The 5.93 GB PTQ1_0 figure is for the base pack; an MTP variant includes a larger draft head, while the image projector is a separate file.
  • PrismML benchmark scores and the first community coding run use different tasks and test setups.
  • MTP decode speed does not predict the duration of a complete coding-agent task.
  • One open runtime issue reports intermittent CUDA crashes with MTP-enabled image requests on a specific PrismML build.

How to get started

Start with a small repository task and a local Q2_0 runtime at a supported version. Check the patch with tests, then compare complete-task time, memory use and accepted results against another model on the same issues.

Sources

Sources (12)

Calculators