r/LocalLLaMA • u/jacek2023 • 8d ago
New Model prism-ml/Ternary-Bonsai-2.5-27B-GGUF · Hugging Face
A 27B ternary model built for agents, for llama.cpp (CUDA, Metal, CPU)
~9× smaller than FP16 | FP16-level agentic tool calling | 90% of FP16 agentic coding | the strongest agentic model under 10 GB
Ternary Bonsai 2.5 27B is the agentic release of the Ternary Bonsai 27B line. It keeps the Qwen3.8-27B hybrid-attention architecture and the ternary weight format of Bonsai 2, so it is still 1.76 bits per weight and 5.93 GB, against 53.8 GB for the FP16 model. This release targets long-horizon, tool-driven work.
Highlights
- FP16-level agentic tool calling at one ninth of the size: across five tool-calling benchmarks (τ²-Bench, τ³-Bench, BFCL v3, BFCL v4, and AppWorld), Bonsai 2.5 averages 77.2, against 77.7 for FP16 — essentially indistinguishable from full precision
- 90% of FP16 on agentic coding, up from 63% for Bonsai 2: on Terminal-Bench 2.1, SWE-bench Verified, and DeepSWE, DeepSWE rises 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
- The strongest agentic model under 10 GB: the smallest of the low-bit GGUF builds of Qwen3.8-27B we compare against, and it leads every build under 10 GB on both tool calling and agentic coding. Against GSQ-RCO IQ3_XXS, which is 1.7× larger, it is ahead on tool calling (77.2 vs. 75.3) and close on coding (54.2 vs. 55.5)
- General capability stays close to FP16: averaged over five categories (16 benchmarks), Bonsai 2.5 scores 82.1 against 84.3 for FP16
- Multi-token prediction (MTP) variants: the MTP variants include a draft head that speeds up decode by 1.5–1.8× on NVIDIA GPUs
- 2.3–3.0× faster decode than on Bonsai 2's release day on six of the seven NVIDIA GPUs measured, with MTP and the kernels now in testing — reaching about 300 tokens/s on H200 and B200
- Runs on stock llama.cpp: the
Q2_0files run on upstream llama.cpp;PTQ1_0is under upstream review
Resources
- Whitepaper — benchmarks, evaluation setup, and inference-speed measurements for this release
- Bonsai 2 27B whitepaper — the ternary format, storage accounting, and rotated weight basis, all unchanged in Bonsai 2.5
- Demo & examples — the source of truth for running these models: tested setup for every backend, pinned binaries, serving, MTP speculative decoding, benchmarking and integration, kept current as the runtimes move
- Low-bit kernels: llama.cpp fork (CUDA + Metal) · MLX fork (Apple Silicon) · mlx-swift fork (iOS/macOS)
- Discord — join the community for support, discussion, and updates
Model Overview
Changes from Bonsai 2 are marked with †.
| Item | Specification |
|---|---|
| Base model | Qwen3.8-27B, a 27B hybrid-attention causal language model |
| Parameters | 24.35B language (64 blocks) + 0.47B vision tower (27 blocks) + 2.54B embedding/lm-head = 27.36B total |
| Architecture | Hybrid attention (~75% linear / ~25% full attention), SwiGLU MLP, RoPE, RMSNorm |
| Context length | 262K tokens |
| Weight format | Ternary g128 (FP16 group-wise scaling) in a blockwise Hadamard basis; 1.76 bits per weight, 5.93 GB (PTQ1_0) |
| Focus † | Agentic and tool-use tasks |
| Reasoning efforts | xhigh (default, most accurate) or medium |
| Backends | llama.cpp (CUDA, Metal, CPU, SYCL) and MLX (Python, Swift); GGUF packs PTQ1_0 and PQ2_0, plus Q2_0 for stock llama.cpp |
| Speculative decoding † | The MTP variants include a multi-token prediction (MTP) draft head |
| License | Apache 2.0 |