PrismML has released Ternary Bonsai 2.5 27B, a 27B model squeezed to 1.76 bits per weight so the whole thing is a 5.93 GB file. It is built on Qwen3.8-27B, licensed Apache 2.0, and tuned for agents: tool calling, coding and long multi-step tasks.
The GGUF files went up on Hugging Face on 24 November 2026. In five days the main repo passed 470,000 downloads and sat at number 3 on Hugging Face trending when I checked on 29 November.
This guide covers what the model is, every published benchmark, which of the six GGUF files you should download, the exact commands for llama.cpp, the PrismML one-click demo, Mac (MLX) and Windows, plus the real fixes people are posting in the model’s discussion tab.
- What: a ternary (weights are only -1, 0 or +1) version of Qwen3.8-27B from PrismML, made for agents. Free, Apache 2.0.
- Size: 5.99 GB for the smallest file, against 53.8 GB for the FP16 model. Text, images (with an extra 0.63 GB file) and 262K context.
- Scores (PrismML-reported): tool calling 77.2 vs 77.7 for FP16; SWE-bench Verified 75.6; about 90% of FP16 on agentic coding.
- Runs on: 8-10 GB NVIDIA and AMD cards, Apple Silicon Macs and even CPU. Community reports: 42.7 tok/s on an RTX 3070 8 GB, 137-147 tok/s on an RTX 3080 10 GB.
- Catch: two of the three packings need PrismML’s llama.cpp fork. Only the
Q2_0file runs on stock llama.cpp, and only on build b11556 or newer.
What Ternary Bonsai 2.5 27B Is
PrismML makes heavily compressed models. Its earlier Bonsai 2 27B, released on 17 September 2026, already shrank Qwen3.8-27B to under 6 GB, but it lost a lot on agentic coding: PrismML says it kept only 63% of the FP16 score and solved zero DeepSWE tasks.
Bonsai 2.5 keeps the same weight format and the same base model. What changed is the training focus: this release targets long-horizon, tool-driven work, and it ships a multi-token prediction (MTP) draft head that speeds up text generation.
If you have already read our guide to running Qwen3.8-27B on a 16 GB GPU, think of Bonsai 2.5 as the same brain in a much smaller box, aimed at people with 8-12 GB cards or laptops.
What “ternary” means here
- Every weight is stored as -1, 0 or +1, with one FP16 scale shared by each group of 128 weights.
- Before rounding, each weight matrix is rotated with a blockwise Hadamard transform. The runtime applies the matching transform to activations, so it costs no extra storage.
- That is why stock llama.cpp needed new kernels before it could read these files, and why an old build gives garbage.
Specs at a Glance
| Item | Ternary Bonsai 2.5 27B |
|---|---|
| Maker | PrismML |
| Released | 24 Nov 2026 (Hugging Face upload) |
| Base model | Qwen3.8-27B (hybrid attention: ~75% linear, ~25% full) |
| Parameters | 27.36B total (24.35B language, 0.47B vision, 2.54B embeddings/head) |
| Context | 262,144 tokens |
| Bits per weight | 1.76 (PTQ1_0 packing) |
| Inputs | Text, plus images with the separate mmproj file |
| Reasoning | Thinks by default; effort xhigh (default) or medium |
| Backends | llama.cpp (CUDA, Metal, CPU, SYCL, Vulkan for Q2_0), MLX |
| Licence | Apache 2.0 |
Benchmarks: Tool Calling, Coding and General
xhigh effort. No independent lab has published its own run yet. I have not tested these myself.Agentic tool calling
| Benchmark | Qwen3.8 FP16 (53.8 GB) | IQ3_XXS (10.1 GB) | Unsloth UD-IQ2_XS (7.6 GB) | Bonsai 2 (5.93 GB) | Bonsai 2.5 (5.93 GB) |
|---|---|---|---|---|---|
| τ²-Bench | 80.6 | 77.7 | 82.0 | 80.2 | 82.0 |
| τ³-Bench | 72.8 | 70.7 | 67.2 | 69.1 | 73.9 |
| BFCL v3 | 71.2 | 71.6 | 71.5 | 70.3 | 72.6 |
| BFCL v4 | 70.8 | 70.6 | 66.2 | 64.4 | 67.2 |
| AppWorld | 93.2 | 86.1 | 89.6 | 51.2 | 90.5 |
| Average | 77.7 | 75.3 | 75.3 | 67.0 | 77.2 |
IQ3_XXS here is the GSQ-RCO build. The headline: on tool calling, a 6 GB file matches the 54 GB original within half a point.

