Back to Explore
NewsVibeFix editorialUpdated Nov 25, 2026

A 27B Model in 5.9 GB: PrismML's Ternary Bonsai 2.5 Fixes Local Agents' Weakest Link

On November 24, 2026, PrismML released the ternary-weight Bonsai 2.5 27B: 1.76 bits per weight, 5.9 GB in total — under one-ninth of full precision. Tool calling averages 77.2, level with full precision; SWE-bench Verified rose from 60.8 to 75.6 and AppWorld from 51.2 to 90.5. The previous generation's blank on agentic tasks is fixed.

A real photograph of a MacBook Pro showing a code editor (illustrative photo, not a PrismML product screenshot)

On November 24, 2026, PrismML released Ternary Bonsai 2.5 27B. It is an upgrade to its own Ternary Bonsai 2 27B from September this year. The upgrade has a clear direction: make a locally run model better at agentic work — writing code, calling tools over many turns, and carrying long tasks through step by step. The size did not change: still 5.9 GB, still Apache 2.0 open source, still free to download.

First, what this model actually is. It is built on Alibaba's Qwen3.8-27B, with 27.36B parameters in total: 24.35B for language, 0.47B for the vision tower, and 2.54B for embeddings and the output head. What PrismML did was compress the weights of this 27B model into ternary form: every weight takes only one of three values, -1, 0, or +1. After compression, each weight averages 1.76 bits, and the smallest file of the whole model is 5.93 GB, against 53.8 GB for the full-precision original. One-ninth of the size, holding the same 27B model.

Ternary weights are not crude rounding. The model card describes the method: every group of 128 weights shares one FP16 scale factor, and each weight matrix is first passed through a Hadamard orthogonal rotation, moving it into a rotated basis before the ternary assignment; at inference time the activations get the matching transform, and the cost of the rotation is folded into the weights offline — no extra bits, no extra compute. One ternary value carries about 1.585 bits of information, and with the group-scaling overhead it works out to 1.76 bits per weight. The PrismML team came out of Caltech, backed at founding by Khosla Ventures, Cerberus, and Google, and later Samsung; for years they have worked on one problem: compressing neural networks without crushing their reasoning ability.

Why go to all this trouble to compress a model? Because running large models locally has always been a dilemma: want strong capability, go to the cloud, and your private files, code, and chat history all get uploaded, with usage fees on top; want to stay local, compress the model — and compression breaks capability, especially on agentic tasks. PrismML's own Bonsai 2 from September was a lesson in this: at launch it claimed 98.2% benchmark retention, yet on agentic tasks it fell apart — DeepSWE solved zero problems, a flat zero; AppWorld scored only 51.2, far from the full-precision model's 93.2. Version 2.5 is aimed squarely at that weakness.

Start with the bottom line. PrismML's official blog gives a seven-benchmark comparison table, with full-precision Qwen3.8-27B, Bonsai 2, and Bonsai 2.5 side by side. Across five tool-calling benchmarks, Bonsai 2.5 averages 77.2 against 77.7 for full precision — essentially level. Across three agentic coding benchmarks, Bonsai 2.5 averages 54.2 against 60.5 for full precision — 90% retained, where the previous generation kept only 63%. On general capability, sixteen benchmarks in five categories, Bonsai 2.5 scores 82.1 against 84.3 for full precision. Six of the seven benchmarks improved; only one dipped slightly. Same size, capability moved much closer to full precision — that is the whole point of 2.5.

Three agentic benchmarks: SWE-bench Verified, full precision 80.6, previous generation 60.8, new version 75.6; AppWorld, full precision 93.2, previous generation 51.2, new version 90.5; Terminal-Bench 2.1, full precision 70.8, previous generation 52.8, new version 60.1 (PrismML official blog, self-reported)

The biggest single move is AppWorld: from 51.2 to 90.5, only 2.7 points behind full precision's 93.2. AppWorld tests whether an agent can operate the APIs of nine everyday apps by writing code; Bonsai 2.5 completes every task in a scenario 89.3% of the time, against 80.4% for the best conventional quantization, IQ3_XXS. The previous generation's problem was not "writing wrong code" but "not finishing the whole scenario"; this generation fixed the ability to follow a long task through to the end.

The other two coding benchmarks rose sharply as well. SWE-bench Verified went from 60.8 to 75.6, only 5 points behind full precision's 80.6 — this benchmark asks the model to fix bugs in real open-source repositories, 500 problems, with tests to pass; Terminal-Bench 2.1 went from 52.8 to 60.1, against 70.8 for full precision; DeepSWE went from 0 to 27.0, against 30.1 for full precision. The zero on DeepSWE says the most about the previous generation's problem: in long software-engineering tasks, one wrong step ruins everything, and the old version could not take a single step; this one reaches 27.0, or 90% of full precision.

