A 5.9 GB Coding Model Claims 75.6 on SWE-bench Verified. How to Run Bonsai 2.5 Locally, and What Testers Found.
PrismML's Ternary Bonsai 2.5 27B packs a 27B coding model into 5.93 GB under Apache 2.0. Here is which file to download, the commands to run it on stock llama.cpp, the three settings that trip people up, and what early testers measured. Worth an afternoon for private, offline work. Do not pick it on the benchmark.

Accurate as of November 2026. Status: I have only vetted this, from PrismML's docs, the model card and early tester reports. I have not run it on my own machine yet.
On 24 November, PrismML released Ternary Bonsai 2.5 27B: a coding model in a 5.93 GB file, with open weights, that they say scores 75.6 on SWE-bench Verified. If the claim holds, a laptop can run an agent that used to need a rented GPU.

The thread on Hacker News reached 527 points and 176 comments in a day. Most write-ups since then repeat PrismML's table. This post covers how to run it, then separates what PrismML measured from what people outside the company have seen.

Bonsai 2.5 is Qwen3.8 27B with its weights stored as ternary values, which works out to 1.76 bits per weight. PrismML's docs put the full-precision model at 53.8 GB and the smallest Bonsai file at 5.93 GB. It has 27.36B parameters, a 262K context window, and takes text and images.
The weights are Apache 2.0. Every benchmark number in this post is PrismML's own unless I say otherwise, run in thinking mode at the highest reasoning effort. Nobody independent has reproduced the SWE-bench score yet.

The 5.9 GB file, PTQ1_0, only loads in PrismML's fork of llama.cpp. Upstream support is under review. The file that runs on the llama.cpp you already have is Q2_0, at about 7.6 GB.
Q2_0 needs upstream build b11556 or newer. The docs warn that older builds load the file with no error and produce garbage, so check llama-cli --version before you blame the model.

The server speaks the OpenAI chat API, so any agent that accepts a custom base URL can use it. The full commands are in the setup section below.
Pass --min-p 0 every time. llama.cpp applies min_p = 0.05 by default, and PrismML's recommended sampling for thinking mode sets it to 0.

The chat template defaults to xhigh reasoning effort. With a small output cap, generation ends in the middle of the thinking and you get no answer. PrismML's own examples pair a 32,768-token context with 16,384 tokens of output.
medium is the only shorter setting. The docs say low is not supported and behaves close to xhigh, which explains some of the complaints further down.
The memory fix comes from the model card's known issues. llama-server opens several parallel slots by default, and each one reserves memory. On a 10 GB RTX 3080, one user reported about 9.5 GB of GPU memory in use before adding -np 1 and about 7.8 GB after.

These are individual reports from the Hacker News thread. One tester on a 24 GB M5 Pro Mac mini measured 22.3 tokens per second of generation with the Q2_0 file. Another, also on a 24 GB Mac mini, reported 7 to 8.
One commenter ran their own eight-task long-horizon test. Bonsai 2.5 passed five, the same count as Bonsai 2 but in fewer steps. Opus 5.5 passed all eight. It is one person's test and I could not check the tasks.
A third said it seems to overthink even on Low. Low is the unsupported setting, so that may be a configuration problem. PrismML says this release addresses the "excessive thinking and repetitive loops" of the previous model, and that claim also needs outside testing.