Agentic coding
| Benchmark | FP16 | IQ3_XXS | Unsloth UD-IQ2_XS | Bonsai 2 | Bonsai 2.5 |
|---|---|---|---|---|---|
| Terminal-Bench 2.1 | 70.8 | 66.3 | 53.9 | 52.8 | 60.1 |
| SWE-bench Verified | 80.6 | 73.2 | 71.8 | 60.8 | 75.6 |
| DeepSWE | 30.1 | 27.0 | 17.7 | 0.0 | 27.0 |
| Average | 60.5 | 55.5 | 47.8 | 37.9 | 54.2 |
Coding is where the gap still shows. The 10.1 GB IQ3_XXS build has a slightly higher coding average, mostly thanks to Terminal-Bench.
General capability (category averages, 16 benchmarks)
| Category | FP16 | IQ3_XXS | Bonsai 2.5 |
|---|---|---|---|
| Knowledge and reasoning | 86.67 | 85.57 | 84.27 |
| Math (AIME26, HMMT26) | 93.15 | 88.15 | 90.10 |
| Coding (LiveCodeBench v6, BigCodeBench) | 74.55 | 68.20 | 71.65 |
| Instruction following | 81.15 | 81.95 | 80.90 |
| Vision (7 benchmarks) | 86.07 | 84.73 | 83.66 |
| Average | 84.32 | 81.72 | 82.12 |
Which GGUF File Should You Download?
The repo has three “packings” of the same weights, each with and without the MTP draft head. The model quality is identical; only the runtime and speed differ.
| File | Size | Runs on | Pick it if |
|---|---|---|---|
PTQ1_0-mtp.gguf |
6.23 GB | PrismML fork only | You have an NVIDIA GPU (fastest decode on every NVIDIA card PrismML measured) |
PTQ1_0.gguf |
5.99 GB | PrismML fork only | NVIDIA, tight VRAM, no drafting |
PQ2_0-mtp.gguf |
7.49 GB | PrismML fork only | Apple Silicon (the format PrismML benchmarked on Metal) |
PQ2_0.gguf |
7.25 GB | PrismML fork only | Mac without drafting |
Q2_0-mtp.gguf |
7.91 GB | Stock llama.cpp b11556+ | You want official llama.cpp and speculative decoding |
Q2_0.gguf |
7.67 GB | Stock llama.cpp b11556+ | Apps with their own llama.cpp (LM Studio etc.), if new enough |
mmproj-Q8_0.gguf |
0.63 GB | Any of the above | You want to send images (BF16 version: 0.93 GB) |
PQ2_0 file, which needs the PrismML fork (discussion #23). If you use Ollama or another app with a bundled engine, pick Q2_0 and make sure the engine is built from llama.cpp b11556 or newer.Hardware and Speed
PrismML’s own speed table (plain decoding, PrismML fork, batch 1, tokens per second):
| GPU | PTQ1_0 decode | With MTP head | Prefill (2K prompt) |
|---|---|---|---|
| RTX 5090 | 163 | 305-312 | ~4,200 |
| RTX PRO 6000 | 158 | 277-283 | ~4,280 |
| RTX 4090 | 112 | 204 | ~3,450 |
| Apple M4 Pro (PQ2_0) | 22.9 | 25.3-29.2 | 126 |
| Intel Core Ultra laptop (iGPU, SYCL) | 11.1 | 23.1-24.5 | 236 |
| Galaxy S26 Ultra (NPU, unreleased fix) | 6.34 | 8.79 | 137 |
Community reports from the Hugging Face discussion tab (user-reported, different builds and settings):
- RTX 3080 10 GB: 137-147 tok/s decode, ~9.4 GB peak at 65K context (PTQ1_0 + MTP, #17).
- RTX 3070 8 GB + 16 GB RAM: 42.7 tok/s at 64K context, used as a local coding agent (#20).
- RX 6600 8 GB: about 20 tok/s at 32K context after a custom ROCm build (#21); plain Vulkan was much slower.
- M2 Pro 16 GB Mac: 14.5 tok/s, 15.3-15.8 with MTP and a Metal patch (#26).
How to Run It (4 Ways)
Option 1: PrismML’s one-click demo (easiest)
The official Bonsai-demo repo downloads the right binaries and file for your machine, then gives you a chat UI with vision and tools at http://localhost:8080.
- Install Git, then clone the repo:
git clone https://github.com/PrismML-Eng/Bonsai-demo.gitandcd Bonsai-demo. - Mac or Linux: run
./setup.sh. Windows PowerShell: runSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass, then.\setup.ps1. - Start the server:
./scripts/start_llama_server.sh(Windows:.\scripts\start_llama_server.ps1). - Open
http://localhost:8080in your browser and chat.
Setup downloads about 7.6 GB (PQ2_0 + vision) or 6.4 GB (PTQ1_0 on CUDA cards). It also installs Open WebUI and a code interpreter; skip them with BONSAI_OPENWEBUI=0 and BONSAI_CODE_INTERPRETER=0 before running setup.
Option 2: PrismML llama.cpp fork (NVIDIA, fastest)
- Download a prebuilt archive for your platform from the PrismML-Eng/llama.cpp releases page, or build it with
cmake -B build -DGGML_CUDA=ONthencmake --build build -j. - Download the model:
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF Ternary-Bonsai-2.5-27B-PTQ1_0.gguf --local-dir . - Run it:
./bin/llama-cli -m Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \ -ngl 99 -fa on -c 32768 \ --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \ -p "Explain quantum computing in simple terms." -n 16384
-ngl 99 puts every layer on the GPU (use 0 for CPU only). Keep -n large: the model thinks first, so a small cap cuts it off before the answer.
Option 3: Stock llama.cpp with Q2_0
Upstream support was merged in llama.cpp PR #29600, with the Hadamard kernels for CPU, CUDA, Metal, Vulkan, SYCL and MUSA. If you need a fresh install, our llama.cpp install guide covers every method.
- Check your build:
llama-cli --versionmust report b11556 or newer. - Download:
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir . - Run with the same flags as above, swapping in the Q2_0 file. AMD and Intel users can use the Vulkan build (see our llama.cpp Vulkan guide).
PrismML says stock llama.cpp gives identical greedy text to its fork on Q2_0, but decodes slower: 109 tok/s against 150 on an H200.
Option 4: Mac with MLX
There is a text-only MLX build, prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit (about 8.6 GB). In the demo repo, use ./scripts/run_mlx.sh or ./scripts/start_mlx_server.sh. PrismML measured 21.7 tok/s on an M5 Pro with MLX, against 30.2 tok/s with llama.cpp on the same Mac, so llama.cpp is the faster Mac route and the only one with image input.
Use it as an API for agents
Swap llama-cli for llama-server with the same model and flags, add -np 1, and point any OpenAI-compatible client at http://localhost:8080/v1. Our llama-server guide and llama.cpp function calling guide show the full request format for tools.
Best Settings
| Setting | Thinking mode (default) | Non-thinking mode |
|---|---|---|
| temperature | 1.0 | 0.7 |
| top_p | 0.95 | 0.80 |
| top_k | 20 | 20 |
| min_p | 0 (pass --min-p 0; llama.cpp defaults to 0.05) |
0 |
| presence_penalty | 0 | 1.5 |
| Reasoning effort | xhigh default; medium for shorter answers |
– |
The low effort setting is not supported; PrismML says the model then behaves close to xhigh. A plain system prompt such as “You are a helpful assistant” is enough.
The MTP head is on by default in the demo on CUDA-class GPUs and Metal (BONSAI_SPECULATIVE=0 turns it off). PrismML ships ready-made MTP presets for CUDA, Metal, SYCL and Hexagon in the repo’s presets/llama.cpp/ folder. For how draft-based speedups work in general, see our speculative decoding guide.
Bonsai 2.5 vs Other Ways to Run a 27B
| Option | File size | Tool calling avg | Coding avg | Runtime | Best for |
|---|---|---|---|---|---|
| Bonsai 2.5 27B (PTQ1_0) | 5.99 GB | 77.2 | 54.2 | Fork (Q2_0: stock) | 8-12 GB GPUs, laptops, fast agents |
| Qwen3.8-27B GSQ-RCO IQ3_XXS | 10.1 GB | 75.3 | 55.5 | Stock llama.cpp | 12-16 GB GPUs, slightly better coding |
| Qwen3.8-27B Unsloth UD-IQ2_XS | 7.6 GB | 75.3 | 47.8 | Stock llama.cpp, Ollama | Max app compatibility |
| Qwen3.8-27B FP16 | 53.8 GB | 77.7 | 60.5 | Anything | Workstations, servers |
| Inkling 2 Mini (26B, 3.4B active) | Varies by quant | Not in PrismML’s table | Not in PrismML’s table | Ollama, llama.cpp, LM Studio | Fast MoE alternative |
Scores in the first four rows all come from PrismML’s model card, measured the same way. Inkling 2 Mini is a different model, so treat it as a separate choice, not a like-for-like row.
Troubleshooting
Output is garbage or random characters
Your llama.cpp is older than b11556. Old builds load Q2_0 without any warning and produce nonsense, because they lack the Hadamard activation step. Update llama.cpp, or update the app that bundles it.
“Unknown type” error when loading
You are loading PTQ1_0 or PQ2_0 in stock llama.cpp or Ollama. Use the PrismML fork, or switch to the Q2_0 file.
VRAM use is higher than expected
In automatic mode the server starts four slots sharing one KV cache. Add -np 1 for single-user use: one RTX 3080 user went from about 9.5 GB to 7.8 GB total (#1).
You can also keep the vision file on the CPU with --no-mmproj-offload, or try a 4-bit KV cache (BONSAI_KV4=1 in the demo).
The machine freezes at startup
Older demo scripts used the full 262K context. Pin a smaller one: BONSAI_CTX=8192 ./scripts/start_llama_server.sh.
It thinks for ages
Several users report overthinking, as with the base Qwen model (#6). Switch to medium effort. Community suggestions include --repeat-penalty 1.05 and a lower draft count such as --spec-draft-n-max 1.
Windows setup picks Vulkan or CPU instead of CUDA
Older setup scripts missed newer NVIDIA drivers that print “CUDA UMD Version”. Pull the latest Bonsai-demo and run setup again.
M5 Mac: Metal compile errors
Some macOS 26.2-26.4 releases break the Metal tensor-API compile. Run with GGML_METAL_TENSOR_DISABLE=1 in front of the command; M1-M4 Macs are not affected.
Limits, Licence and Open Questions
- Licence: Apache 2.0, so commercial use, fine-tuning and redistribution are allowed. Keep the NOTICE file, which covers the Qwen base and the MTP head’s provenance.
- Vendor numbers only: all benchmarks come from PrismML. Wait for independent runs before trusting the tool-calling parity claim for your own workload.
- Fork dependency: the fastest files need PrismML’s fork.
PTQ1_0is still under upstream review (llama.cpp PRs #29672 and #29676). - No vision on MLX: the MLX build is text-only.
- Coding gap remains: 54.2 vs 60.5 for FP16 on agentic coding, and Terminal-Bench trails the 10 GB IQ3_XXS build.
- Phone support: the Galaxy S26 Ultra NPU numbers need a fix that is not released yet.
- Uncensored forks: community “uncensored” re-uploads are already appearing. They are not from PrismML; stick to the official repo.
My Take
This is the most interesting local-model release of the month for anyone on an 8-12 GB card. A year ago “27B on a 3070” meant painful offloading; here the whole model sits in VRAM with room for a long context.
The tool-calling numbers matter more than the headline size. Agents fail when a quantised model botches one tool call in a long chain, and AppWorld jumping from 51.2 to 90.5 suggests PrismML fixed exactly that weakness. Community posts running coding agents on 8 GB GPUs back up the direction, if not the exact figures.
The file confusion is the real risk for beginners. If you just want it working, use the Bonsai-demo setup script. If you want it inside an existing app, use Q2_0 and check the llama.cpp build first.
FAQ
Is Ternary Bonsai 2.5 27B free?
Yes. The weights are free on Hugging Face under Apache 2.0, including for commercial use.
Can I run it on an 8 GB GPU?
Yes. The PTQ1_0 file is 5.99 GB, and community users report it running on RTX 3070 8 GB and RX 6600 8 GB cards. Keep context around 32K and add -np 1.
Does it work in Ollama or LM Studio?
Only the Q2_0 file, and only if the app’s built-in llama.cpp is b11556 or newer. The PTQ1_0 and PQ2_0 files need PrismML’s fork.
Is it better than a normal Q2 or Q3 quant of Qwen3.8-27B?
On PrismML’s numbers, it beats every quant under 10 GB on tool calling and coding. The 10.1 GB IQ3_XXS build is still slightly ahead on coding.
Can it read images?
Yes, with llama.cpp and the separate mmproj file (0.63 GB at Q8_0). The MLX build is text only.
What is the MTP version?
The -mtp files add a small draft head that guesses several tokens ahead. PrismML reports 1.5-1.8x faster decoding on NVIDIA GPUs, with output matching normal decoding.
How is it different from Bonsai 2 27B?
Same size and format, but trained for agents: tool calling rises from 67.0 to 77.2 and agentic coding from 37.9 to 54.2 on PrismML’s tables.
Sources
- Hugging Face: prism-ml/Ternary-Bonsai-2.5-27B-GGUF model card, file list and discussions #1, #6, #17, #20, #21, #23, #26 (checked 29 Nov 2026)
- Hugging Face: prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit
- GitHub: PrismML-Eng/Bonsai-demo README and FAQ.md; Bonsai 2.5 27B whitepaper (linked from the model card)
- GitHub: ggml-org/llama.cpp release b11556 and PR #29600 (as linked from the model card)
- Hugging Face API download and trending data (29 Nov 2026)