The five tool-calling benchmarks deserve a closer look, because they hold 2.5's strongest claim. On τ²-Bench it scores 82.0, above full precision's 80.6; on τ³-Bench 73.9, above full precision's 72.8; on BFCL v3 native tool calls 72.6, above full precision's 71.2; on AppWorld 90.5; only BFCL v4 is 67.2, trailing full precision by 3.6 points. The five-benchmark average of 77.2 against 77.7 is basically full-precision level. PrismML's model-card claim is that this is the strongest agentic model under 10 GB. On its own comparison table, that claim holds — at least within the comparison group it lists.

Compare it with conventional low-bit quantization and the value of the ternary route becomes clearer. The same table lists three conventional builds: GSQ-RCO IQ3_XXS at 10.1 GB, IQ2_S at 9.3 GB, and Unsloth UD-IQ2_XS at 7.6 GB. Bonsai 2.5, at 5.93 GB, is the smallest of them, yet it leads every build under 10 GB on tool calling and agentic coding: 77.2 on tool calling against IQ3_XXS's 75.3, and the highest SWE-bench Verified score in the field at 75.6. Only IQ3_XXS, at 1.7x the size, edges ahead on the three-benchmark coding average, 55.5 against 54.2, on the strength of its Terminal-Bench 2.1 score. In other words, ternary weights are not "smallest and weakest" but "smallest and nearly best."

Conventional quantization has another flaw that scores do not show: it can fail in strange ways on some tasks. The model card gives an example: GSQ-RCO IQ2_XS scores 79.5 on τ²-Bench but only 46.5 on AppWorld — in about one task in five, it writes a long script that guesses every API call and marks the task complete before seeing any output. The average looks passable; in real use it is unreliable. Bonsai 2.5 does not have this problem, at least in the evaluations it published.

Speed matters too. The official blog's numbers: on a single NVIDIA H100, 291 tokens per second with multi-token prediction (MTP), processing a 2,000-token prompt at 3,200 tokens per second; on a consumer-grade RTX 4090, 204 tokens per second, with prompt processing at about 3,060 tokens per second. The model card adds that the MTP draft head speeds up decoding by 1.5–1.8x, and that decoding is 2.3–3.0x faster than on Bonsai 2's launch day on six of the seven NVIDIA GPUs measured, reaching about 300 tokens per second on H200 and B200. For locally run agents this speed is enough: the bottleneck is usually not generation speed but the round trip of the model calling a tool, waiting for the result, and thinking about the next step.

Where it runs is the most practical part of 2.5. NVIDIA and Intel GPUs run through llama.cpp; Apple devices (Mac, iPhone, iPad) run through MLX. Context length is 262K tokens, enough to hold a large repository's context. Three packings cover three situations: PTQ1_0 is the smallest file at 5.93 GB and the fastest decode on NVIDIA GPUs, but it needs PrismML's own llama.cpp fork, with upstream merging still under review; PQ2_0 is the format benchmarked on Apple Metal and the source of the MLX export; Q2_0 runs on stock llama.cpp, but requires build b11556 or newer. The model card warns explicitly: older stock builds load Q2_0 without any warning and produce garbage, so check your build first.

The inference settings take some care as well. The model defaults to xhigh reasoning effort, the most accurate setting; medium trades some accuracy for shorter responses, and low is unsupported — selecting it behaves close to xhigh. The recommended sampling parameters are temperature 1.0, top_p 0.95, top_k 20, min_p 0, with a reminder that llama.cpp applies min_p 0.05 by default, so pass --min-p 0 explicitly. Two details in the launch command matter: -n 16384 leaves room for the thinking trace, since a small cap ends generation mid-thought; and for one request at a time on a GPU with limited VRAM, add -np 1 to limit the server to one parallel slot — a community report on an RTX 3080 10 GB measured about 9.5 GB of total GPU memory use before adding -np 1 and about 7.8 GB afterward.

This release also explicitly fixes two flaws of the previous generation: excessive thinking and repetitive loops. The official blog's wording is that 2.5 completes tasks in fewer turns, uses fewer tokens, and delivers results faster and more accurately. For agents, turns and tokens are money and time: a task that used to take twenty tool calls now takes fifteen, saving not just tokens but the waiting time for the model to think through each next step. This is the part of the upgrade most easily hidden by benchmark scores and most keenly felt in real use.

