PrismML's compressed open model, retrained for agents, now scores 75.6 on a coding test
In short
- On 24 November 2026 PrismML, a company started by Caltech researchers, released Ternary Bonsai 2.5 27B, a retrained version of its Ternary Bonsai 2 27B from September. It is still Alibaba's open Qwen3.8-27B with almost every weight stored as −1, 0 or +1, in a 5.93 GB file against 53.8 GB for the 16-bit original.
- What changed is agent work: using tools and fixing code over many steps. On SWE-bench Verified, PrismML's own run puts it at 75.6, up from 60.8 for Bonsai 2 and against 80.6 for the full-size model.
- On five tool-calling tests it averages 77.2 against 77.7 for the full model, according to PrismML's whitepaper.
- The weights are free to download under Apache 2.0. PrismML ran every test itself; nobody else has published a check.
75.6 SWE-bench Verified, up from 60.8 (PrismML); 77.2 tool-calling average; full model 77.7; 5.93 GB the PTQ1_0 file, 1.76 bits per weight; 282 tokens a second on one H100 with MTP
How open it is
The model sits in a public Hugging Face repository with no access form, as GGUF files for llama.cpp, with a text-only MLX build for Apple devices. Both carry the Apache 2.0 licence, as does the Qwen3.8-27B base. In plain words (our summary), anyone may use, change, fine-tune and sell products built on it, as long as the licence and copyright notices travel with it. The NOTICE file asks, without requiring it, for credit such as "Created using Bonsai by Prism ML."
As with Bonsai 2, PrismML publishes the weights and the runtime, not the recipe: the whitepaper describes the results and kernels, not how the model was retrained (our reading). That makes it open-weight rather than open source.
Sizes are the repository's byte counts in decimal gigabytes (our conversion). The model keeps the base model's 262K-token context and reads text and images. The card warns that stock llama.cpp builds older than b11556 "load Q2_0 without any warning and produce garbage".
What "agentic coding" means, and why compression hurt it
An agent is a model that acts, not just answers: it runs commands, calls tools, reads the result and decides the next step. In SWE-bench Verified the model is handed a bug from a real software project and must change the code until the project's tests pass; PrismML ran all 500 tasks. Terminal-Bench 2.1 (89 tasks) has it work in a command line, and DeepSWE (113 tasks) is a harder set of repository jobs. (These descriptions are ours, from the whitepaper's setup notes.)
These long tasks are where squeezing a model hurts most, PrismML writes, "because one bad action can derail a long episode". Bonsai 2 kept 63% of the full model's average on the three coding tests and did not solve a single DeepSWE task. Bonsai 2.5 keeps 90%, PrismML says.
The whitepaper compares seven builds of the same Qwen model (four are shown here), all run by PrismML in "thinking" mode at the highest reasoning effort, one attempt per task, on NVIDIA H100 GPUs:
IQ3_XXS is a conventional low-bit build of the same model (GSQ-RCO), 1.7 times larger than Bonsai 2.5; it stays ahead on Terminal-Bench 2.1 and on the coding average. In AppWorld, where the agent writes code against the APIs of nine everyday apps, another conventional build (IQ2_XS, 8.4 GB) scores only 46.5: in about one task in five, PrismML says, it guesses every API call and marks the task done before seeing any output.
Every score here is PrismML's own. The Bonsai 2 figures were re-measured with a changed setup (a new simulated user for τ-Bench, native tool calls for BFCL v3), and the whitepaper says the tool-calling figures "are not comparable with the Bonsai 2 report". PrismML's own limitations section says Terminal-Bench 2.1 is where it is furthest from the full model, and that work running for hours has not been measured.
The agent training did not come free everywhere. On 14 general tests (knowledge, maths, coding, instruction following, vision), Table 4 of the whitepaper averages Bonsai 2.5 at 82.12 against 84.32 for the full model; the text beside it gives 82.3 and 84.4. On LiveCodeBench v6 it slipped from 83.8 for Bonsai 2 to 83.0.
Speed, per PrismML
The main runtime change is a multi-token prediction (MTP) draft head: one extra layer that guesses the next few tokens, which the full model then checks in a single pass, keeping only what it would have written anyway. PrismML says this speeds up writing by 1.5 to 1.8 times on NVIDIA cards with output that matches plain decoding "up to rounding noise". The NOTICE file says the head started from Bonsai 2 27B's draft head, itself initialised from Qwen3.8-27B's own MTP head, and was fine-tuned by PrismML.
The launch post quotes 291 tokens a second on one H100 and 3,200 a second for reading a 2,000-token prompt. In the whitepaper's Table 6 those are the figures with "kernels in testing", a runtime update still in validation. With the released runtime and MTP on, the H100 figure is 282, and prompt reading with MTP on drops to 2,151, because the head makes its own pass over the prompt. On an RTX 4090 the post's 204 tokens a second is the same with or without the new kernels.
Smaller devices, all PrismML's measurements:
On stock llama.cpp, the Q2_0 file gives the same text as PrismML's runtime and runs at 109 tokens a second on an H200, against 150 on PrismML's fork.
Where things stand
The release is PrismML's third 27B model since July:
14 Jul 2026: PrismML announces Bonsai 27B, ternary at 5.9 GB and 1-bit at 3.9 GB. 17 Sep 2026: Ternary Bonsai 2 27B moves to Qwen3.8-27B, with no draft head. 15 Oct 2026: Ternary Bonsai 2 2B, 4B and 9B follow, built on Qwen3.5. 24 Nov 2026: Ternary Bonsai 2.5 27B, same format and size, retrained for agents and shipped with an MTP head.
PrismML says the next release will target the long-horizon work it has not yet measured, such as machine-learning engineering (MLE-bench) and harder repository tasks (SWE-bench Pro). Read in late November 2026, the open question is the same as in September: whether the scores hold when someone other than PrismML runs them.
Terms in plain English
- Ternary weights: each learned number is stored as −1, 0 or +1, with one shared scale per group of 128.
- Agentic: a model that takes actions over many steps (runs code, calls tools) rather than giving one answer.
- Draft head (MTP): a small add-on that guesses upcoming words so the main model can confirm several at once.
- Open weights: the trained model can be downloaded and run; the training recipe need not be public (our wording).
Sources
- Introducing Ternary Bonsai 2.5 27B: Powering Agentic Coding and Private Knowledge Work, PrismML, 24 November 2026
- Ternary Bonsai 2.5 27B whitepaper, PrismML, November 2026
- prism-ml/Ternary-Bonsai-2.5-27B-GGUF, model card and NOTICE file, Hugging Face (PrismML)
- prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit, Hugging Face (PrismML)
Sources
- Introducing Ternary Bonsai 2.5 27B
- Ternary Bonsai 2.5 27B whitepaper
- prism-ml/Ternary-Bonsai-2.5-27B-GGUF
- prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit
- https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF/blob/main/NOTICE.txt
- https://github.com/PrismML-Eng/llama.cpp
More from Open Models
- Google DeepMind releases CellGemma, an open model of how cells respond to drugs
- Hugging Face's 2026 releases are mostly open tools, with no new flagship model
- Cloudflare releases five open-weight AI models, all built on Alibaba's Qwen
- PrismML released seven open 1-bit and ternary model families in 2026
- BharatGen, the IIT Bombay consortium, releases a free 7.8B document-reading model