In this guide, you'll learn:
- What Bonsai 2.5 27B is and how it differs from Bonsai 2
- What hardware you need to run it
- How to run Bonsai 2.5 locally with Atomic Chat or with llama.cpp
Our Bonsai 2 guide covers the earlier release. For this model's original full-precision base, see how to run Qwen 3.8 27B locally.
What is Bonsai 2.5 27B?
Prism ML released Ternary Bonsai 2.5 27B in November 2026 under Apache 2.0. It uses the same Qwen 3.8 27B architecture and ternary weight format as Bonsai 2. The main changes are in tool use and coding tasks that take more than one turn. Prism ML model card
| Specification | Bonsai 2.5 27B |
|---|---|
| Base | Qwen3.8-27B |
| Parameters | 27.36B total, including the separate vision tower |
| Architecture | Dense, hybrid linear and full attention |
| Maximum context | 262,144 tokens |
| Weight representation | Ternary groups of 128, with FP16 scales and a Hadamard rotation |
| GGUF download sizes | PTQ1_0 5.99 GB; PQ2_0 7.25 GB; Q2_0 7.67 GB |
| Reasoning effort | xhigh by default; medium for shorter reasoning |
| MTP | Separate files with an integrated draft head |
| Image input | Separate vision projector required |
| License | Apache 2.0 |
The weights use three values: -1, 0 and +1. Sharing one scale per group lets Prism ML pack the dense language backbone into a file under 6 GB.
Bonsai stores its weights in a rotated basis, and the engine must apply the matching transform to activations. A GGUF loader that recognizes the filename but misses that operation can produce nonsense.
Bonsai 2.5 27B is also distinct from the Bonsai 2 2B, 4B and 9B models.
Bonsai 2.5 benchmarks
All three 27B checkpoints ran with xhigh reasoning effort in Prism ML's evaluation. Prism ML release evaluation
| Benchmark | Bonsai 2.5 27B | Bonsai 2 27B | Qwen3.8-27B FP16 |
|---|---|---|---|
SWE-bench Verified Software engineering | 75.6 | 60.8 | 80.6 |
Terminal-Bench 2.1 Terminal agents | 60.1 | 52.8 | 70.8 |
DeepSWE Agentic coding | 27.0 | 0.0 | 30.1 |
AppWorld App workflows | 90.5 | 51.2 | 93.2 |
Tau2-Bench Tool interaction | 82.0 | 80.2 | 80.6 |
BFCL v4 Tool calling | 67.2 | 64.4 | 70.8 |
Tool-calling average, five benchmarks Tool average | 77.2 | 67.0 | 77.7 |