Privacy is the release's other selling point, and the positioning PrismML keeps stressing: private knowledge work. A coding assistant works through issues in a private repository, a document application prepares reviewable summaries locally, a desktop assistant handles recurring analysis — sensitive material never leaves the user's device. The blog's demo follows exactly this pattern: reproducing and fixing a pytest regression locally, from the initial request through intermediate decisions to the final result, all on-device. For teams handling client code, internal documents, or financial data, "no upload" is itself a feature.

But read this scorecard on its own terms. First, every number is PrismML's own; the whitepaper documents the evaluation method, but there is no independent reproduction, and seed counts and rollout counts are not disclosed. Second, one of the seven benchmarks regressed: LiveCodeBench v6 dipped from 83.8 to 83.0, against 87.6 for full precision, so general coding ability still lags. Third, BFCL v4 trails full precision by 3.6 points and Terminal-Bench 2.1 by 10.7 points — long terminal tasks remain the biggest gap. Fourth, one evaluation detail needs care: the simulated customer behavior in τ³-Bench changed after the September report, so cross-generation comparisons use the re-measured values in the new whitepaper; the old numbers cannot be compared directly.

Some boundaries against this site's earlier coverage. First, cycle 250's Qwen4-Max article was about Alibaba's autoregressive flagship release; Bonsai 2.5 is built on Qwen3.8-27B, but the story is entirely different: that article was about "a bigger model," this one is about "shrinking a model to run locally." Second, cycle 249's SWE-2.1 article was about Cognition's coding model running in the Devin cloud; Bonsai 2.5 is about local open weights — one in the cloud, one on your machine. Third, cycle 250's Claude Ship article was about Anthropic's product for reviewing and approving code; Bonsai 2.5 is about the model itself writing code and calling tools — one manages the workflow, the other does the work. Fourth, Bonsai 2 from September never got an article on this site, so this is the Bonsai line's first appearance here.

For vibe coding readers, the significance of Bonsai 2.5 is direct: the bar for local agents just dropped. Running a coding agent locally used to mean either tolerating a weak small model or uploading your code to the cloud; now a 5.9 GB file, loaded onto a laptop with a discrete GPU or a Mac, delivers 90% of a full-precision 27B model's agentic ability. For independent developers, that means private projects, client code, and not-yet-public ideas can be handed to an agent without going to the cloud; for small teams, it means agent workflows can be running before buying any cloud inference credits.

Getting started is straightforward if you follow the model card. Download the weights first: one hf download command fetches the PTQ1_0 file; then run it with PrismML's llama.cpp fork in one llama-cli command — -ngl 99 to offload everything to the GPU, -c 32768 for context, temperature 1.0, top_p 0.95, top_k 20, min_p 0. For stock llama.cpp, use the Q2_0 file instead, after confirming your build is b11556 or newer. On Apple devices, go through MLX; the Apple package is about 8.9 GB according to 9to5Mac. Once it is running, do not wire it into production right away: reproduce a pytest regression you already know, watch how it goes about fixing the bug, and only then decide whether to bring it into your daily workflow.

Why ternary weights hold up better than conventional quantization on agentic tasks is worth a sentence on the mechanism. Conventional quantization rounds each weight to the nearest rung on a 2-bit or 3-bit ladder, and the error is truncation-style: invisible on short tasks, it compounds along a chain of tool calls until one wrong step ruins everything. Ternary weights take a different road: the weight matrix is first rotated into a Hadamard basis, where weights naturally cluster near -1, 0, and +1, and only then assigned ternary values, so the error itself is smaller; at inference the activations get the matching transform, with the rotation cost folded in offline. Put simply, conventional quantization is "hard squeezing," while ternary is "turn around, then squeeze" — and after turning, squeezing loses less. That is why Bonsai 2.5 keeps 90% of agentic ability at 1.76 bits while conventional 2-bit quantization stumbles on the same tasks.

One more mechanism inside the speed numbers deserves its own note: multi-token prediction (MTP). The MTP variants of Bonsai 2.5 carry a draft head that guesses several tokens at once during decoding, and the main model verifies them in one pass — keeping the correct guesses, discarding the wrong ones. The model card says this speeds up decoding by 1.5–1.8x. The blog's H100 figure of 291 tokens per second was measured with MTP on; it runs without MTP too, just slower. For agentic work, MTP matters beyond raw speed: every round of an agent waits for the model to finish thinking about the next step, so decoding twice as fast shortens the whole task's wall-clock time and makes the tool-call round trips feel less sluggish.

