AI model · PrismML

Bonsai 2.5 27B, Explained: Specs, Benchmarks, Hardware

Bonsai 2.5 27B is PrismML's ternary agent model: 27.36B parameters squeezed into a 5.93GB file, a 262K-token context and an Apache 2.0 license, built to run coding and tool-calling agents on a laptop or one GPU. Synexa does not serve it; use Synexa when your app also needs images, music, video or 3D from one API key.

  • 5.93GB, about 9× smaller than FP16
  • 262K-token context
  • Apache 2.0 open weights
  • Synexa: Hunyuan3D 3.1 at $0.16
Nov 24, 2026
Release date, with open weights on Hugging Face
5.93GB
Smallest file, at 1.76 bits per weight (53.8GB at FP16)
77.2 vs 77.7
Agentic tool-calling average against the full-precision base, per PrismML
75.6%
SWE-bench Verified, up from 60.8% for the previous release

What is Bonsai 2.5 27B?

Bonsai 2.5 27B is a compressed language model from PrismML, a Caltech spin-out, released on November 24, 2026 under Apache 2.0. Its full name is Ternary Bonsai 2.5 27B, and it is the flagship of the PrismML Bonsai family, above the 9B, 4B and 2B Bonsai 2 models. It is built on Qwen3.8-27B with the architecture unchanged, reads text and images, writes text and holds up to 262K tokens of context.

Its trick is ternary weights. Every language-model weight is −1, 0 or +1, with one shared scale for each group of 128 weights, so the whole model needs 1.76 bits per weight. That puts it at 5.93GB, against 53.8GB for the same model at FP16.

It is an upgrade to Bonsai 2 27B from September 17, 2026, with the same size, format and runtimes. What changed is behaviour on long agent tasks: PrismML says it reads tool results better, recovers when a step fails and finishes in fewer turns and tokens. For another laptop-sized model, see our Inkling 2 Mini guide.

Bonsai 2.5 27B specs: size, context and architecture

Figures from PrismML's model card and docs, as of December 2026.

Maker
PrismML (Prism ML, Inc.)
Released
November 24, 2026
Base model
Qwen3.8-27B, architecture unchanged
Parameters
27.36B total: 24.35B language backbone, 2.54B embedding and output head, 0.47B vision tower
Architecture
Hybrid attention (about 75% linear, 25% full), SwiGLU MLP, RoPE, RMSNorm
Weight format
Ternary, FP16 scale per group of 128, stored in a rotated Hadamard basis
Size
5.93GB (PTQ1_0), about 7.2GB (PQ2_0), about 7.6GB (Q2_0)
Context window
262,144 tokens
Input / output
Text and images in (vision via a separate projector file), text out
Reasoning effort
xhigh by default, or medium; low is not supported
License
Apache 2.0

Bonsai 2.5 27B benchmarks: how close to full precision?

Scores reported by PrismML in thinking mode at xhigh effort, against the full-precision base and the previous release. We have not run these tests ourselves.

SWE-bench Verified

Bonsai 2.5 27B
75.6
Bonsai 2 27B
60.8
Qwen3.8-27B FP16
80.6

DeepSWE

Bonsai 2.5 27B
27.0
Bonsai 2 27B
0.0
Qwen3.8-27B FP16
30.1

Terminal-Bench 2.1

Bonsai 2.5 27B
60.1
Bonsai 2 27B
52.8
Qwen3.8-27B FP16
70.8

AppWorld

Bonsai 2.5 27B
90.5
Bonsai 2 27B
51.2
Qwen3.8-27B FP16
93.2

τ²-Bench

Bonsai 2.5 27B
82.0
Bonsai 2 27B
80.2
Qwen3.8-27B FP16
80.6

τ³-Bench

Bonsai 2.5 27B
73.9
Bonsai 2 27B
69.1
Qwen3.8-27B FP16
72.8

GPQA Diamond

Bonsai 2.5 27B
87.7
Bonsai 2 27B
85.8
Qwen3.8-27B FP16
90.5

AIME26

Bonsai 2.5 27B
94.2
Bonsai 2 27B
95.8
Qwen3.8-27B FP16
94.6

LiveCodeBench v6

Bonsai 2.5 27B
83.0
Bonsai 2 27B
83.8
Qwen3.8-27B FP16
87.6

File size

Bonsai 2.5 27B
5.93GB
Bonsai 2 27B
5.93GB
Qwen3.8-27B FP16
53.8GB
BenchmarkBonsai 2.5 27BBonsai 2 27BQwen3.8-27B FP16
SWE-bench Verified75.660.880.6
DeepSWE27.00.030.1
Terminal-Bench 2.160.152.870.8
AppWorld90.551.293.2
τ²-Bench82.080.280.6
τ³-Bench73.969.172.8
GPQA Diamond87.785.890.5
AIME2694.295.894.6
LiveCodeBench v683.083.887.6
File size5.93GB5.93GB53.8GB

Vendor-reported numbers. Averaged over five tool-calling tests it scores 77.2 against 77.7 for full precision; over three agentic coding tests it keeps about 90% of the FP16 score (54.2 vs 60.5). PrismML also says it leads every low-bit build of the same base under 10GB on both agent suites.

