Back

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.

12 min readBy SpecPilot Team
local-llmai-codingllama-cppopen-weightsdeveloper-tools
A 5.9 GB Coding Model Claims 75.6 on SWE-bench Verified. How to Run Bonsai 2.5 Locally, and What Testers Found.

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.

Cover slide: "A coding model in 5.9 GB." Bonsai 2.5 plus your laptop. How to run PrismML's ternary 27B model locally, and what early testers found

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.

Slide 2: what Bonsai 2.5 is. A squeezed Qwen at 1.76 bits per weight, 5.93 GB down from 53.8 GB; the headline claim of 75.6 on SWE-bench Verified is PrismML's own number and the base scores 80.6; Apache 2.0 weights released Nov 24

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.

Slide 3: pick the right file. Q2_0 at about 7.6 GB runs on stock llama.cpp build b11556 or newer; PQ2_0 at about 7.2 GB needs PrismML's fork and is their pick for Apple Silicon; PTQ1_0 at 5.93 GB is fork only and fastest on NVIDIA GPUs

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.

Slide 4: run it in 3 steps. Download the Q2_0 gguf from PrismML's Hugging Face repo, start llama-server with -ngl 99, -c 32768 and -np 1 on port 8080, then point any OpenAI-compatible agent at localhost:8080/v1

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.

Slide 5: 3 settings to get right. Reasoning defaults to xhigh, so allow about 16K output tokens; medium gives shorter answers and low is not supported; -np 1 took a 10 GB RTX 3080 from 9.5 to 7.8 GB in one user report

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.

Slide 6: what testers saw. About 22 tokens per second on a 24 GB M5 Pro Mac mini, another tester saw 7 to 8; one tester's own 8-task run had Bonsai pass 5 where Opus 5.5 passed all 8; testers report long thinking even on the low setting

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.

Slide 7: save this for your next offline build. On specpilot.dev: every benchmark against the full model, speed by hardware marked vendor or tester, and copy-paste commands per platform

Which file, which runtime

All three files are in the GGUF repo on Hugging Face. Sizes are from PrismML's docs.

FileSizeLoads inUse it when
Ternary-Bonsai-2.5-27B-Q2_0.ggufabout 7.6 GBUpstream llama.cpp, b11556 or newerYou want the least setup
Ternary-Bonsai-2.5-27B-PQ2_0.ggufabout 7.2 GBPrismML fork onlyApple Silicon, and you will build or download the fork
Ternary-Bonsai-2.5-27B-PTQ1_0.gguf5.93 GBPrismML fork onlyNVIDIA 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 16384

For 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.

HardwareDownloadBinary
NVIDIA GPUTernary-Bonsai-2.5-27B-PTQ1_0.gguf./build/bin/llama-cli or llama-server
Apple SiliconTernary-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.

SettingThinking (default)Non-thinking
temperature1.00.7
top_p0.950.80
top_k2020
min_p0.00.0
presence_penalty0.01.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.

BenchmarkQwen3.8 27B fullGSQ-RCO IQ2_SUnsloth UD-IQ2_XSBonsai 2Bonsai 2.5
Size (GB)53.89.37.65.935.93
SWE-bench Verified80.675.471.860.875.6
Terminal-Bench 2.170.859.653.952.860.1
DeepSWE30.122.617.70.027.0
Coding average (3)60.552.547.837.954.2
AppWorld93.282.889.651.290.5
BFCL v470.867.766.264.467.2
Tool-calling average (5)77.774.175.367.077.2
LiveCodeBench v687.6--83.883.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

HardwareFileTokens/sSource
NVIDIA H100PTQ1_0186 plain, 282 with speculative decodingPrismML
RTX 5090PTQ1_0163 to 174 plain, 305 with speculative decodingPrismML
RTX 4090PTQ1_0111 plain, 204 with speculative decodingPrismML
Apple M5 ProPQ2_030.2PrismML
Apple M4 ProPQ2_022.9 plain, 25.3 with speculative decodingPrismML
Core Ultra laptop, integrated GPUPTQ1_011.1 plain, 23.1 with speculative decodingPrismML
M5 Pro Mac mini, 24 GBQ2_022.3Hacker News tester
Mac mini, 24 GBnot stated7 to 8Hacker News tester
8-core CPU, 15 GB RAM, no GPUQ2_03.3Third-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.
  • low reasoning effort is unsupported, and xhigh is 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!

Be first to know what's changing in AI-assisted development

A weekly note on new tools, ways of working, and tutorials worth your time. No spam, leave any time.

Used only for this newsletter. See the privacy policy.