Bonsai 2.5 27B — GGUF

Prism ML

Qwen3.8-27B hybrid-attention causal language model: ~75% linear / ~25% full attention, SwiGLU MLP, RoPE, RMSNorm

Open Weights Commercial Use Multimodal Ternary g128 (PTQ1_0, PQ2_0, Q2_0) Bonsai

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%

Architecture

Decoder Block ×64 input Embedding vocab 248K · d 5120 Linear / Recurrent GQA 24:4 · dₕ 256 ×48 Full Attention GQA 24:4 · dₕ 256 ×16 MoE FFN dᴻ 17408 MTP Head ×1 speculative layer Final RMSNorm LM Head vocab 248K output

hybrid linear attention transformer

MoE Hybrid Vision
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
Ternary RoPE θ 10M MTP ×1

Source: extracted model record · exact layer pattern · model repo

Comments (0)

No comments yet

Be the first to share your thoughts!

What now?

You have read the full card for Bonsai 2.5 27B — GGUF — here is where to go next.