A 27-billion-parameter model normally needs about 54 GB of memory just to hold its weights. PrismML has squeezed one into a 5.93 GB file, and on the company's own tests it calls tools almost exactly as well as the original. I think that figure matters more than the size, because a local agent that fumbles its tool calls is useless however small it is.
My take, in one line: I'd use Ternary Bonsai 2.5 27B for a local tool-calling agent, not for coding. The reasons sit in PrismML's own benchmark table, and they are worth reading closely before you download anything.
What PrismML actually released
Ternary Bonsai 2.5 27B is a compressed copy of Qwen3.8-27B, the open model from Alibaba's Qwen team. PrismML did not train a new model from scratch. It took Qwen's weights and stored them in a far smaller format, and pitches the release at agent work: calling functions, using tools and following multi-step tasks. The model card lists a 262K-token context window, a thinking mode that is on by default, an optional vision add-on and a small draft head for speculative decoding (a trick where a cheap predictor guesses the next few tokens and the main model checks them in one pass, which speeds up output).
The model's files were updated on Hugging Face on 24 November. It follows Bonsai 2 27B, which PrismML launched in September with the claim that it kept 98.2% of the full model's aggregate score at 5.9 GB.
The company behind it is small but not anonymous. PrismML is based in Pasadena, says it grew out of a team of Caltech researchers, and names Babak Hassibi as founder and CEO. Its announcement lists Khosla Ventures, Cerberus and Google as early backers, with Samsung supporting it since. That matters for one reason: this is a specialist compression lab, not a frontier lab, and every benchmark on the card is theirs.
Ternary weights, in plain words
A model is mostly a very large table of numbers called weights. In the full-precision version each weight is a 16-bit number, which can take tens of thousands of distinct values. Ordinary quantisation (rounding those numbers to fewer bits to save memory) usually stops at 4 bits, which gives you 16 possible values per weight and roughly a quarter of the size.
Ternary goes much further. According to the card, each weight in Bonsai can only be one of three values: minus one, zero or plus one. Every group of 128 weights shares a single 16-bit scale factor that says how big "one" is for that group. Before the weights are rounded, each matrix is rotated with a Hadamard transform, a standard maths step that spreads outlying values evenly so that fewer of them get crushed by the rounding. The result averages out at 1.76 bits per weight, against 16 for the original.
Think of it as storing every weight as "push", "pull" or "ignore", with one shared volume knob per block of 128. You lose nuance on each weight, and the bet is that a 27B model has enough weights that the nuance mostly comes back in aggregate. The card does not say exactly how the conversion was done (whether it involved retraining or was applied after training), and it refers you to the whitepaper for the format. I'd treat that as an open question rather than guess.
What the numbers say, and what they don't
PrismML's reported results, all run in thinking mode at the highest reasoning effort, compare Bonsai 2.5 with the full 16-bit Qwen model:
Agentic tool calling (average of five benchmarks): 77.2 against 77.7
General capability (16 benchmarks): 82.1 against 84.3
Agentic coding (average of three benchmarks): 54.2 against 60.5
SWE-bench Verified: 75.6 against 80.6
Terminal-Bench 2.1: 60.1 against 70.8
The tool-calling gap is half a point, which is inside the noise of most agent benchmarks. Read that as "no measurable loss". The coding gap is a different story: five points on SWE-bench and more than ten on Terminal-Bench, the test that checks whether a model can drive a shell to finish a real task. That is where a compressed model starts making the mistakes you notice, such as a wrong flag, a missed file or a loop that never ends.
The card also includes two rival compressions of the same base model, and most of you will care more about that comparison. Unsloth's UD-IQ2_XS file, at 7.6 GB, scores 75.3 on tool calling. A 3-bit GSQ-RCO file at 10.1 GB also scores 75.3 on tool calling, but beats Bonsai on coding at 55.5. So on PrismML's numbers, Bonsai has the smallest file in the table and the best tool-calling score, while a file nearly twice its size is slightly better at code.
Now the caveat. Nobody outside PrismML has reproduced these scores yet, as far as I could find. The demo repository has a folder for community benchmark submissions, and the one community report on the model page so far is about memory use, not accuracy. The card does not name its evaluation setup either. None of that makes the numbers wrong. It means they are a vendor's numbers about its own product, measured on a setup you cannot yet rerun, and I would want one independent tool-calling run before I built anything customer-facing on them.
The hardware you need
PrismML gives no official minimum, but the card does give some numbers. The smallest file is 5.93 GB. One user on an RTX 3080 with 10 GB of video memory measured about 9.5 GB in use, which fell to about 7.8 GB (desktop included) after limiting the server to one parallel slot with -np 1. PrismML has since added that tip to the card. My estimate, and it is an estimate, is that a 10 to 12 GB card handles single-user work comfortably at moderate context lengths, and that long contexts will need more.
On speed, PrismML reports 112 tokens per second on an RTX 4090 and 163 on an RTX 5090 for the smallest file. On an Apple M5 Pro the card lists about 30 tokens per second through llama.cpp (for the PQ2_0 file), and 21.7 through the separate MLX build for Apple Silicon. Thirty tokens a second is perfectly usable for an agent that calls a tool, waits and reads the result. It will feel slow if you want long essays, especially as thinking mode writes its reasoning out first.
If you read our piece on running a 145B model by streaming it from an SSD, Bonsai takes the opposite approach to the same problem. Edge0 keeps the model large and moves it in and out of memory. Bonsai shrinks it until it fits.
How to try it
There are three file types, and picking the wrong one will cost you an evening. The Q2_0 file runs on stock llama.cpp. The smaller PTQ1_0 and the PQ2_0 files need PrismML's own llama.cpp fork, because stock llama.cpp rejects them.
The quickest route on macOS or Linux, from the model card:
Install llama.cpp:
curl -LsSf https://llama.app/install.sh | sh(on Windows,winget install llama.cpp).Check the build with
llama-cli --version. It must be b11556 or newer. The card warns that older builds load Q2_0 without any warning and produce garbage, so do not skip this step.Start a local server:
llama serve -hf prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0On a GPU with 10 to 12 GB, add
-np 1when you run llama-server so it keeps one slot instead of four.
If you already use Ollama, the card gives a one-liner: ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0. LM Studio, Jan, Docker Model Runner and vLLM are listed as options too.
For the smallest file on an NVIDIA card, build PrismML's fork, then download and run it with the card's settings:
hf download prism-ml/Ternary-Bonsai-2.5-27B-gguf Ternary-Bonsai-2.5-27B-PTQ1_0.gguf --local-dir .
./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 16384Two of those flags matter more than they look. -n 16384 leaves room for long thinking traces, and --min-p 0 overrides llama.cpp's default of 0.05, which the card says to change. If you want a guided setup with a chat interface, the demo repository has setup scripts for macOS, Linux and Windows.
Limits and licence
The licence causes no trouble. The GGUF release is Apache-2.0, and the Qwen3.8-27B base model uses the same licence, so you can use it commercially, modify it and ship it in a product, provided you keep the licence and notices (the card includes a NOTICE file for upstream attribution). For a small business that wants a private assistant without per-token bills, that is about as permissive as it gets.
The practical limits are more interesting. The fastest formats live in a fork that has not been merged into llama.cpp (PTQ1_0 is under upstream review), so you depend on PrismML keeping its fork current. The low reasoning setting is not supported (only medium and the default, xhigh, are), so expect it to think before answering even simple requests, which costs time. The coding results are clearly weaker than the full model. And the accuracy numbers are unreproduced, as above.
Who should use it, and for what
I'd use it for a local tool-calling agent, not for coding. That covers more useful work than it sounds: an assistant that reads your inbox export and files invoices into a spreadsheet, a support triage bot that looks up orders through your own API, or a research agent that searches internal documents and summarises what it finds. All of those are mostly tool calls, and keeping them on your own machine means customer data never leaves it. Pair it with a local audio tool such as the open-source Inworld voice isolator and you can process calls end to end offline.
For coding, a 10-point drop on Terminal-Bench is too much to accept when the alternatives are cheap. Keep that work on a full-precision model, hosted or local, or on a setup built for it, such as the Qwen Pi adapter coding agent we covered recently.
A simple decision rule: if most of your agent's steps are "call this function with these arguments and read the answer", try Bonsai first and measure it on twenty of your own real tasks. If most steps involve writing or editing code, skip it for now. And if you have 16 GB or more of video memory to spare, test it against a standard 4-bit build of Qwen3.8-27B on those same twenty tasks before deciding, because a file more than twice the size may still be the better buy on your hardware.
I'd watch the community-benchmarks folder next. If an independent tool-calling run lands within a point or two of PrismML's 77.2, a 27B agent on a 10 GB card stops being a demo and becomes a sensible default for private, local automation.
Sources
Ternary-Bonsai-2.5-27B-GGUF model card, Hugging Face
KV Cache Tip (discussion #1), Hugging Face
Ternary-Bonsai-2.5-27B-mlx-2bit, Hugging Face
Qwen3.8-27B, Hugging Face
Bonsai-demo, GitHub

