On November 24, 2026, PrismML released the weights of "Ternary Bonsai 2.5 27B," an on-device AI model, under the Apache 2.0 license. Built on Alibaba's Qwen3.8-27B, the 27-billion-parameter model fits in about 5.9GB, the same size as the previous-generation Bonsai 2 27B, whose language model weights were released in September.

In PrismML's evaluations, the biggest gains came in operating simulated apps and in tasks that require editing files and repeatedly fixing code while checking test results. On single-shot code generation, the model scored slightly below its predecessor. The improvements are most pronounced in agentic tasks, where the model carries out multiple steps autonomously.

AD

AppWorld: the gap with the uncompressed Qwen shrinks sharply

According to PrismML's technical report, the performance gap with the uncompressed Qwen3.8-27B on AppWorld narrowed from 42.0 points to 2.7 points. AppWorld is a benchmark in which an AI model writes code to operate nine services that mimic everyday apps. The company evaluated 168 problems in the same execution environment and averaged the completion rates for individual tasks and for multi-step scenarios. The 16-bit floating-point (FP16) Qwen scored 93.2% and the previous generation 51.2%, while the new model reached 90.5%.

Code repair also improved substantially. On the 500 problems of SWE-bench Verified, which uses tests to evaluate fixes to real software repositories, the model rose from the previous generation's 60.8% to 75.6%. The uncompressed Qwen scored 80.6%. On DeepSWE 1.1, which evaluates 113 code-repair problems on a private test set, the new model scored 27.0% versus 0.0% for the previous generation and 30.1% for Qwen. All of these results used mini-SWE-agent, an agent execution environment that lets the model handle file operations and test runs.

On LiveCodeBench v6, which has the model solve single-shot programming problems, the new model scored 83.0%, against 83.8% for the previous generation and 87.6% for Qwen. On τ³-Bench, which involves multiple exchanges with a simulated customer, the new model's 73.9% topped Qwen's 72.8%. On BFCL v4, which evaluates repeated tool calls and memory management, however, its 67.2% fell short of Qwen's 70.8%.

PrismML says it focused on the ability to read the results of an operation and change course after a failure, as well as on suppressing repeated identical actions. Details of the training data and specific training methods have not been disclosed. Note that the way the simulated customer behaves in τ³-Bench and some other benchmarks has changed since the September technical report, so this article uses the values re-measured in the new report for comparisons with the previous generation.

Comparison with other quantized models based on the same Qwen

PrismML also compared the model with other low-bit quantized models built on the same Qwen3.8-27B. Performance was evaluated with vLLM on an NVIDIA H100, and the GGUF-format models used for comparison were expanded to BF16 to equalize execution conditions. The sizes in the table below are those of each model's distributed files, and the scores are averages over five tool-use benchmarks and three agentic-coding benchmarks.

Model / format File size Tool use Agentic coding
Qwen3.8-27B FP16 53.8GB 77.7% 60.5%
Bonsai 2 27B 5.93GB 67.0% 37.9%
Bonsai 2.5 27B 5.93GB 77.2% 54.2%
Unsloth UD-IQ2_XS 7.6GB 75.3% 47.8%
GSQ-RCO IQ2_S 9.3GB 74.1% 52.5%
GSQ-RCO IQ3_XXS 10.1GB 75.3% 55.5%

Compared with the Unsloth version, Bonsai 2.5 has a smaller file yet scores higher on both averages. GSQ-RCO IQ3_XXS, meanwhile, scores below Bonsai 2.5 on the tool-use average but recorded 66.3% on Terminal-Bench 2.1, which evaluates terminal operation, ahead of Bonsai 2.5's 60.1%. The uncompressed Qwen scored 70.8%, so a large gap remains on this evaluation. Which metric matters most depends on whether you want the model to repair code in a repository or run a sequence of operations in a terminal.

When comparing across different model families, the agent execution environment used in each evaluation also deserves attention. Thinking Machines Lab's Inkling 2 Mini is a mixture-of-experts (MoE) model with 26.4 billion total parameters that selects which parameters to use for each input. According to its developer, it mainly uses 4-bit weights, and the model's memory footprint is about 20GB. The 71.6% the company recorded on Terminal-Bench 2.1 used "pi," while PrismML used "Terminus-2." On DeepSWE 1.1 as well, the Qwen team used Claude Code while PrismML used mini-SWE-agent, so the execution environments differ.

Google's Gemma 4 26B A4B is also an MoE model and uses about 4 billion parameters when generating each token. Because different parameters may be selected for each token, however, Google's documentation says the weights for all 26 billion parameters must be loaded into memory. The GPU or TPU memory needed to load the 4-bit weights is estimated at about 14.4GB, with additional memory required for inference software and the context cache. Bonsai's 5.93GB is simply the size of the language model's distributed file.

AD

The 5.93GB model file and runtime memory use

In PTQ1_0, Bonsai 2.5's most compact distribution format, most weights are represented by three values (−1, 0, +1), with an FP16 scaling factor shared by every 128 weights. The effective bit width is 1.76 bits per weight. The base language model file in this format is 5.93GB, roughly one-ninth the size of the FP16 version of Qwen3.8-27B (53.8GB). To use image input, a separate image-processing file must also be loaded.

Using the PTQ1_0 format requires PrismML's own modified llama.cpp. With the official llama.cpp, you combine build b11556 or later, which added support, with the Q2_0 format. Both store the same ternary model, but the weights are laid out differently in the file. PrismML provides llama.cpp guidance for NVIDIA and Intel GPUs, and also supports Mac, iPhone, and iPad via MLX.

At runtime, memory is needed not only for the model weights but also for the inference software and a cache holding information about past inputs and outputs. The model's maximum context length is 262,144 tokens by specification, but uses such as loading a large repository and calling tools repeatedly also require headroom for the operation history and tool outputs.

The model card includes a user report from a GeForce RTX 3080 with 10GB of VRAM. GPU memory use of about 9.5GB, including desktop usage, dropped to about 7.8GB after limiting the inference server's concurrent requests to one. To judge whether the model will run on your own hardware, you need to consider the distribution format, context length, and number of concurrent requests.

MTP raises generation speed about 1.8x, but input processing lags

Separately from the base file, PrismML distributes a model that includes a small prediction module for MTP (Multi-Token Prediction). The module looks ahead at several upcoming tokens, and the main model verifies the candidates together. When the predictions are correct, multiple tokens can be confirmed at once, reducing the number of sequential generation steps. PrismML measured generation speed on 36 inputs meant to reflect real use, and separately evaluated input processing speed on a 2,048-token input.

In Table 6 of the company's technical report, performance was measured under common conditions: a GeForce RTX 4090, the PTQ1_0 format, and llama-server. With MTP enabled, generation speed rises from 111 to 204 tokens per second. Input processing speed, however, falls from 2,808 to 2,166 tokens per second because the prediction module must also process the input. With a speed-optimized kernel still under development, generation stays at 204 tokens per second while input processing rises to 3,014 tokens per second.

When delegating tasks such as fixing internal code to a local AI, total working time depends not only on generation speed but also on reading the input, processing logs returned by tools, and retrying after failures. Bonsai 2.5 substantially improves agentic-task performance without increasing the model's size. For real-world adoption, it would be sensible to compare task completion rates and total working time in the same execution environment, using everyday code fixes and app operations as the test cases.