Ternary Bonsai 2.5 27B packs a 27B coding model into a 5.9 GB download. Here's how to run it locally, what hardware you need, and where the benchmarks don't hold up.
Vamsi Tallapudi
Manager, Architect Technology at Cognizant
Ternary Bonsai 2.5 27B is a 27-billion-parameter coding model from PrismML that PrismML compresses down to roughly 5.9 GB using ternary weights, small enough to run on a laptop GPU or an 8 GB Mac, while scoring 75.6 on SWE-bench Verified. It shipped on November 24, 2026, under an Apache 2.0 license, and it's built specifically for agentic coding: editing files, running tests, calling tools, and sticking with a task across dozens of turns instead of answering one prompt and stopping.
I've spent the last day going through the release notes, the Hugging Face card, and the Hacker News thread that formed around it. Here's what it actually is, what it costs you to run, and where the marketing numbers start to wobble.
It's a ternary quantization of Qwen3.8 27B, PrismML's base model of choice. "Ternary" means every weight gets squeezed into one of three values: -1, 0, or +1. That works out to about 1.7 bits per weight instead of the usual 16, which is how a 27.36-billion-parameter model (24.35B language backbone, 2.54B embeddings and LM head, plus a 0.47B vision tower) ends up small enough to fit on hardware that would never touch the full-precision version.
For context: the FP16 version of this same model is around 54 GB. Bonsai 2.5 claims to retain 94.6% of that model's performance across 15 benchmarks while using about a ninth of the memory. That's the whole pitch, and it's a genuinely hard engineering problem. PrismML isn't new at this either — Bonsai 2.5 follows the original Bonsai 27B and Bonsai 2 27B, plus a family of smaller 2B/4B/9B ternary models the company shipped for phones and wearables.
The company itself is worth a sentence: PrismML spun out of Caltech, led by CEO Babak Hassibi, a Caltech professor whose research background is in compression. It's backed by Khosla Ventures, Cerberus, and compute grants from Google and Caltech. This isn't a side project from a model-of-the-week shop — compression is the actual thesis.
The honest answer: agentic coding got a lot better, and everything else stayed roughly flat. Here's PrismML's own benchmark table, compared against the full-precision FP16 base model for reference.
| Benchmark | Bonsai 2.5 | Bonsai 2 | FP16 Qwen3.8 27B |
|---|---|---|---|
| SWE-bench Verified | 75.6 | 60.8 | 80.6 |
| AppWorld | 90.5 | 51.2 | 93.2 |
| Terminal-Bench 2.1 | 60.1 | 52.8 | 70.8 |
| DeepSWE v1.1 | 27.0 | 0.0 | 30.1 |
That AppWorld jump (51.2 to 90.5) and the DeepSWE score going from a flat zero to 27.0 tell you where the previous version actually fell apart: multi-step tool use. Bonsai 2 wasn't bad at single-shot code generation, it just lost the thread after a handful of tool calls. PrismML says 2.5 completes tasks in fewer turns and fewer tokens, which lines up with a Hacker News commenter who reported their custom bug-fixing benchmark finished 29% faster than on v2.
Don't take the "94.6% of FP16" headline at face value, though. Per-category, agentic coding specifically sits at 54.2 for Bonsai 2.5 against 60.5 for the FP16 model, a real gap, not a rounding error. And a third-party comparison from OrcaRouter found a bigger (10.1 GB) IQ3_XXS quantization actually beats Bonsai 2.5 on both Terminal-Bench (66.3 vs 60.1) and agentic coding (55.5 vs 54.2). Smaller isn't automatically better here. If you have the extra 4 GB of VRAM to spare, it's worth grabbing both and comparing on your own workload.
| Setup | What you can run | Notes |
|---|---|---|
| 8 GB VRAM GPU | PTQ1_0 at ~4K context | Tight; works, per Hacker News reports on an RTX 4060 |
| 12 GB VRAM GPU | PTQ1_0 at ~8K context | PrismML's recommended minimum |
| 16 GB+ VRAM / unified memory | Full 262K context | Comfortable headroom |
| Apple M5 Pro (Metal) | ~26 tok/s generation | 393 tok/s prompt processing |
| Apple M5 Max (Metal) | ~44 tok/s generation | 830 tok/s prompt processing |
The context window is 262,144 tokens, which is enormous for a model this size, but don't expect to use all of it on 8 GB. KV cache overhead adds up fast: roughly 8.4 GB just to load the model at 4K context, climbing to about 12.8 GB at the full 262K window even with 4-bit KV cache. One Hacker News commenter put it bluntly: 24 GB of system RAM "severely limits usable context," and they'd upgraded to 48 GB just to do real agentic work with it. Raw tokens-per-second is the number everyone quotes, but usable context is the number that actually determines whether you can run a real coding session.
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF \
Ternary-Bonsai-2.5-27B-PTQ1_0.gguf --local-dir .
./build/bin/llama-server -m ./Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \
--alias bonsai-2.5-27b --jinja -ngl 99 -fa on -c 32768 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
--host 127.0.0.1 --port 8080
ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
LM Studio and vLLM both support the Q2_0 build directly too. Apple Silicon users get a dedicated MLX export for Metal.
Watch your sampling settings. Greedy decoding (temperature 0) can send this model into an infinite loop — stick with the recommended temp 1.0, top-p 0.95, top-k 20, min-p 0. And give it room to think: a short generation limit can cut off the reasoning trace mid-thought, so pair a 32K context with at least a 16K output budget if you're doing agentic work.
Both, with an asterisk. The real-world reports I found are more convincing than the benchmark table. Someone running it on a Mac Mini M5 Pro got 22-25 tokens/second with 128K of context loaded, which is a genuinely usable setup for agentic coding on a $600-ish machine. Another commenter got 16.8 tok/s out of an 8 GB RTX 2060 Super at 32K context, which is a six-year-old budget GPU running a 27B-class model.
That said, Hacker News has its share of people rolling their eyes at the benchmark framing, with one commenter joking that "my neighbour's cat scored equivalent to Opus 4.6 this week" as a jab at how inflated these launch-day numbers tend to be. Fair point, Goodhart's Law applies to every model release, not just this one. The consensus seems to land here: full-precision Qwen3.8 27B is still better quality, but it's slower and needs real VRAM to run comfortably. Bonsai 2.5 trades some of that ceiling for something that actually fits on hardware you already own.
If you want a faster model and don't need the full 262K context, Inkling 2 Mini gets compared against Bonsai a lot on Hacker News. It's quicker but caps out at 16K context, so the right pick depends entirely on whether your workflow needs long context or raw speed.
If you've already got Qwen3.8 27B running locally and 16+ GB of VRAM, I wouldn't bother downgrading to Bonsai 2.5 just to save disk space. But if you're on a laptop, a Mac Mini, or an 8 GB card and you'd otherwise be stuck with a much smaller model, this is a real option now in a way Bonsai 2 wasn't. The agentic coding jump is the actual story here, not the file size. The file size is just what gets it onto your machine in the first place.
The fork requirement is the thing I'd flag loudest before you spend an afternoon on this. If you want zero friction, skip PTQ1_0 entirely and pull the Q2_0 build through Ollama. You'll give up maybe a gigabyte of disk space and probably a few tokens per second, and you'll save yourself a confusing hour debugging why your model outputs nonsense on a stock build.
New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.
fast-anything profiles your Python or Node app, has Claude Code port the slowest function to Rust, and verifies it against 500 real calls before swapping it in.
Ladybird's first public alpha (build 2026.47.7) is live for macOS and Linux. Here's how to install it and test your site in its from-scratch engine.
GLM-5.4 loops 28 of its 78 layers twice instead of adding parameters. Here's what Z.ai's architecture, vision support, and 50% bigger coding plan quota actually mean, with no API yet.
Comments