medium.com 6 min read Original Source

Someone Shrank Qwen-27B by 9x and It Kept 98% of Its Benchmark Scores

Read the article for free here.

Qwen 3.8-27B is one of the best open source model right now, and the full version is a 54 GB download. Last month a startup called PrismML released a 5.9 GB copy of it called Bonsai 2, and says it keeps 98% of the original’s benchmark scores.

They got there by storing every weight in the model as -1, 0 or +1. Shrinking this model to around 6 GB normally breaks it. The ordinary 1-bit version people already share is about the same size, and on hard science questions it does no better than guessing. But PrismML’s version still works, and on every graphics card one outside group tested, it was the fastest version of Qwen they ran.

Why this 6 GB file works when the other one doesn’t

Bonsai and the ordinary 1-bit file are both about 6 GB, and both start from the same Qwen. The difference is what happens after the weights are shrunk.

The usual 1-bit file is made the way regular quants are made. Someone takes the finished model and rounds each weight to the closest value the small format allows. Nothing retrains the model afterwards to fix the mistakes that rounding introduces. At 4 bits the mistakes are small enough not to matter. At under 2 bits there are so many of them that the model can’t reason anymore, which is why it guesses on hard questions.

PrismML started with the same kind of rounding, down to just 3 values per weight (-1, 0, +1). Then they kept training the model in that state, with every weight still limited to those three values. With enough of it, the model gets back most of what the rounding broke.

They haven’t explained how they trained it. The evidence comes from one person outside the company who compared Bonsai’s weights with a plain rounded copy of Qwen. About 9 in 10 weights were identical. When that person set the remaining 1 in 10 back to the rounded values, the model stopped working. So most of Bonsai is a plain rounded Qwen. The retrained part is small, but it’s what keeps the model working.

This also means you can’t make a Bonsai yourself. llama.cpp’s quantize tool only does the rounding. The training step needs PrismML’s method, which isn’t public, so the only Bonsai models are the ones PrismML decides to make.

What it’s good at, and where it struggles

Short, self-contained work holds up best. On PrismML’s tests Bonsai matched the full model on math problems and short coding questions, and did a little worse on GK and on questions about images. Its biggest slip was on hard science questions, the same test the ordinary 1-bit file fails, and it still gets most of those right.

Those results were measured with the model on its highest thinking setting, with room to think as long as it liked. On medium, their own score comes in a little lower, and an outside benchmark puts it lower again. So the 98% is the best case.

Longer jobs are where you notice the gap. PrismML also tested it on coding tasks that take many steps, and there it kept about three quarters of the full model’s score. Those results aren’t in the 98%. One person ran the same five coding tasks through an agent on a 16 GB laptop GPU, once with Bonsai and once with a regular 3-bit Qwen quant of about 10 GB. Both finished everything. Bonsai wrote three times as much and took three times as long, and the person running it preferred the regular Qwen’s result each time.

It also gets stuck sometimes. PrismML’s own known-issues page says tool calls “sometimes come out malformed or loop“, for example as a long run of slashes, and that some prompts make it think in circles.

Long documents go the other way. On a 36 GB MacBook, one test fed both models a prompt of about 148K tokens. Bonsai handled it, and the regular 4-bit Qwen ran out of memory unless its cache was compressed. Bonsai also generated faster than the 4-bit Qwen at every prompt length Qwen could handle. So when it’s slow on agent work, it’s from writing more, not writing slowly.

Should you run it?

If a regular quant of Qwen 3.8 27B fits on your machine with room for the context you need, run that instead. It behaves more like the original, and unlike Bonsai it works in Ollama and LM Studio. Bonsai is the one to run when nothing regular fits.

How to run it

You need PrismML’s own build of llama.cpp. Ollama and LM Studio can’t load Bonsai yet, and regular llama.cpp refuses the files. PrismML has a pull request open to add support to regular llama.cpp, but it isn’t merged. Even once it is, PrismML says both files they publish today may only ever run in their own build. Their build has ready-made downloads for Windows, Linux and Mac, and it’s made for NVIDIA cards and Macs. AMD cards still have open bugs. On NVIDIA, pick a CUDA 12 download, the CUDA 13.3 ones crash on some systems.

# 1. download PrismML's build: github.com/PrismML-Eng/llama.cpp/releases/latest
# 2. download the model
hf download prism-ml/Ternary-Bonsai-2-27B-gguf Ternary-Bonsai-2-27B-PQ2_0.gguf --local-dir .
# 3. start a server
./bin/llama-server -m Ternary-Bonsai-2-27B-PQ2_0.gguf -ngl 99 -fa on -c 32768 
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.05
# 1. download PrismML's build: github.com/PrismML-Eng/llama.cpp/releases/latest
# 2. download the model
hf download prism-ml/Ternary-Bonsai-2-27B-gguf Ternary-Bonsai-2-27B-PQ2_0.gguf --local-dir .
# 3. start a server
./bin/llama-server -m Ternary-Bonsai-2-27B-PQ2_0.gguf -ngl 99 -fa on -c 32768 
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.05

That’s the 7.2 GB file, PrismML’s default. It’s faster on RTX 50-series and data-center cards, and faster at reading long prompts on everything. On an 8 GB card or an RTX 40-series, swap in Ternary-Bonsai-2–27B-PTQ1_0.gguf, the 5.9 GB one.

8 GB is tight. One user on an RTX 3070 ran out of memory with the defaults, then got about 40 tokens a second by adding -ctk q8_0 -ctv q8_0 -b 256 -ub 64. Image support comes as a separate file, and the command above doesn’t load it, so keep it that way on 8 GB. Another user whose setup did load it got 2 tokens a second, and 32 after removing it.

Macs use the same build and the 7.2 GB file. There’s also an MLX version, but it needs its own loader and LM Studio can’t open it yet.

Then there are 2 settings in whatever app talks to the server.

Give it a big output limit, 16K tokens or more. Bonsai’s thinking counts against that limit, so if your app sends a small one, it runs out mid-thought and you get an empty reply. PrismML says this is the complaint they hear most.

And send reasoning_effort: "medium" in the request, next to max_tokens. The default is the highest setting, which thinks the longest and loops the most. At a 16K limit medium is about as accurate, because the highest setting often runs out of room before it answers. With no limit, the highest setting still scores better.

On an 8 GB card, Bonsai 2 is the only way to run Qwen 3.8 27B and still have it reason, and anywhere a regular quant fits, the regular quant is the closer copy.

if this helped, clap 👏 so others can find it too. Further reading:

Qwen 3.8 Is the Most Broken Model Release of 2026. Here’s What Works Where.: Why “high” reasoning effort errors, and the fix in each app.

What to Spend 12GB of VRAM On: Bigger Model, Longer Context, or Neither: Whether 12 GB buys you a bigger model or more context.

One Qwen 3.8 Default Is Eating Your Context.: The Qwen 3.8 thinking default that quietly burns through your context.

The Best Local Coding Model for the $899 Mac mini: Which coding model fits a 16 GB Mac mini and still works.

Ollama Alternatives in 2026: What to Move To, and What Breaks When You Do: Where to go when Ollama can’t load the model you want.