AppWorld almost catches FP16. Bonsai 2.5 moves from 51.2 to 90.5, just 2.7 points short, while the full-precision model still leads on all three coding tests in the table.
For its low-bit comparison, Prism ML ran the same tests on GGUFs of Qwen 3.8 27B and reported the weight footprint for each build. Prism ML model card
| Benchmark | Bonsai 2.5 27B | GSQ-RCO IQ3_XXS | GSQ-RCO IQ2_S | Unsloth UD-IQ2_XS |
|---|---|---|---|---|
Model weights | 5.93 GB | 10.1 GB | 9.3 GB | 7.6 GB |
SWE-bench Verified Software engineering | 75.6 | 73.2 | 75.4 | 71.8 |
Terminal-Bench 2.1 Terminal agents | 60.1 | 66.3 | 59.6 | 53.9 |
DeepSWE Agentic coding | 27.0 | 27.0 | 22.6 | 17.7 |
AppWorld App workflows | 90.5 | 86.1 | 82.8 | 89.6 |
Average across five tool-use tests Tool average | 77.2 | 75.3 | 74.1 | 75.3 |
IQ3_XXS has the highest Terminal-Bench 2.1 score in this table. On AppWorld, the 5.93 GB Bonsai 2.5 wins. The Bonsai column uses the unedited 2.5 checkpoint.
Bonsai 2.5 GGUF: choose the packing and runtime together
The three packings live in one Prism ML repository.
The upstream file tree contains these six model files. Each filename starts with Ternary-Bonsai-2.5-27B-:
| Filename suffix | Download size | Runtime | First reason to choose it |
|---|---|---|---|
| PTQ1_0.gguf | 5.99 GB | Prism ML fork | Smallest ordinary file; the publisher's preferred NVIDIA packing |
| PTQ1_0-mtp.gguf | 6.23 GB | Compatible Prism ML fork and MTP configuration | NVIDIA decoding with a draft head |
| PQ2_0.gguf | 7.25 GB | Prism ML fork | The packing used for the publisher's Metal measurements |
| PQ2_0-mtp.gguf | 7.49 GB | Compatible Prism ML fork and MTP configuration | Metal or another supported backend with drafting |
| Q2_0.gguf | 7.67 GB | Upstream llama.cpp b11556 or newer | An upstream runtime instead of the fork |
| Q2_0-mtp.gguf | 7.91 GB | Upstream-compatible weights; Prism ML fork for built-in MTP drafting | Q2_0 packing with a draft head |
Start with PTQ1_0 on NVIDIA or PQ2_0 on Apple Silicon. Use Q2_0 if you want to keep upstream llama.cpp.
We also publish a standalone 5.99 GB uncensored PTQ1_0. It uses the same Prism ML fork and loads as a single model file. AtomicChat Bonsai 2.5 Uncensored on Hugging Face
Does MTP make Bonsai 2.5 faster?
The -mtp variants contain a multi-token prediction head. It proposes tokens for the main model to verify, the mechanism behind speculative decoding. The files without that suffix have no draft head.
| Device | Decode off | Decode on | 2K prefill off | 2K prefill on |
|---|---|---|---|---|
| RTX 4090, PTQ1_0 | 111 tok/s | 204 tok/s | 2,808 tok/s | 2,166 tok/s |
| RTX 5090, PTQ1_0 | 174 tok/s | 305 tok/s | 3,854 tok/s | 2,998 tok/s |
| Apple M4 Pro, PQ2_0 | 22.9 tok/s | 25.3 tok/s | 126 tok/s | 122 tok/s |
Decoding got faster. Prompt processing slowed on all three devices in Prism ML's real-prompt server tests, which used 36 prompts on NVIDIA and 18 on M4 Pro. Prism ML MTP results
To try it, use the GPU profile from Prism ML's spec-decoding instructions so the server actually enables the draft head. Prism ML speculative decoding instructions
Bonsai 2.5 hardware requirements
Budget for the weights, context cache and compute buffers. An 8 GB card can be a starting point for PTQ1_0 with a short context and some layers offloaded to system RAM, depending on the allocation log.
| Hardware memory | Sensible first file | Initial context setting | Expectation |
|---|---|---|---|
| 8 GB dedicated VRAM | PTQ1_0 | 4,096 | Tight; inspect allocations and reduce GPU offload if necessary |
| 12 GB dedicated VRAM | PTQ1_0 | 8,192 | More room for the cache and buffers |
| 16 GB or more dedicated VRAM | PTQ1_0; PQ2_0 if needed for your backend | 8,192 | Establish a baseline before increasing context or adding MTP |
| 16 GB Apple unified memory | PTQ1_0 or PQ2_0 in the fork | 4,096 | Leave room for macOS and other apps; unified memory is shared |
| 24 GB or more Apple unified memory | PQ2_0 as a documented Metal starting point | 8,192 | More headroom for conversation history |
| CPU with sufficient free system RAM | A packing supported by the selected build | 4,096 | Set GPU offload to zero; speed depends heavily on memory bandwidth |
How much memory does the context window add?
Prism ML documents about 64 KiB per token for the FP16 KV cache on its 27B backbone. At that rate, the advertised 262K window needs 16 GiB for the cache alone, before you add the weights, compute buffers and whatever else your machine is running. Prism ML KV cache notes
| Context | Estimated FP16 KV cache |
|---|---|
| 8,192 tokens | 0.5 GiB |
| 32,768 tokens | 2 GiB |
| 131,072 tokens | 8 GiB |
| 262,144 tokens | 16 GiB |
Check the KV cache and compute-buffer allocations in the server log before you raise context.
What hardware can run Bonsai 2.5?
- 8 GB GPU. Start with PTQ1_0 at 4,096 tokens. Lower
-nglif the cache and compute buffers exhaust VRAM. - RTX 3060 12 GB. Try PTQ1_0 at 8,192 tokens and check the server's memory log before raising context.
- Apple Silicon. Use Prism ML's Metal build with PQ2_0. Prism ML measured this packing on M4 Pro. If your Mac has 8 GB of unified memory, start with a smaller model from the 8 GB local model guide.
How to run Bonsai 2.5 locally with Atomic Chat and llama-server
Run the model in Prism ML's llama-server, then point Atomic Chat at the local API. The server controls GPU offload and context size.
Step 1: Install Atomic Chat
Install Atomic Chat from atomic.chat.
Step 2: Start llama-server
Download Ternary-Bonsai-2.5-27B-PTQ1_0.gguf from the Prism ML files and get the matching llama.cpp release. The command assumes you built the fork and are inside bonsai-llama.cpp. With a prebuilt release, substitute the path to the extracted llama-server.
./build/bin/llama-server \
-m ./Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \
--alias bonsai-2.5-27b \
--jinja -ngl 99 -fa on -c 8192 -np 1 \
--chat-template-kwargs '{"reasoning_effort":"medium"}' \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
--host 127.0.0.1 --port 8080Keep it running. For PQ2_0, swap the filename. For Q2_0, use the llama-server from upstream b11556 or newer and pass Ternary-Bonsai-2.5-27B-Q2_0.gguf. Keep the same alias and port. On CPU use -ngl 0. Image input needs a separate projector.
Step 3: Configure the endpoint
Open Custom Endpoint in Atomic Chat. Click the gear on llama.cpp server, set the Base URL to http://localhost:8080/v1, and click Save endpoint. Leave the API key empty for this loopback-only server.
Step 4: Load the model list
Click Ping. Look for bonsai-2.5-27b under Models and use Reload models if the list is empty. To enter the alias yourself, click +, paste it into Model ID and click Add Model.
Step 5: Chat locally
Select bonsai-2.5-27b in a new chat and send a short prompt.
Open http://127.0.0.1:8080 to check the server directly if Atomic Chat cannot connect.
How to run Bonsai 2.5 with llama.cpp
Step 1: Get the correct runtime
For PTQ1_0 and PQ2_0, use the Prism ML fork. The pinned release used for our LoRA evaluation provides platform binaries. You can also build that revision from source.
On Linux with NVIDIA CUDA installed:
git clone --depth 1 --branch prism-b12128-d7b2896 \ https://github.com/PrismML-Eng/llama.cpp bonsai-llama.cpp cd bonsai-llama.cpp cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON cmake --build build --config Release -j
On macOS, use the same commands with -DGGML_CUDA=ON omitted; Metal is the default. A Linux CPU-only build also omits that option. You need Git, CMake and a C++ build toolchain. On Windows, the prebuilt archive for your backend avoids the compiler setup; use its .exe binaries and put the command arguments on one line in PowerShell. For CUDA, extract the matching runtime DLLs next to the executable.
For Q2_0, upstream llama.cpp b11556 or newer includes the necessary activation transform. Check llama-cli --version. An older build can load Q2_0 and still return garbage.
Step 2: Download and run the exact file
Download the file through the Prism ML repository, or use the Hugging Face CLI after installing it:
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF \
Ternary-Bonsai-2.5-27B-PTQ1_0.gguf --local-dir .
./build/bin/llama-cli \
-m ./Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \
-ngl 99 -fa on -c 8192 -cnv -n 6144 \
--chat-template-kwargs '{"reasoning_effort":"medium"}' \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0The prompt and output share the 8,192-token context, with generation capped at 6,144. For upstream llama.cpp, use Q2_0. Prism ML's one-shot command gives you a quick compatibility check:
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 8192 \ --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \ -p "Explain ternary weights in one sentence." -n 6144
Step 3: Check the local API
Start llama-server with the command in the Atomic Chat section. In a second terminal:
curl http://127.0.0.1:8080/v1/models
Look for bonsai-2.5-27b, then request an actual answer:
curl http://127.0.0.1:8080/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"bonsai-2.5-27b","messages":[{"role":"user","content":"Explain local AI in one sentence."}],"max_tokens":6144,"chat_template_kwargs":{"reasoning_effort":"medium"},"temperature":1.0,"top_p":0.95,"top_k":20,"min_p":0}'Check that the completion returns a readable answer under choices.
Image input, tools and MTP
For image input, budget for a separate projector: the 629 MB Ternary-Bonsai-2.5-27B-mmproj-Q8_0.gguf or the 931 MB BF16 file. Follow the vendor's vision setup, including a client that can send images.
For tools, use the tool-calling examples to verify a full request, tool execution and returned result. A generated JSON object alone does not test that loop. For MTP, use the matching backend profile in the official demo, which also handles the runtime-specific flags.
Does it work with Ollama or LM Studio?
Use the Prism ML fork for PTQ1_0 and PQ2_0. For Q2_0, the verified upstream path uses llama.cpp b11556 or later. Check a real completion before relying on an import in another app.
Troubleshooting
The loader reports an unknown tensor type
Check the filename. PTQ1_0 and PQ2_0 require the Prism ML fork. Use that binary or switch to Q2_0 with upstream b11556 or newer.
Q2_0 loads, but the answer is nonsense
Check the version first. An older upstream build can load the file without rejecting it, then produce garbage because it lacks the activation transform these weights expect. Upgrade to b11556 or newer.
The model thinks but never gives an answer
A tiny generation limit can cut off the reasoning trace. Prism ML's CLI example pairs a 32,768-token context with a 16,384-token output budget. Increase both if memory allows; for shorter reasoning, select medium by adding --chat-template-kwargs '{"reasoning_effort":"medium"}' to the launch command, as documented in the official demo. The release card says low behaves close to xhigh, so low is a poor choice for making this model hurry.
It runs out of memory
Set -np 1 first. If memory is still tight, restart at -c 4096 and test the plain model with the projector and drafting disabled. Use -ngl to leave more layers in system RAM.
Atomic Chat cannot find the model
Check that llama-server is still running, then open /v1/models with curl. The app needs the /v1 suffix in the Base URL and the exact server alias.
Frequently asked questions
Which Bonsai 2.5 GGUF should I download?
Use PTQ1_0 with the Prism ML fork on NVIDIA. Use PQ2_0 if you want to match Prism ML's Metal tests. The Q2_0 file is the upstream llama.cpp option.
How much VRAM does Bonsai 2.5 need?
Try 4K and one slot. On an 8 GB GPU, the 5.99 GB file leaves limited space for the cache and compute buffers, so check the allocation log and lower GPU offload if needed.
Can I run Bonsai 2.5 on a 16 GB Mac?
Start at 4K. Try the 7.25 GB PQ2_0 with Prism ML's Metal build and check the startup log for the memory left once macOS and your other apps are running.
What changed from Bonsai 2 to Bonsai 2.5?
Both are ternary builds of Qwen 3.8 27B. Prism ML's tool-use average rose from 67.0 to 77.2. Bonsai 2.5 also ships files with an integrated MTP draft head.
Is there an uncensored Bonsai 2.5?
Yes. AtomicChat publishes a 5.99 GB standalone GGUF. Download Bonsai 2.5 Uncensored and follow our Bonsai 2.5 Uncensored setup guide.
Can I use it commercially?
The release is under Apache 2.0. Keep the license and upstream notices with your redistribution.
Start with the plain PTQ1_0 file
On NVIDIA, try PTQ1_0 with the Prism ML fork and an 8,192-token context if memory allows. Use PQ2_0 on Metal. In either case, leave llama-server running while Atomic Chat connects to it.
Key takeaways:
- The smallest GGUF is 5.99 GB. Leave extra memory for context and buffers.
- Prism ML's agent benchmarks improve substantially over Bonsai 2, with remaining gaps to FP16.
- Match PTQ1_0/PQ2_0 to the fork, or Q2_0 to upstream b11556 or newer.
- Atomic Chat can provide the chat interface through its llama.cpp server endpoint.
- Test MTP against the plain file on your own prompts before keeping it enabled.

