Command Palette
Search for a command to run...
Bonsaï ternaire 2.5 27B
Bonsaï ternaire 2.5 27B
Résumé
Un modèle ternaire de 27 milliards de paramètres conçu pour les agents. Environ 9 fois plus compact qu'un modèle FP16. Appel d'outils agentique de niveau FP16. 90 % des performances de codage agentique d'un modèle FP16. Le modèle agentique le plus performant sous 10 Go.
One-sentence Summary
Ternary Bonsai 2.5 27B is a 27-billion-parameter ternary model for agents that is approximately 9× smaller than FP16, achieves FP16-level agentic tool calling and 90% of FP16 agentic coding, and ranks as the strongest agentic model under 10 GB.
Key Contributions
- Ternary Bonsai 2.5 27B is introduced as an agentic model that preserves the Qwen3.8-27B hybrid-attention architecture and ternary weight format at 1.76 bits per weight and 5.93 GB, about one ninth the size of the FP16 baseline.
- Across five tool-calling benchmarks (τ2-Bench, τ3-Bench, BFCL v3, BFCL v4, and AppWorld), it averages 77.2 versus 77.7 for FP16; on three agentic coding benchmarks it retains 90% of the FP16 score, with DeepSWE rising from 0 to 27.0, SWE-bench Verified from 60.8 to 75.6, and Terminal-Bench 2.1 from 52.8 to 60.1.
- It is the strongest agentic model under 10 GB, leading all tested conventional low-bit GGUF builds on tool calling and agentic coding, and it adds a multi-token prediction draft head that speeds decode by 1.5 to 1.8 times on NVIDIA GPUs, with general capability averaging 82.3 versus 84.4 for FP16 across 14 benchmarks.
Introduction
The authors address long-horizon, tool-driven agentic workloads where FP16 models are large and compressed models often sacrifice agentic reliability. Prior compressed releases such as Bonsai 2 retained only about 63% of FP16 agentic coding performance and scored zero on DeepSWE, while conventional low-bit GGUF builds under 10 GB use 2.27 to 2.75 bits per weight and still underperform or fail on tasks like AppWorld. The main contribution is Ternary Bonsai 2.5 27B, a 1.76-bit, 5.93 GB model based on the Qwen3.8-27B hybrid-attention architecture that matches FP16 tool-calling benchmarks on average and keeps 90% of FP16 agentic coding performance, with a multi-token prediction draft head for faster decode.
Experiment
These experiments evaluate Bonsai 2.5 under a common harness with thinking mode at high reasoning effort and pass@1 scoring, comparing it against FP16 and compressed conventional builds on agentic tool calling, agentic coding, general capability, and inference speed. Agentic tool calling is roughly level with FP16 and ahead of conventional builds, while agentic coding improves sharply over Bonsai 2 and beats comparable low-bit baselines. General capability remains close to FP16, with the highest average among compressed builds. Inference-speed tests validate runtime and kernel improvements plus a multitoken prediction draft head, showing substantial decode speedups with outputs statistically close to non-drafted decoding.
This system is a 27B-class hybrid-attention causal language model based on Qwen3.8-27B, with a small vision tower and a 262K-token context. It is designed for agentic and tool-use tasks and uses a compact ternary weight format that reduces the model footprint to 5.93 GB. The default reasoning effort is xhigh for accuracy, with a medium option available. The base model is Qwen3.8-27B, and total parameters are about 27B, with most capacity in the language backbone and smaller vision and embedding components. Hybrid attention combines roughly 75% linear attention with 25% full attention, alongside SwiGLU MLP, RoPE, and RMSNorm. Context length is 262K tokens. Weights use a ternary g128 format with FP16 group-wise scaling in a blockwise Hadamard basis, at 1.76 bits per weight and a 5.93 GB size. The focus is on agentic and tool-use tasks, with xhigh as the default reasoning effort and medium as an alternative.
The FP16 Qwen3.8 baseline generally leads, but several quantized builds remain close or occasionally exceed it on agentic tool-calling benchmarks. Quantization effects are benchmark-dependent: BFCL v3 and the tau-bench tasks are relatively forgiving, while BFCL v4 and especially AppWorld show large drops for some aggressive low-bit builds. Among the smallest models, Bonsai 2.5 is often competitive with the baseline, indicating method matters more than file size alone. On tau2-Bench, tau3-Bench, and BFCL v3, Bonsai 2.5 matches or slightly exceeds the FP16 baseline despite using one of the smallest file sizes. BFCL v4 is more sensitive to quantization: all quantized builds score below FP16, though the IQ3_XXS build is nearly tied with it. AppWorld shows the widest spread among quantized builds, with some low-bit variants staying close to FP16 while others fall sharply.
The FP16 Qwen3.8 model leads the agentic coding benchmarks, and lower-bit Qwen3.8 quantizations generally lose accuracy as bits per weight decrease. Bonsai 2.5 27B, despite having the smallest size and lowest bits per weight among the compared models, substantially improves over Bonsai 2 27B and matches or exceeds several Qwen IQ2-class quantizations on SWE-bench Verified and DeepSWE. DeepSWE is the hardest benchmark for most models, while SWE-bench Verified produces the highest scores overall. Lower-bit Qwen3.8 quantizations show a consistent decline in average agentic coding performance, with the IQ3_XXS build retaining the most accuracy among compressed Qwen variants and the IQ2_XS-class builds falling further. Bonsai 2.5 27B uses the same small size as Bonsai 2 27B but recovers strongly, outperforming Bonsai 2 on every benchmark and surpassing lower-bit Qwen quantizations on SWE-bench Verified and DeepSWE.
Across fourteen benchmarks grouped into five categories, the Bonsai 2.5 compressed build has the highest category average among all compressed models and comes closest to the FP16 reference, despite its much smaller file size. It leads the conventional compressed builds in math and coding, while the FP16 model remains ahead overall and in most categories. Instruction following and vision are the most competitive areas, with several compressed builds near or slightly above the FP16 baseline. Bonsai 2.5 achieves the strongest overall category average among compressed builds and narrows the gap to the FP16 reference more than any other compressed model. In math and coding, Bonsai 2.5 outperforms all conventional compressed builds, including the previous Bonsai 2 and the larger IQ3_XXS build, though FP16 still leads those categories.
In plain decoding, the current runtime shows the largest gains for PTQ1_0, with prefill speedups roughly two times across the listed NVIDIA GPUs and decode speedups strongest on datacenter accelerators. PQ2_0 decoding also improves, mainly on datacenter parts, but PQ2_0 prefill is only marginally faster or flat on several other GPUs. Perplexity is unchanged between builds, so the gains come from kernel and runtime improvements rather than altered output. PTQ1_0 prefill speedups are consistently large across the listed GPUs, while PQ2_0 prefill speedups remain modest or flat on several other GPUs. PTQ1_0 decoding is faster than PQ2_0 decoding on every listed NVIDIA GPU, with the largest relative gains on datacenter accelerators.
The evaluation compares Bonsai 2.5 27B, a compact ternary agentic model based on Qwen3.8-27B, with FP16 and quantized Qwen3.8 baselines on agentic tool calling, agentic coding, general capabilities, and decoding performance. Bonsai 2.5 matches or slightly exceeds the FP16 baseline on several tool benchmarks and leads compressed models overall while improving substantially over the prior Bonsai 2, though FP16 still leads agentic coding and most categories. Quantization sensitivity varies by benchmark, with BFCL v4 and AppWorld showing larger drops for some low-bit builds. Runtime improvements show faster PTQ1_0 prefill and datacenter decode without changing perplexity.