Do not overlook vision either, even though this release is about agentic coding. The Qwen3.8-27B base already carries a 0.47B vision tower, and Bonsai 2.5 keeps it — the tower ships separately as an mmproj file, loaded only for image input, so text-only serving never pays for it. In other words, this 5.9 GB model is not just a text agent; it can also read images — a screenshot, a table, an interface — at least in principle. To be clear, though, this release's evaluations focus entirely on agentic coding and tool use; vision scores are not listed separately, so how much vision survived compression will need later evaluation.

Run the deployment math and the meaning of 5.9 GB becomes concrete. Full-precision Qwen3.8-27B needs 53.8 GB — no single consumer card can hold it; you need datacenter cards or multi-GPU setups. The PTQ1_0 build of Bonsai 2.5 needs only 5.93 GB; a 24 GB RTX 4090 holds it with plenty of VRAM left for the KV cache and context; a Mac with Apple silicon needs only about 9 GB of unified memory. For individual developers, that drops the hardware bar for local agents from "a datacenter card" to "the machine already on your desk."

Each of the previous generation's two flaws is worth a concrete picture, so they are not just nouns. Excessive thinking looks like this: a task that needs three steps gets five minutes of self-doubt first, pages of reasoning, and only then action — turns and tokens burned on "thinking." Repetitive looping looks like this: a tool call returns an error, the model retries the same call unchanged, fails again, retries again, burning through the context until it is gone. Version 2.5's improvement, in the official blog's words, is fewer turns, fewer tokens, faster and more accurate results. Whether those two flaws are truly fixed cannot be seen in the scores — you have to run a multi-turn tool task yourself to know. That is also the first thing independent evaluation should check.

The first day's reception is worth recording. 9to5Mac covered it the same day, November 24, confirming the six-improved-one-dipped picture and the roughly 8.9 GB Apple package; the PR Newswire release stated the positioning plainly: stronger agentic coding and multi-turn tool use for private knowledge work. Blog and press release tell the same story, with no double accounting — which means the official blog's numbers are this release's formal statement, with no need to cross-check against another channel.

Finally, the company behind the model, so the story is not just about weights. PrismML grew out of a Caltech team, founded with support from Khosla Ventures, Cerberus, and Google, with Samsung joining later. Its business has always been compression: how to shrink a neural network without shrinking its reasoning. Bonsai is the product line for that mission — version 2 in September, 2.5 in November. Knowing the company helps read its roadmap: it is not chasing the biggest model, but the strongest model per unit of size. Version 2.5's scores are a provisional answer to whether that direction works.

Three things are worth watching next. First, independent evaluation: will anyone reproduce different scores on their own machines, especially on AppWorld and DeepSWE, where the gains are largest? Second, upstream merging: when will PTQ1_0 land in stock llama.cpp, so ordinary users no longer need PrismML's fork? Third, the next generation: 2.5 fixed the agentic weakness — will the next version reach for vision or longer context? The Qwen3.8 base already carries a vision tower, and vision survived ternary compression as a side effect; whether it becomes a headline feature is worth watching. For anyone who wants to try it now, the answer is simple: download 5.9 GB, run it, and see how it does on your own tasks.

Views 0Comments 0

Comments (0)

ME
0/1000
Loading comments...

Sources

Browse projectsPublish your project

Related articles

Real photograph of a gallery wall covered with framed illustrated posters (illustrative photo, not a SenseNova generated image)
News
A Model That Fixes Its Own Pictures: SenseTime Open-Sources SenseNova U1.6

On November 24, 2026, SenseTime open-sourced SenseNova U1.6, an 8B unified visual model that proofreads its own pictures: UltraTextBench dense infographics rise from 86.04 to 92.28 with self-correction on. Apache 2.0 weights, ComfyUI support on day one — but 35 GB of weights, 24 GB of VRAM, and vendor-only numbers so far.

Product LaunchModel UpdatesOpen-source Projects
A real photograph of a data center corridor lined with server racks (illustrative photo, not an NVIDIA product screenshot)
News
No More One Token at a Time: NVIDIA's Sigma Turns Language Models into Continuous Diffusion

Weights landed November 12, 2026 and the public announcement followed on November 16: NVIDIA released Sigma, the first large-scale continuous diffusion language model family, with 14 checkpoints at 3B and 8B. Its six-task average of 71.16 beats same-size discrete diffusion and autoregressive baselines, the distilled version matches its 256-step teacher in 8 steps, and self-speculative decoding runs up to 4.2x faster — but context is only 4K and all scores are NVIDIA's own.

Product LaunchModel UpdatesOpen-source Projects