Ternary Bonsai 2.5 27B: a local coding model in 5.9 GB
PrismML's Ternary Bonsai 2.5 27B scores 75.6 on SWE-bench Verified in 5.9 GB, under Apache 2.0. A local coding model for a gaming GPU or a Mac, no subscription.
In 30 seconds
- On 24 November 2026, PrismML released Ternary Bonsai 2.5 27B, based on Qwen3.8 27B, under Apache 2.0. It still fits in 5.9 GB.
- Claimed SWE-bench Verified: 75.6, vs 60.8 for Bonsai 2 and 80.6 for the full Qwen3.8 27B. All numbers are vendor-reported.
- Runs locally through llama.cpp (NVIDIA, Intel GPUs) or MLX (Mac, iPhone, iPad): no subscription, no foreign card needed.
Contents 6
Ternary Bonsai 2.5 27B is a local coding model released by PrismML on 24 November 2026. It is derived from Qwen3.8 27B, weighs just 5.9 GB and, according to PrismML, scores 75.6 on SWE-bench Verified, the reference test of whether a model can fix real bugs in real GitHub repositories. The full model it comes from scores 80.6. The weights are free under Apache 2.0, and it runs on a gaming graphics card or a Mac without any paid service.
What PrismML released on 24 November
PrismML specialises in "ternary" models: instead of storing each network weight in 16 bits, it is reduced to three possible values. The result is a model roughly a ninth of the original size that keeps most of its abilities. Bonsai 2.5 keeps the 5.9 GB footprint of its predecessor, Bonsai 2 27B, but this time targets "agentic" work: calling tools, chaining steps and editing code over long sessions.
According to the demo repository's README, the most compact packing (PTQ1_0) uses 1.76 bits per weight, the model also accepts images, and it has a 262K-token context. The same README notes that the actual download is larger than 5.9 GB: about 7.6 GB in the default PQ2_0 packing (including the MTP draft head and the vision projector), or 6.4 GB in PTQ1_0 on CUDA-class GPUs. Neither PrismML's page nor the README gives a minimum RAM or VRAM figure, so be wary of numbers you see quoted elsewhere.
The scores against Qwen3.8 27B
Every result below is reported by PrismML and has not yet been independently reproduced. It shows a clear jump over Bonsai 2 and a moderate gap with the full model.
Source: PrismML, 24/11/2026
| Bonsai 2.5 27B | Bonsai 2 27B | Qwen3.8 27B | |
|---|---|---|---|
| AppWorld | 90.5 | 51.2 | 93.2 |
| Terminal-Bench 2.1 | 60.1 | 52.8 | 70.8 |
| τ³-Bench | 73.9 | – | 72.8 |
| LiveCodeBench v6 | 83.0 | – | 87.6 |
Source: PrismML, 24/11/2026 (– = not published)
Two takeaways. First, on AppWorld (tasks that chain several apps), Bonsai 2.5 jumps from 51.2 to 90.5: this is where the new version really changes things. Second, Terminal-Bench (command-line work) remains the weak spot, more than 10 points behind the full model. For long tasks in a terminal, the compressed model still loses ground.
On speed, PrismML claims about 204 tokens/s of generation on an RTX 4090 thanks to MTP (multi-token prediction, which drafts several tokens at once), and about 291 tokens/s on an H100.
How to run it (llama.cpp, MLX)
The easiest route is the official demo repository, which installs llama.cpp binaries, downloads the model and opens a chat interface.
On macOS or Linux:
git clone https://github.com/PrismML-Eng/Bonsai-demo.git
cd Bonsai-demo
./setup.sh
./scripts/start_llama_server.sh
# then open http://localhost:8080On Windows, in PowerShell:
git clone https://github.com/PrismML-Eng/Bonsai-demo.git
cd Bonsai-demo
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\setup.ps1
.\scripts\start_llama_server.ps1On Apple Silicon Macs, the README points to ./scripts/run_mlx.sh or ./scripts/start_mlx_server.sh. Note that the MLX build of Bonsai 2.5 is text-only; use llama.cpp to send images.
Once the server is running, a useful first prompt to judge the model on your own code:
You are a senior developer. Here is a PHP function that computes VAT
and the stamp duty on an invoice. Find the bugs, explain them in at
most 5 lines, then give the corrected function with unit tests.
[paste your function here]The official Q2_0 files also run on stock llama.cpp (build b11556 or newer); the PQ2_0 and PTQ1_0 packings need PrismML's fork, which the script installs for you.
Who it helps in Tunisia
Coding with a frontier AI usually means a subscription in dollars, so an international card or a Carte Technologique. A local model removes that barrier: once downloaded, it only costs electricity. See our guide to paying for ChatGPT, Claude or Gemini from Tunisia if you prefer online services.
Who benefits most:
- Developers with a gaming PC (recent NVIDIA GPU) or an Apple Silicon Mac: the stated target.
- Teams handling sensitive code (banking, health, government) who don't want to send it to an API.
- Students who want to learn how to plug a coding agent into a local model, for free.
For modest PCs, the same repository offers smaller Bonsai 2 models (2B, 4B, 9B), less capable but lighter. Our guide to offline AI covers phone options.
FAQ
Is Ternary Bonsai 2.5 27B free?
Yes. The weights are published under Apache 2.0 on Hugging Face, commercial use included. You only pay for hardware and electricity.
What graphics card do I need?
PrismML does not publish a minimum RAM or VRAM. Its speed figures are for an RTX 4090 and an H100. The model is 5.9 GB, but the full download is 6.4 to 7.6 GB depending on the packing: test it on your machine.
Is it as good as Claude or GPT for coding?
Vendor scores put it below the full Qwen3.8 27B (75.6 vs 80.6 on SWE-bench Verified). No independent comparison with the big online models is available as of 25 November 2026.
Does it work offline?
Yes. Once the model and binaries are downloaded, everything runs locally on localhost:8080.
Can it read screenshots?
Yes with llama.cpp, which supports vision. The MLX build of Bonsai 2.5 is text-only.
HexaLab's take
A model that keeps most of its coding ability in 5.9 GB is great news for everyone who can't pay a dollar subscription. But every score comes from PrismML: wait for independent tests before trusting it with a critical codebase, and judge it on your own repositories rather than on a table. The terminal weak spot (60.1 vs 70.8) is a reminder that compression still has a cost.
Verified sources
- PrismML — Ternary Bonsai 2.5 27B (24/11/2026) prismml.com
- GitHub — PrismML-Eng/Bonsai-demo (README) github.com
- Hugging Face — prism-ml/bonsai-25-27b collection huggingface.co
- GitHub — ggml-org/llama.cpp github.com
- The Neuron — Everything that happened in AI, 25/11/2026 (secondary) theneuron.ai
Written and checked by HexaLab from the sources listed.