What is Bonsai 2.5 27B good at?

PrismML pitches it for private, on-device agents where memory and speed matter more than the last few points of accuracy.

Tool calling

On τ²-Bench, τ³-Bench and BFCL v3 it scores above the full-precision base, and it reaches 90.5 on AppWorld, which tests code written against nine everyday apps.

Agentic coding

DeepSWE rises from 0 to 27.0 and SWE-bench Verified to 75.6. PrismML demos it fixing a pytest regression and rebuilding a web page from a screenshot.

Runs on a laptop

PrismML's LM Studio guide asks for 16GB of unified memory at minimum, 24GB or more for long context. It also targets iPhone and iPad through MLX.

Fast on one GPU

PrismML measured 291 tokens per second on one H100 with its draft head, and 204 on an RTX 4090, plus prefill of about 3,060 to 3,200 tokens per second.

Keeps data local

Inference runs on your own machine, so a coding or document agent can work with private files that never leave the device.

Built-in speculative decoding

MTP variants carry a small draft head that speeds up decode by 1.5 to 1.8 times on NVIDIA GPUs, with output that matches plain decoding.

How much does Bonsai 2.5 27B cost?

The weights are free under Apache 2.0, so the cost is your own hardware. Prices and listings as of December 5, 2026.

Your own Mac, PC or GPU

Input
$0
Output
$0
Notes
16GB unified memory minimum on a Mac

Hugging Face download

Input
$0
Output
$0
Notes
GGUF, GGUF with draft head, MLX

OpenRouter

Input
not listed
Output
not listed
Notes
Only the older Bonsai 2 is listed

OpenRouter, previous release

Input
$0.075
Output
$0.50
Notes
Per million tokens, one provider, int4

Example: 100K in + 10K out, previous release

Input
$0.0075
Output
$0.005
Notes
About $0.0125 total
WhereInputOutputNotes
Your own Mac, PC or GPU$0$016GB unified memory minimum on a Mac
Hugging Face download$0$0GGUF, GGUF with draft head, MLX
OpenRouternot listednot listedOnly the older Bonsai 2 is listed
OpenRouter, previous release$0.075$0.50Per million tokens, one provider, int4
Example: 100K in + 10K out, previous release$0.0075$0.005About $0.0125 total

The example row is our arithmetic: 0.1M × $0.075 plus 0.01M × $0.50 = $0.0125, for the previous release. For other PrismML Bonsai sizes, the same Hugging Face organisation hosts the 9B, 4B and 2B models. PrismML also offers paid work tailoring Bonsai models to a team's data and hardware, with no public price.

How to run Bonsai 2.5 27B: llama.cpp, MLX or LM Studio

Four ways in, all local. Pick the file for your runtime first.

01

Use PrismML's demo repo

The 27B is its default model. One script starts an OpenAI-compatible server with a chat and vision UI on port 8080, with the right flags for your hardware.
02

Run the GGUF in llama.cpp

PTQ1_0 (5.93GB) and PQ2_0 need PrismML's llama.cpp binaries. The Q2_0 file runs on stock llama.cpp from release b11556; older builds load it silently and print garbage.
03

Use MLX on Apple silicon

A 2-bit MLX pack exported from PQ2_0 ships with its own loader. PrismML measured about 30 tokens per second on an M5 Pro laptop with the GGUF.
04

Load it in LM Studio

Use the Q2_0 file with LM Studio's llama.cpp engine at b11556 or newer, and plan on roughly 6 to 9GB of disk for the 27B.

What to check before you rely on it

Points from PrismML's best practices and known issues.

Do
  • Pass --min-p 0 in llama.cpp, which defaults to 0.05
  • Leave room for thinking: PrismML's examples cap output at 16,384 tokens
  • Use medium effort for shorter answers
  • Add -np 1 to llama-server on a small GPU to save VRAM
Don't
  • Load Q2_0 in a llama.cpp build older than b11556
  • Expect low reasoning effort to work: it behaves close to xhigh
  • Expect full-precision coding: Terminal-Bench 2.1 is 60.1 vs 70.8
  • Set a tiny token cap such as 256; it stops mid-thought

Bonsai 2.5 27B vs Bonsai 2 27B and the FP16 original

Pick Bonsai 2.5 over Bonsai 2 27B for anything agentic: same 5.93GB file and runtimes, but AppWorld jumps from 51.2 to 90.5 and DeepSWE from 0 to 27.0. PrismML says decode with the draft head is 2.3 to 3.0 times faster than on Bonsai 2's release day on six of seven NVIDIA GPUs measured.

Pick the full-precision Qwen3.8-27B when you have about 54GB of memory to spare and need every point: it still leads on coding (60.5 vs 54.2 average) and on general tasks (84.3 vs 82.1). If you are choosing between hosted multi-model platforms rather than language models, our WaveSpeed AI alternative and Runware alternative pages compare media APIs model by model.

Does Synexa serve Bonsai 2.5 27B?

