PrismML's new Ternary Bonsai 2.5 27B delivers high-performance agentic coding and tool use in a compact 5.93 GB footprint using ternary weight quantization.
On November 24, 2026, PrismML announced the release of Ternary Bonsai 2.5 27B, a significant leap forward in the pursuit of high-performance AI agents that run locally. This release marks the transition of the Bonsai line from a general-purpose small model to a specialized agentic powerhouse, specifically optimized for multi-turn tool use, complex task execution, and advanced coding workflows.
For developers working under strict hardware constraints, this model represents a breakthrough. By leveraging a unique ternary weight format, PrismML has managed to pack the intelligence of a much larger model into a file size that can run comfortably on consumer-grade hardware, including laptops and mid-range desktop GPUs, without sacrificing the reasoning capabilities required for autonomous agentic behavior.
Ternary Bonsai 2.5 27B is built upon the Qwen3.8-27B base, inheriting its robust hybrid-attention architecture. The model utilizes a sophisticated ternary weight format where each weight is restricted to a value of -1, 0, or +1. To maintain precision, a shared FP16 scale factor is applied to every group of 128 weights, stored in a blockwise Hadamard-rotated basis. This approach allows the model to achieve a staggering 1.76 bits per weight (bpw).
The architecture is a massive technical feat of efficiency. It consists of 24.35B parameters for the language model (spanning 64 blocks), a 0.47B vision tower (27 blocks), and 2.54B parameters dedicated to embeddings and the LM head, totaling 27.36B parameters. The model employs a 75% linear and 25% full attention split, utilizing SwiGLU MLP, RoPE, and RMSNorm to ensure stability and high-quality output across its massive 262K token context window.
The most striking aspect of Bonsai 2.5 is its ability to retain nearly all the intelligence of its FP16 counterpart while being nine times smaller. In general capability tests averaged over 16 benchmarks, the model scored 82.1, compared to 84.3 for the FP16 base. This minimal degradation is a testament to the effectiveness of the Hadamard-rotated ternary quantization.
In agentic-specific tasks, the improvements are even more dramatic. On the AppWorld benchmark, the model jumped from 51.2 (Bonsai 2) to 90.5. For coding, the model achieved an average of 54.2 across Terminal-Bench 2.1, SWE-bench Verified, and DeepSWE. Notably, its SWE-bench Verified score rose from 60.8 to 75.6, representing a massive leap in its ability to handle real-world software engineering tasks locally.
Speed is where Bonsai 2.5 truly shines for interactive applications. PrismML has integrated Multi-Token Prediction (MTP) variants, which include a draft head that accelerates decoding by 1.5x to 1.8x on NVIDIA GPUs. On a single NVIDIA H100, the model achieves 291 tokens/s generation and a prompt processing speed of 3,200 tokens/s for a 2,000-token prompt.
Consumer hardware users will find the performance equally impressive. On an RTX 4090, the model delivers 204 tokens/s with MTP enabled. Measured against Bonsai 2's release-day setups, decode is 1.92x faster on the RTX 4090, 1.44x on the Apple M4 Pro and 2.0x on a Core Ultra laptop.
As an open-source release under the Apache 2.0 license, Ternary Bonsai 2.5 27B is primarily intended for local deployment. There is no hosted API pricing provided by PrismML for this specific model, as the weights are distributed freely via Hugging Face for users to run on their own infrastructure or edge devices.
Because the model is provided as GGUF files, your 'cost' is essentially the electricity and hardware depreciation of your own compute. This makes it an ideal candidate for privacy-sensitive applications and high-throughput local agentic workflows where API latency and per-token costs would otherwise be prohibitive.
The specialized training of Bonsai 2.5 makes it uniquely suited for 'Agentic Coding.' Developers can run a highly capable coding assistant directly on their workstations, capable of executing terminal commands and navigating complex repositories via SWE-bench-style workflows without sending code to a third-party server.
Beyond coding, its high tool-calling accuracy and massive context window make it perfect for local RAG (Retrieval-Augmented Generation) systems and multi-step automation agents. Whether it's managing a local file system, interacting with web APIs, or analyzing large documents, the model provides the reasoning depth of a much larger model within a 6GB footprint.
To get started, download the GGUF files directly from Hugging Face. The release includes multiple quantization levels: PTQ1_0, PQ2_0, and Q2_0. For the best experience with MTP and specialized kernels, it is recommended to use the PrismML fork of llama.cpp, which supports CUDA, Metal, CPU, and SYCL.
Apple Silicon users can leverage the text-only MLX build for optimized performance on Mac, iPhone, and iPad. For vision tasks, the vision tower is available as an optional mmproj file. If you are running on a mid-range GPU like an RTX 3080 10GB, the model can be run in automatic mode using the llama.cpp server, a community report measured about 9.5 GB of total GPU memory use in automatic mode and about 7.8 GB after adding -np 1.
API Pricing — Input: no hosted API price given - open weights under the Apache 2.0 license / Output: not applicable - no hosted API price given / Context: 262K tokens