Which file, which runtime
All three files are in the GGUF repo on Hugging Face. Sizes are from PrismML's docs.
| File | Size | Loads in | Use it when |
|---|---|---|---|
Ternary-Bonsai-2.5-27B-Q2_0.gguf | about 7.6 GB | Upstream llama.cpp, b11556 or newer | You want the least setup |
Ternary-Bonsai-2.5-27B-PQ2_0.gguf | about 7.2 GB | PrismML fork only | Apple Silicon, and you will build or download the fork |
Ternary-Bonsai-2.5-27B-PTQ1_0.gguf | 5.93 GB | PrismML fork only | NVIDIA or Intel GPU, smallest file, fastest decode |
Images need a separate mmproj file from the same repo, loaded with --mmproj.
There is also an MLX export for Apple devices. It is text-only and ships with its own loader. I have not seen a hands-on MLX report yet, so the loading steps on that model card are your source.
The Hugging Face page offers an Ollama one-liner and an LM Studio button for Q2_0. Hugging Face generates those for every GGUF repo. Whether a given Ollama or LM Studio release bundles a new enough llama.cpp is not something PrismML states, and an old one fails silently. Test a real completion before you trust either.
Setup: the stock llama.cpp route
This route works on any OS with a current llama.cpp. The download and llama-cli commands are from PrismML's docs.
# 1. Check your build. It must be b11556 or newer.
llama-cli --version
# 2. Get the weights (about 7.6 GB)
hf download prism-ml/Ternary-Bonsai-2.5-27B-gguf \
Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir .
# 3. Smoke test in the terminal
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 KV cache growth in one paragraph." -n 16384For an agent you want the server. PrismML's docs only show llama-server with their speculative-decoding file, so this line is the same flags moved onto the plain file, plus --jinja for tool calling, which is how Atomic Chat's guide runs it.
llama-server -m Ternary-Bonsai-2.5-27B-Q2_0.gguf --jinja \
-ngl 99 -fa on -c 32768 -np 1 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
--host 127.0.0.1 --port 8080-ngl 99 puts every layer on the GPU. Use -ngl 0 for CPU only, and expect it to be slow: a test relayed by Zeniteq's setup guide got 3.3 tokens per second on an 8-core CPU with 15 GB of RAM.
Setup: the PrismML fork route
You need this for the 5.93 GB file, for PQ2_0, and for speculative decoding. Prebuilt binaries are on the fork's releases page. To build it yourself:
git clone https://github.com/PrismML-Eng/llama.cpp && cd llama.cpp
cmake -B build -DGGML_CUDA=ON && cmake --build build -j
# On macOS drop -DGGML_CUDA=ON. Metal is the default.Then download the file for your hardware and run it with the same flags as above.
| Hardware | Download | Binary |
|---|---|---|
| NVIDIA GPU | Ternary-Bonsai-2.5-27B-PTQ1_0.gguf | ./build/bin/llama-cli or llama-server |
| Apple Silicon | Ternary-Bonsai-2.5-27B-PQ2_0.gguf | ./build/bin/llama-cli or llama-server |
PrismML also keeps a demo repo that they call the source of truth. Its ./scripts/start_llama_server.sh starts the API and a chat UI on port 8080 with the 27B model as the default.
Point an agent at it
Any agent that takes an OpenAI-compatible base URL will work. Give it http://localhost:8080/v1 and any non-empty API key.
The model card carries ready snippets for Pi, Hermes Agent and OpenClaw. For Pi, the entry in ~/.pi/agent/models.json uses provider llama-cpp, api set to openai-completions, apiKey set to none, and the base URL of your server. The card's examples use port 9931, so change that to match yours. Pi is also the harness the Hacker News tester used.
Tool calls come back in the standard tool_calls field. MCP setup is in the demo repo's TOOLS.md.
The settings, in one table
From PrismML's docs. Do not mix the two columns. The docs say mixing them degrades output.
| Setting | Thinking (default) | Non-thinking |
|---|---|---|
| temperature | 1.0 | 0.7 |
| top_p | 0.95 | 0.80 |
| top_k | 20 | 20 |
| min_p | 0.0 | 0.0 |
| presence_penalty | 0.0 | 1.5 |
To make medium the server default, pass --chat-template-kwargs '{"reasoning_effort":"medium"}'. To cap thinking, pass --reasoning-budget N. --reasoning-budget 0 turns thinking off.
The benchmarks, and what they tell you
All from PrismML's model card, thinking mode, xhigh effort. The middle columns are ordinary 2-bit builds of the same Qwen model from other quantizers, which PrismML included for comparison.
| Benchmark | Qwen3.8 27B full | GSQ-RCO IQ2_S | Unsloth UD-IQ2_XS | Bonsai 2 | Bonsai 2.5 |
|---|---|---|---|---|---|
| Size (GB) | 53.8 | 9.3 | 7.6 | 5.93 | 5.93 |
| SWE-bench Verified | 80.6 | 75.4 | 71.8 | 60.8 | 75.6 |
| Terminal-Bench 2.1 | 70.8 | 59.6 | 53.9 | 52.8 | 60.1 |
| DeepSWE | 30.1 | 22.6 | 17.7 | 0.0 | 27.0 |
| Coding average (3) | 60.5 | 52.5 | 47.8 | 37.9 | 54.2 |
| AppWorld | 93.2 | 82.8 | 89.6 | 51.2 | 90.5 |
| BFCL v4 | 70.8 | 67.7 | 66.2 | 64.4 | 67.2 |
| Tool-calling average (5) | 77.7 | 74.1 | 75.3 | 67.0 | 77.2 |
| LiveCodeBench v6 | 87.6 | - | - | 83.8 | 83.0 |
A conventional 9.3 GB build of the same model scores 75.4 on SWE-bench Verified, against Bonsai's 75.6. Bonsai's SWE-bench score is ordinary for a 2-bit build of this model. Bonsai gets there in 5.93 GB.
It still trails the full model where the work is long and messy: 5 points on SWE-bench Verified, 10.7 on Terminal-Bench 2.1. LiveCodeBench v6 went slightly down from Bonsai 2.
Tool calling is where it holds up best, within half a point of the full model on the five-benchmark average. For agent work that is mostly calling tools, that number matters more to me than SWE-bench.
One Hacker News commenter asked whether a score this close to much larger models says more about the benchmark than the model. I think that is a fair question, and I would not use the 75.6 to compare Bonsai against anything outside this table.
Speed: vendor against tester
| Hardware | File | Tokens/s | Source |
|---|---|---|---|
| NVIDIA H100 | PTQ1_0 | 186 plain, 282 with speculative decoding | PrismML |
| RTX 5090 | PTQ1_0 | 163 to 174 plain, 305 with speculative decoding | PrismML |
| RTX 4090 | PTQ1_0 | 111 plain, 204 with speculative decoding | PrismML |
| Apple M5 Pro | PQ2_0 | 30.2 | PrismML |
| Apple M4 Pro | PQ2_0 | 22.9 plain, 25.3 with speculative decoding | PrismML |
| Core Ultra laptop, integrated GPU | PTQ1_0 | 11.1 plain, 23.1 with speculative decoding | PrismML |
| M5 Pro Mac mini, 24 GB | Q2_0 | 22.3 | Hacker News tester |
| Mac mini, 24 GB | not stated | 7 to 8 | Hacker News tester |
| 8-core CPU, 15 GB RAM, no GPU | Q2_0 | 3.3 | Third-party test, relayed by Zeniteq |
The 200-plus numbers in the announcement all use speculative decoding, which needs a separate MTP file and the PrismML fork. On Apple Silicon the docs call the gain "small today".
The file matters too. PrismML's M5 Pro figure is for PQ2_0 on their fork, and the tester's 22.3 was Q2_0. On an H200, the model card has stock llama.cpp decoding Q2_0 at 109 tokens per second against 150 on the fork.
At 22 tokens per second with xhigh thinking, a single agent step can take minutes. The same tester reported building a small browser game in 18 minutes and about 24,000 tokens.
Where it falls over
- The 5.9 GB headline needs a forked runtime. On stock llama.cpp you are running a 7.6 GB file.
- The long context is expensive. PrismML estimates the cache at 64 KiB per token, so the full 262K window costs about 16 GiB on top of the weights. On a 24 GB machine, stay near 32K.
- No independent benchmark run exists. eesel's review says so and says its author did not run the model either.
lowreasoning effort is unsupported, andxhighis slow on a laptop.- The MLX build is text-only.
Who should try it this week
Try it if you need a coding agent that never leaves your machine: client code under NDA, air-gapped work, a long flight. Start with the Q2_0 file on stock llama.cpp at medium effort, with one small, well-specified task.
Skip it if you were hoping to replace a hosted frontier model. The one outside long-horizon test so far had it at five of eight where Opus 5.5 got eight. If it works for your tasks, the 5.93 GB file and the fork are worth the extra build step.
Found this helpful? Share it with others!