Learning Objectives
- Understand what Bonsai is: a compression of someone else's model, not a model trained from scratch
- Know what ternary weights are and why they change where a 27 billion parameter model can run
- Judge the vendor's retention claim, and know when a full-precision or cloud model is still the better choice
What Is Bonsai?
Bonsai is a family of open-weight language models from PrismML, a startup founded by Caltech researchers and led by professor Babak Hassibi. Its premise is that a capable reasoning model does not have to be large in memory. PrismML takes an existing open model and compresses its weights so aggressively that it fits on a laptop, a desktop graphics card or, in the smallest variants, a phone.
The current flagship is Ternary Bonsai 2 27B, released on September 17, 2026. It is a compressed version of Alibaba's Qwen3.8 27B, and its total footprint is 5.9 gigabytes, more than nine times smaller than the full-precision model it comes from. It keeps Qwen's 262,000 token context window and accepts images as well as text.
The family started smaller. PrismML published its first Bonsai models, at 8 billion, 4 billion and 1.7 billion parameters, in March 2026, and added its first 27 billion parameter model in July 2026, with a one-bit version for recent iPhones. Bonsai 2 keeps the same footprint as that July model; the change is a stronger base model and less lost capability.
π‘Key Concept
What "ternary" means. A model's weights are the numbers it learned during training, normally stored at 16 bits each. A ternary model stores each weight as one of three values: minus one, zero or one, plus a small shared scaling factor for each group of weights. PrismML's version works out to about 1.76 bits per weight on average. Fewer bits per weight means far less memory to hold the model and less data to move for every token it generates, which is what makes local inference fast.
What It Can Do
PrismML reports the scores below for Ternary Bonsai 2 27B in thinking mode against the full-precision models. Every figure is vendor-reported; the full per-benchmark results are in PrismML's whitepaper.
| Capability | Ternary Bonsai 2 27B | Qwen3.8 27B (full precision) |
|---|---|---|
| Agentic and tool calling | 77.6 | 79.7 |
| Coding | 81.6 | 82.2 |
| Instruction following | 82.7 | 81.3 |
| Knowledge and reasoning | 84.0 | 86.7 |
| Math | 96.6 | 97.1 |
| Vision | 78.6 | 81.6 |
| Overall | 83.9 | 85.4 |
The pattern matters more than the total. The compressed model gives up the most on knowledge and reasoning and on vision, loses little on coding and math, and slightly beats the original on instruction following. PrismML's earlier ternary 27B model kept about 95 percent of its base model's aggregate score; Bonsai 2 raises that to 98.2 percent.
On speed, PrismML reports up to 143 tokens per second on an NVIDIA GeForce RTX 5090 and about 47 tokens per second on an Apple M5 Max, and says the model is more energy-efficient per token on an RTX 4090 than a full-precision 8 billion parameter model.
Pricing
- Ternary Bonsai 2 27B on Hugging Face
- Apache 2.0 license
- Commercial use permitted
- No access request
- Post-training on your own data
- Tuning for your target hardware
- No published price
The weights are released under Apache 2.0, and so is the base model: Alibaba published Qwen3.8 27B under plain Apache 2.0 with no revenue or user thresholds, so there is no restrictive upstream license hiding underneath. That matters because the same Qwen family ships some of its other checkpoints under custom community licenses, so read the license on the exact repository you download.
Strengths
- A 27 billion parameter model in under 6 gigabytes β runs on a single consumer graphics card or a well-equipped Mac instead of a server
- Most of the capability survives β a reported 98.2 percent of the full model's aggregate score, with coding and math nearly intact
- Genuinely open terms β Apache 2.0 on the weights and on the Qwen base, with commercial use allowed
- Private by default β running locally means documents and code never leave the machine
- Fast local inference β fewer bits per weight means more tokens per second on the same hardware
- Broad hardware support β NVIDIA GPUs through CUDA and Apple Mac, iPhone and iPad through MLX, using PrismML's own low-bit kernels
Limitations and Considerations
- Benchmarks are vendor-reported β PrismML chose the suite and ran the evaluations, and no independent test had confirmed them at release
- It is a compression, not a new model β Bonsai inherits Qwen3.8 27B's knowledge, strengths and blind spots, and cannot exceed it on the whole
- The losses are uneven β knowledge and vision fall furthest, so check the tasks you care about rather than trusting the aggregate
- Not a frontier model β a 27 billion parameter model, even uncompressed, trails the large closed models on hard reasoning and long agentic work
- Custom kernels β the speed figures depend on PrismML's own low-bit kernels, so community runtimes may not match them
- A young company β PrismML raised a seed round of about 22 million dollars, so the pace of future releases depends on a small team
Best Use Cases
| Task | Why Bonsai |
|---|---|
| Local coding assistant | Strong coding retention at a size that fits a single graphics card |
| Private document analysis | Nothing leaves the machine, and the context window holds long documents |
| Offline or low-connectivity work | No cloud dependency once the weights are downloaded |
| Cost-sensitive high-volume tasks | Handles routine work locally and saves cloud calls for hard cases |
| Experimenting with low-bit models | A well-documented example of how far compression can go |
When to choose alternatives:
- Maximum capability β a closed frontier model from OpenAI, Anthropic or Google through its API
- The uncompressed original β Qwen3.8 27B itself, if you have the memory and want every point of accuracy
- Server-side serving at scale β a full-precision open model on a standard inference stack
Getting Started
- Find the Bonsai models on Hugging Face under the
prism-mlorganization, and pick the format for your hardware β GGUF for NVIDIA and general use, MLX for Apple devices - Check that your machine has at least 6 gigabytes of free GPU or unified memory for the 27B model, and more for long contexts
- Load it with a runtime that supports the format, and compare its answers with a cloud model on a few of your own tasks
- Confirm the license on the repository you downloaded before building a product on it
Key Takeaways
- Bonsai is PrismML's family of compressed open-weight models; the flagship Ternary Bonsai 2 27B (September 17, 2026) is Alibaba's Qwen3.8 27B shrunk to 5.9 gigabytes
- It stores each weight as minus one, zero or one, about 1.76 bits per weight, which is what lets a 27 billion parameter model run on a laptop or a single graphics card
- PrismML reports it keeps 98.2 percent of the full model's aggregate benchmark score, up from about 95 percent for its earlier ternary 27B model β a vendor-reported figure
- Both the Bonsai weights and the Qwen base are under Apache 2.0, so commercial use is permitted
- It is a compression, not a new frontier model: it cannot beat the model it came from, and knowledge and vision lose the most










