Bonsai 2.5 27B — GGUF
Qwen3.8-27B hybrid-attention causal language model: ~75% linear / ~25% full attention, SwiGLU MLP, RoPE, RMSNorm
Parameters
27.4B
Context
262,144 tokens
native
Modalities
text, image text
input → output
Benchmarks
#1/140
better than 99% of all scored models
Size class
#1/23
better than 96% of similar-size models
License
Apache License 2.0
About
Ternary-Bonsai-2.5-27B-GGUF is the GGUF artifact of Ternary Bonsai 2.5 27B, Prism ML's agentic release of the Ternary Bonsai 27B line, released November 24, 2026 under the Apache 2.0 license. 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 — roughly 9x smaller. This release targets long-horizon, tool-driven work, and Prism ML positions it as the strongest agentic model under 10 GB.
Architecture
The base model is Qwen3.8-27B, a 27B hybrid-attention causal language model: hybrid attention (~75% linear / ~25% full attention), SwiGLU MLP, RoPE, RMSNorm. Parameters: 24.35B language (64 blocks) + 0.47B vision tower (27 blocks) + 2.54B embedding/lm-head = 27.36B total. Context length is 262K tokens. The vision tower ships separately as an optional mmproj file, loaded only for image input, so text-only serving never pays for it. The MTP variants add a multi-token prediction (MTP) draft head — one extra layer, built by PrismML — for speculative decoding.
Weight format: Ternary g128 in a rotated basis
The released weights are exactly ternary and use the unchanged Bonsai 2 format: each weight takes a value from {−1, 0, +1} with one shared FP16 scale factor for every group of 128 weights (1.76 bits per weight). The weights are stored in a rotated basis: each matrix is transformed blockwise by an orthogonal Hadamard rotation before the ternary assignment, folded into the stored weights offline so it costs no extra bits. Three GGUF packings ship: PTQ1_0 (dense trits, 5.93 GB, PrismML llama.cpp fork), PQ2_0 (each trit in a 2-bit slot, the Apple Metal format), and Q2_0 (llama.cpp's standard 2-bit type, runs on stock llama.cpp from release b11556).
What makes it notable
- 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.
- 90% of FP16 on agentic coding, up from 63% for Bonsai 2: Terminal-Bench 2.1 60.1, SWE-bench Verified 75.6, DeepSWE 27.0.
- General capability stays close to FP16: averaged over five categories (16 benchmarks), 82.12 against 84.32.
- Multi-token prediction (MTP) variants speed up decode by 1.5–1.8x on NVIDIA GPUs; with MTP and the kernels now in testing, decode reaches about 300 tokens/s on H200 and B200 — 2.3–3.0x faster than on Bonsai 2's release day (September 17, 2026) on six of the seven NVIDIA GPUs measured.
- Runs on stock llama.cpp via the Q2_0 files, on the PrismML llama.cpp fork (CUDA, Metal, CPU, SYCL) via PTQ1_0/PQ2_0, and on MLX (Python, Swift) via a companion 2-bit MLX export; on-device paths include Apple Silicon laptops, Intel Core Ultra (SYCL), and a Hexagon NPU phone path.
Usage
It is a reasoning model that thinks by default at xhigh reasoning effort (medium for shorter responses; low is not supported). Recommended sampling (thinking mode): temperature 1.0, top_p 0.95, top_k 20, min_p 0.0; instruct mode: temperature 0.7, top_p 0.80, top_k 20, min_p 0.0, presence_penalty 1.5. Use cases: local coding and terminal agents with 262K context, tool-calling and customer-facing agents, fast single-GPU agent serving, and on-device/offline agents.
Ecosystem
Maintained by Prism ML (prism-ml on Hugging Face; website prismml.com; contact@prismml.com). Documentation: the Bonsai 2.5 whitepaper (benchmarks, evaluation setup, inference-speed measurements), the Bonsai-demo repo as the source of truth for running the models, the PrismML llama.cpp/MLX/mlx-swift forks, and the PrismML Discord. Previous release: Bonsai 2 27B (September 17, 2026).
Training Data GGUF quantization/derivative of Qwen/Qwen3.8-27B; agentic release of the Ternary Bonsai 27B line, keeping the Bonsai 2 architecture and ternary g128 weight format (blockwise Hadamard basis, 1.76 bits per weight) unchanged.
Benchmark Scores
| Benchmark | Score | Date | Standing |
|---|---|---|---|
|
TAU2-Bench
general_agent
|
82.00
|
24.11.2026 |
#3/22
better than 90%
|
|
TAU3-Bench
general_agent
|
73.90%
|
24.11.2026 |
#1/25
better than 100%
|
|
BFCL-V3
general_agent
|
72.60
|
24.11.2026 |
#2/4
better than 67%
|
|
BFCL-V4
general_agent
|
67.20
|
24.11.2026 |
#12/34
better than 67%
|
|
AppWorld
general_agent
|
90.50%
|
24.11.2026 |
#1/1
only tracked model
|
|
Terminal Bench 2.1
coding_agent
|
60.10
|
24.11.2026 |
#30/48
better than 38%
|
|
SWE-bench Verified
coding_agent
|
75.60%
|
24.11.2026 |
#24/63
better than 60%
|
|
DeepSWE
coding_agent
|
27.00%
|
24.11.2026 |
#21/27
better than 23%
|
|
MMLU-Redux
knowledge
|
89.10%
|
24.11.2026 |
#22/36
better than 40%
|
|
GPQA Diamond
stem_reasoning
|
87.70%
|
24.11.2026 |
#41/86
better than 53%
|
|
AA-LCR
long_context
|
76.00%
|
24.11.2026 |
#12/49
better than 77%
|
|
AIME 26
stem_reasoning
|
94.20%
|
24.11.2026 |
#24/47
better than 50%
|
|
HMMT Feb 26
stem_reasoning
|
86.00%
|
24.11.2026 |
#22/47
better than 54%
|
|
LiveCodeBench v6
stem_reasoning
|
83.00%
|
24.11.2026 |
#23/51
better than 56%
|
|
BigCodeBench
coding_agent
|
60.30%
|
24.11.2026 |
#1/1
only tracked model
|
|
IFBench
instruction_following
|
71.00
|
24.11.2026 |
#28/47
better than 41%
|
|
IFEval
instruction_following
|
90.80
|
24.11.2026 |
#17/31
better than 43%
|
|
CharXiv
vision_language
|
81.60%
|
24.11.2026 |
#1/1
only tracked model
|
|
A-OKVQA
vision_language
|
88.60%
|
24.11.2026 |
#1/1
only tracked model
|
|
RealWorldQA
vision_language
|
81.70%
|
24.11.2026 |
#10/25
better than 62%
|
|
HallusionBench
vision_language
|
81.50%
|
24.11.2026 |
#1/14
better than 100%
|
|
MMMU-Pro
vision_language
|
77.60%
|
24.11.2026 |
#12/40
better than 72%
|
|
MathVision
vision_language
|
84.50%
|
24.11.2026 |
#12/28
better than 59%
|
|
OmniDocBench v1.6
vision
|
90.10%
|
24.11.2026 |
#4/4
better than 0%
|
What is a good TAU2-Bench score? What is a good TAU3-Bench score? What is a good BFCL-V3 score?
Hardware Requirements
Estimated VRAM per quantization at 4,096 tokens context
| Quantization | Weights | KV Cache | Total VRAM | On your hardware |
|---|---|---|---|---|
| FP16 — 16-bit | 54.7 GB | 4.2 GB | 61.7 GB | Which GPUs can run it? Calculate on your GPU |
| INT8 — 8-bit | 27.4 GB | 2.1 GB | 30.9 GB | Which GPUs can run it? Calculate on your GPU |
| INT4 — 4-bit | 13.7 GB | 1.1 GB | 15.4 GB | Which GPUs can run it? Calculate on your GPU |
| FP4 — 4-bit | 13.7 GB | 1.1 GB | 15.4 GB | Which GPUs can run it? Calculate on your GPU |
Consumer GPUs that fit this model with a single card (INT4):
Architecture
hybrid linear attention transformer
- Parameters
- 27.4B
- Active params
- 27.4B
- Layers
- 64 48× Linear / Recurrent + 16× Full Attention
- Attention
- GQA 24:4 Grouped Query Attention
- FFN dim
- 17408
- Hidden
- 5120
- Head dim
- 256
- Vocabulary
- 248K
- Context
- 262K
Source: extracted model record · exact layer pattern · model repo
Linked Resources
Prism ML Website
https://prismml.com/
Bonsai 2.5 27B Whitepaper
https://github.com/PrismML-Eng/Bonsai-demo/blob/main/bonsai-2-5-27b-whitepaper.pdf
Bonsai 2 27B Whitepaper
https://github.com/PrismML-Eng/Bonsai-demo/blob/main/bonsai-2-27b-whitepaper.pdf
PrismML-Eng/Bonsai-demo
https://github.com/PrismML-Eng/Bonsai-demo
PrismML-Eng/llama.cpp
https://github.com/PrismML-Eng/llama.cpp
PrismML-Eng/mlx
https://github.com/PrismML-Eng/mlx
PrismML-Eng/mlx-swift
https://github.com/PrismML-Eng/mlx-swift
Bonsai 2.5 27B Collection
https://huggingface.co/collections/prism-ml/bonsai-25-27b
Ternary-Bonsai-2.5-27B-mlx-2bit
https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit
Citation (BibTeX)
https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF
Trend Analysis
Current
59,366
likes
followers
downloads_all_time
No comments yet
Be the first to share your thoughts!