No. Synexa does not serve this model or any other chat language model. Apart from a safety classifier's labels, its only text outputs are image answers from LLaVA-13B and transcripts from Whisper v3. For the language side, run the open weights on your own machine.

Synexa covers the media half of an app. A local agent can plan a game, a product page or a slide deck, then call Synexa to render it: Hunyuan3D 3.1 turns one image into a textured 3D model for $0.16 a request, and Lyria 2 writes a music clip for $0.10. Every price is on its model page in Explore, new accounts get $0.10 of free credit, and the quickstart shows the first call in Python or Node.

  • Pay per request, no subscription
  • Python and Node clients, plus plain HTTP
  • Image, video, audio, upscaling and 3D in one catalog

Synexa models to pair with a local Bonsai agent

Flat per-request prices as listed on Synexa model pages, December 2026.

Textured 3D asset from one image

Synexa model
Hunyuan3D 3.1
Price
$0.16 / request

Fast draft 3D mesh

Synexa model
TRELLIS
Price
$0.02 / request

Concept art or product image from a brief

Synexa model
Nano Banana Pro
Price
$0.10 / request

Slide, chart or poster with readable text

Synexa model
GPT Image 2
Price
$0.10 / request

30-second music clip from a text prompt

Synexa model
Lyria 2
Price
$0.10 / request

Upscale or restore a photo

Synexa model
Real-ESRGAN
Price
$0.0015 / request
Job your agent hands offSynexa modelPrice
Textured 3D asset from one imageHunyuan3D 3.1$0.16 / request
Fast draft 3D meshTRELLIS$0.02 / request
Concept art or product image from a briefNano Banana Pro$0.10 / request
Slide, chart or poster with readable textGPT Image 2$0.10 / request
30-second music clip from a text promptLyria 2$0.10 / request
Upscale or restore a photoReal-ESRGAN$0.0015 / request

Synexa catalog prices, not PrismML's. A local model costs nothing per call, so media is usually the whole API bill; see how Synexa compares with other providers on pricing.

Related pages

More model explainers and API comparisons.

Frequently asked questions

What is Bonsai 2.5 27B?

Bonsai 2.5 27B is a ternary language model from PrismML, released November 24, 2026 under Apache 2.0. It is built on Qwen3.8-27B, stores each weight as −1, 0 or +1, and fits 27.36B parameters into a 5.93GB file. It reads text and images, writes text, holds 262K tokens of context and is tuned for coding and tool-calling agents.

Is it free to use?

Yes. The weights are free to download from Hugging Face under the Apache 2.0 license, which allows commercial use, changes and redistribution. Running it locally costs only your hardware and power. As of December 5, 2026 no hosted API on OpenRouter lists this release; the older Bonsai 2 is listed there at $0.075 per million input tokens and $0.50 per million output tokens.

Can Bonsai 2.5 27B run on a laptop?

Yes. The smallest file is 5.93GB, and PrismML's LM Studio guide asks for 16GB of unified memory at minimum, with 24GB or more recommended for long context. PrismML measured about 30 tokens per second on an Apple M5 Pro laptop and also lists Intel Core Ultra laptops and Apple iPhone and iPad as supported targets.

What does ternary mean here?

Each language-model weight takes one of three values, −1, 0 or +1, and every group of 128 weights shares one FP16 scale. That works out to 1.76 bits per weight instead of 16, which is why the model is about 9 times smaller than its full-precision base. The weights are stored in a rotated basis that the runtime undoes at no extra cost.

How good is it compared with full precision?

PrismML reports it level with the full-precision Qwen3.8-27B on tool calling, 77.2 against 77.7 averaged over five benchmarks, and at about 90% on agentic coding, 54.2 against 60.5. General capability is within about two points. The full model still leads on Terminal-Bench 2.1, 70.8 against 60.1, so test it on your own tasks first.

Which file should I download?

On NVIDIA GPUs, PrismML recommends PTQ1_0, the smallest file at 5.93GB and the fastest decode, but it needs PrismML's llama.cpp binaries. On Apple silicon, PQ2_0 is the benchmarked format. Q2_0, about 7.6GB, runs on stock llama.cpp from release b11556. MTP variants add a draft head for faster decoding.

How long is its context window?

The model supports up to 262,144 tokens of context, inherited from its Qwen3.8-27B base. PrismML's examples start with a 32,768-token context and leave 16,384 tokens for output, because the model thinks at xhigh effort by default. Longer contexts need more memory than the weights alone, so PrismML recommends 24GB or more of unified memory for long context.

Can I use Bonsai 2.5 27B through Synexa?

No. Synexa does not serve this model or any other chat language model. Synexa is a pay-per-request API for generative media: images, video, music, speech, upscaling and image-to-3D, including Hunyuan3D 3.1 at $0.16 a request. Many teams run a local language model to plan and write prompts, then call Synexa to render the asset. New accounts get $0.10 of free credit.

Pair Bonsai 2.5 27B with a media API

Let your local agent do the planning, then render the images, music and 3D models it asks for on Synexa. Pay per request, start with $0.10 free credit.