Published: November 29, 2026 | By Vito Ruocco
A 27-billion-parameter AI model that fits in a 6 GB file. That is what PrismML released on November 24: Ternary Bonsai 2.5 27B, a compressed version of Qwen 3.8 27B, the model a lot of people run at home today. The company says it codes almost like the full-size original. I wanted to know two things: how fast it really is on an ordinary graphics card, and whether it is actually good at real work. So I installed it on my own five-year-old RTX 3060 with 12 GB of memory, step by step, measured it with and without its speed trick, pushed it to the full 262,000-token context, and then gave it and the original Qwen the same eight coding prompts: a landing page, a design studio site, a dashboard, an online shop, an animated drawing, a mortgage calculator and two games. Every build is playable in your browser.
The Short Version
- What it is. Ternary Bonsai 2.5 27B is PrismML’s compressed Qwen 3.8 27B. Every weight is stored as -1, 0 or +1, about 1.76 bits per weight. The file is 6.2 GB with the speed head included, against roughly 54 GB for the original at 16 bits. It is open under Apache 2.0.
- The catch. The smallest file uses a format that standard llama.cpp does not read. You need PrismML’s own llama.cpp fork (there is also a Q2_0 file for standard llama.cpp, from build b11556 onward).
- Speed on my RTX 3060. 74.2 tokens per second on average with MTP, the built-in draft head (80.7 on camera), and 42.6 without it. The original Qwen 3.8 27B on the same card: 33.6 with MTP, 19.9 without. More than twice as fast, with two gigabytes of graphics memory to spare.
- Full context. At the full 262K tokens of context, with the cache stored at 4 bits, Bonsai still ran at 66.1 tokens per second on average, using 12.0 GB out of 12. A tester on X had reported about 74 on the same card: honest.
- The real work. Same eight prompts, one run each. Working exactly as written: Bonsai 4 of 8, Qwen 6 of 8. Three of Bonsai’s failures were one wrong line each. The voxel game failed on both. Time for all eight: Bonsai 36 minutes, Qwen 57.
- Verdict. On speed, Bonsai is a monster for a 12 GB card. On the first try, the original Qwen made fewer mistakes. Twice the speed, a little less care.
What Ternary Bonsai 2.5 27B is
PrismML is a company started by researchers from Caltech, backed by Khosla Ventures, Cerberus and Google, with continuing support from Samsung. Its whole idea is compressing neural networks without losing their reasoning. In September it released Ternary Bonsai 2 27B. On November 24 it published version 2.5, with the same 5.9 GB footprint and, in its own words, substantially stronger agentic coding, multi-turn tool use and multi-step task execution.
The base is Qwen 3.8 27B. The architecture is the same: a hybrid attention model, about three quarters linear attention and one quarter full attention, with the same 262,000 tokens of context. It even keeps vision: the image encoder ships as a separate optional file, so text-only users never pay for it. What changes is how every number inside the model is stored. The license is Apache 2.0, so it is free to use, commercial use included.
PrismML also says this release fixes a weakness of version 2: the older model would overthink and get stuck in repetitive loops on long jobs. Version 2.5, they say, finishes tasks in fewer turns and with fewer tokens. That matters a lot for agents, where one early mistake can derail an entire chain of tool calls.
The trick, with one picture
Think of a normal AI model as a wall of billions of dimmer knobs. Each knob can sit at any position, 0.4821, minus 1.2033, and the model remembers each position with 16 bits. Bonsai swaps every dimmer for a simple switch with only three positions: down, off, up. Minus one, zero, plus one. That is what “ternary” means.

On its own, a switch would be too crude. So every group of 128 switches shares one volume knob, a 16-bit scale, which lets the model still be loud or quiet where it matters. PrismML also rotates each weight matrix with a Hadamard transform before rounding it to three values, a mathematical trick that spreads the information more evenly so less of it is lost, and the runtime applies the matching transform on the fly. The result is about 1.76 bits per weight. The original Qwen at 16 bits is around 54 GB on disk; Bonsai is 5.9 GB without the draft head and 6.2 GB with it. Nine times smaller.
What PrismML claims
These are PrismML’s numbers, from their launch post and model card, not mine. On SWE-bench Verified, the classic test where a model has to fix real bugs in real open-source projects, the full Qwen 3.8 27B scores 80.6. The previous Bonsai 2 scored 60.8. Bonsai 2.5 scores 75.6. On AppWorld, an agent test, it jumps from 51.2 to 90.5, almost level with the original’s 93.2. On DeepSWE it goes from zero to 27, against the original’s 30.1. On Terminal-Bench 2.1 it goes from 52.8 to 60.1 (the original: 70.8).
There is one honest line in their own table: on LiveCodeBench v6 it actually went down a little, from 83.8 to 83.0, against 87.6 for the original. I like that they published it. A smaller model is a trade, and the table shows where the trade is.
PrismML’s two demos
The launch post includes two complete local workflows. In the first one, Bonsai gets a test that only fails when it runs together with other tests, the kind of bug the person who reported it could not even reproduce. It investigates the repository, builds a minimal reproduction, finds the cause and writes the fix, and the patch then passes a maintainer test the model had never seen. In the second, it gets a single screenshot of a pricing page and rebuilds it as a web page, then compares its own render with the original and keeps adjusting, round after round, until about 92% of the pixels match. Both run fully offline, on the user’s own machine.

The speed claims
On a single NVIDIA H100, PrismML reports 291 tokens per second with MTP. On a consumer RTX 4090, 204. Those are fast cards. The question for most people is what happens on a normal one. A tester on X, @DogukanUrker, ran Bonsai 2.5 on an RTX 3060 with 12 GB at the full 262K context and reported about 74 tokens per second with the draft head, and 47 without it. That is a claim I could check on my own card.
The catch: you need PrismML’s fork
The 6 GB file uses a packing called PTQ1_0: dense trits, the three-value digits stored as tightly as possible. Standard llama.cpp rejects it as an unknown type. PrismML maintains its own fork of llama.cpp with the kernels for it, and publishes ready-made builds for Windows, Linux, macOS and more.
There is a second route: a Q2_0 file of 7.7 GB that runs on standard llama.cpp from release b11556 onward. The model card carries a warning worth repeating: older standard builds load that file without any warning and produce garbage. If you go that way, check your build first with llama-cli --version. I went with the fork, because the PTQ1_0 file is both the smallest and, on NVIDIA cards, the fastest.
Setting it up on Windows, step by step
Everything below happened on my own PC with the RTX 3060, in one window, the Windows command prompt. I recorded it as it happened.
1. The engine. On PrismML’s GitHub releases page for their llama.cpp fork (I used release prism-b12232-f702476, from November 26), under “Windows (CUDA)”, there are two zip files you need for an NVIDIA card: the program, llama-prism-b12232-f702476-bin-win-cuda-12.4-x64.zip, and the CUDA runtime that goes with it, cudart-llama-bin-win-cuda-12.4-x64.zip. I downloaded both with curl, which is built into Windows, unpacked them into a folder called llama with tar, and ran llama\llama-server --version to confirm the build.
2. The model. On Hugging Face, the repository prism-ml/Ternary-Bonsai-2.5-27B-GGUF lists the three packings. I downloaded Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf, the PTQ1_0 file with the MTP draft head inside: 6,232,818,944 bytes. On my line it took 1 minute 48 seconds. Its SHA-256 matched the one PrismML lists in its own preset file.
3. The server. The command I ended up using:
llama-server -m Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf -ngl 99 -fa on -c 32768 -np 1 --min-p 0 --spec-type draft-mtp --spec-draft-n-max 3 --spec-draft-p-min 0
In plain words: -ngl 99 puts every layer on the graphics card, -fa on turns on flash attention, -c 32768 gives it 32,000 tokens of context, and -np 1 tells the server to serve one conversation at a time. That last one is a tip from the model card for small cards: in automatic mode the server reserves memory for four conversations at once. --min-p 0 matches PrismML’s recommended sampling (llama.cpp’s default is 0.05). The three --spec-* options switch on the MTP draft head.
How fast it really is
First run, plain: 41 tokens a second
Without the draft head, every test got the same prompt: write a complete calculator web app in one HTML file. On camera, Bonsai wrote it at 40.9 tokens per second. For a 27-billion-parameter model on a 12 GB card, that is already very good.
MTP: the trick that doubles it
MTP means multi-token prediction. Picture a fast assistant who whispers the next three words, while the big model only has to check them, all three in one go. When the guess is right, you get three words for the price of one. When it is wrong, nothing is lost: the big model simply writes its own word. So the final answer is exactly what the model would have written anyway; only the speed changes. Same command plus the draft options: 80.7 tokens per second on camera. Twice as fast, same card, same file.

Qwen 3.8 27B on the same card
For the comparison I used the original Qwen 3.8 27B in the smallest file I trust on this card: ISTA-DASLab’s 3-bit GSQ-RCO IQ3_XXS file, 10.5 GB, also with an MTP head. To fit, I had to drop to 8,000 tokens of context with an 8-bit cache. Same calculator prompt: 33.8 tokens per second on camera.
The full table
Off camera, I ran three different prompts on each setting (the calculator, a 300-word explanation, and a Python CSV script with tests) and averaged the generation speed:
- Bonsai 2.5 27B with MTP, 32K context: 74.2 tokens per second, 9.6 GB of graphics memory
- Bonsai 2.5 27B without MTP: 42.6 tokens per second, 8.7 GB
- Qwen 3.8 27B with MTP, 8K context: 33.6 tokens per second, 11.6 GB
- Qwen 3.8 27B without MTP: 19.9 tokens per second, 10.7 GB

Two details are worth noticing. MTP helps more on code than on plain prose: on the explanation prompt, Bonsai dropped to about 66 tokens per second, because prose is harder to guess three words ahead. And Qwen with MTP almost fills the card at only 8,000 tokens of context. That will matter later.
The full 262K context
The claim from X was about the full context: 262,000 tokens, a whole book of conversation memory. That memory, the KV cache, is huge, so I stored it at 4 bits with -ctk q4_0 -ctv q4_0. At 8 bits it simply does not fit on a 12 GB card. On camera: 65.7 tokens per second, with nvidia-smi showing 11.8 GB used out of 12. Full to the brim, but it works. Off camera my average was 66.1, and 76.5 on the code prompt, so the tester’s 74 is a fair number.

Eight real jobs
Speed is nice, but does it actually work? I gave Bonsai eight prompts, the kind of jobs people test small models with. One run each, no help, reasoning effort on medium, which is PrismML’s own setting for shorter answers (the default, extra high, thinks much longer). Bonsai had 65,000 tokens of room, because on this card it can afford it. Every file in the gallery is exactly as the model wrote it. When a single line broke a feature, I fixed that line, marked it in the code with a comment, and published the original too.
Job 1: a premium landing page for a GPU that does not exist
The prompt asked for a product page for a fictional graphics card, the Voltforge X9, with the card drawn in code. Bonsai drew it in SVG, with three fans that spin and an accent strip that glows, plus spec cards that count up as you scroll, a benchmark chart and an exploded view. 32,394 tokens, 8 minutes 20 seconds.
There was supposed to be a ray-tracing demo where a light follows your mouse and casts shadows, and as written it stayed empty. One line: the code saved the canvas’s drawing function, ctx.beginPath, in a variable without binding it to the canvas, so the browser threw “Illegal invocation”. Changing it to ctx.beginPath.bind(ctx) fixed it: the light follows the mouse and the shapes cast real shadows.

Job 2: a colour-blocking design studio
A one-page site for a fictional studio called Chromafield, in a loud colour-blocking style, with the GSAP animation library: huge type, flat red, cobalt blue and acid yellow, panels that slide in from four sides and lock together as you scroll, giant letters that move, a ticker band. Under two minutes, about 8,000 tokens. There is one small error at the very end of the script, but the only thing it removes is a subtle scroll effect on the menu. Everything you see works.

Job 3: a sales dashboard
A dashboard with charts drawn by hand, no libraries: four KPI cards with sparklines, a revenue chart with tooltips, a donut chart of traffic sources, sales by region, and a table you can sort and search. Switching the range from seven days to twelve months regenerates every number and every chart. First try, zero errors, about four minutes. This was one of Bonsai’s best results.

Job 4: a coffee shop
Emberline Roasters: six coffees, each bag drawn in CSS with its own label and colour, and a cart drawer that works (add, remove, quantities, total). The subscription builder, though, was empty as written: the code called insertOption() on a dropdown, a function that does not exist in browsers. One line, replaced with the standard add(new Option(...)). Fixed, you pick the coffee, the grind, the size and the frequency, and the price updates live.

Job 5: an octopus on a unicycle
Just for fun: an octopus riding a unicycle on a tightrope above a city at sunset, juggling three teacups, all in one animated SVG. The wheel turns, the cups go round, the octopus sways to keep its balance and birds fly past. Two and a half minutes at 73.6 tokens a second. Honestly, I love it.

Job 6: a mortgage calculator
The practical one, and here Bonsai tripped. As written, every result said zero dollars. The code created a number formatter, new Intl.NumberFormat(...), and then called it like a function, so the first calculation threw an error. One line: turning it into a real function that calls .format(). Fixed, the numbers are right. On a $360,000 loan at 6.5% over 30 years, the payment is $2,275.44 a month, and the total interest $459,160. I checked both against the standard amortization formula: correct to the cent, but only after the fix.
Job 7: a voxel sandbox
Now the games, where small models usually fall apart. A first-person block-building world with terrain, trees, water, mouse look, walking, jumping, and breaking and placing blocks. As written, Bonsai’s version crashed before you could start: it read atlas.canvas from a three.js texture, which keeps its canvas in atlas.image. I fixed that line, the world loads and looks good, and then you fall straight through the ground, forever. The collision code is broken, and that is not a one-line job, so this one is a fail.
Job 8: a zombie survival game
A dark warehouse at night. Zombies come in rounds through four boarded-up windows, tear the boards off and climb in; you rebuild the boards by holding E. Pistol with muzzle flash and recoil, reload, a flashlight, points, rounds, health and a game-over screen. Six minutes, 24,399 tokens, and it ran first time. It is dark, really dark, but it is a real game.
Bonsai’s score on its own
Four of eight worked exactly as written. Three more worked after a one-line fix. One game failed. Thirty-six minutes for all eight builds, on a card from five years ago.
The head-to-head: the same eight prompts on Qwen 3.8 27B
Then the part I promised: the same eight prompts, on the same card, given to Qwen 3.8 27B, the model Bonsai was squeezed from. Same engine, same reasoning effort, same sampling. One condition, and it is the whole story of a 12 GB card: Qwen’s file is 10.5 GB, so the most room I could give it without overflowing was 32,000 tokens, with the cache at 4 bits (36.3 tokens per second in my test). At 48,000 tokens it spilled into system memory and crawled at 12 tokens a second. So Qwen got 32K and Bonsai 64K.
One more practical lesson from this part: with Qwen using 11.6 GB, a few desktop apps opening in the middle of a build were enough to push part of the model out of the card, and the speed fell to 0.1 tokens per second. I cancelled that build and redid it with the apps closed. On a 12 GB card, a smaller model is not only faster, it is also much harder to knock over.
Here is how Qwen’s eight builds went:
- GPU landing page: cleaner, and the ray-tracing lab worked first time.
- Design studio: calmer, and it works.
- Dashboard: it looks great, but the revenue chart is wrong. The axis stops at $5,000 while every day is above that, so the chart is a solid block. No error message, just wrong.
- Coffee shop: works completely, subscription builder included.
- Octopus: smaller and simpler.
- Mortgage calculator: worked first time, with the right payment.
- Voxel sandbox: Qwen built the whole world and then forgot to add it to the scene, so you see only sky. One line fixes that, and then the block faces are torn apart. A fail, like Bonsai’s.
- Zombie game: works first time, flashlight and all (one sound effect throws an error; the game is fine).

The scoreboard
- Working exactly as written: Bonsai 4 of 8, Qwen 6 of 8.
- Total time for all eight builds: Bonsai 36 minutes, Qwen 57 minutes.
- Tokens written: Bonsai 144,197, Qwen 103,000.

So Bonsai was faster overall even though it wrote about 40% more tokens. That is the speed advantage at work: more words, written much faster.
Is Bonsai 2.5 a monster?
On speed, absolutely. A 27B model at 70 to 80 tokens a second on a 12 GB card, with room left for the full 262K context, is a big deal. Most people with a card like mine had to choose between a small model that is fast and a 27B that is slow and leaves no memory for anything else. Bonsai removes most of that choice.
On the first try, though, the original Qwen made fewer mistakes. Most of Bonsai’s mistakes were tiny, one wrong line each, the kind an agent that runs its own code would catch and fix in one more step. That is the trade of a model nine times smaller: twice the speed, a little less care.
If you have a 12 GB card and you write code with a setup that runs and checks its own work, Bonsai 2.5 is the one I would install today. If you want the best possible answer on the first try and you can wait, the original Qwen is still the more careful model.
The conditions, to be fair
- One run per prompt, on one PC. These are my builds, not a benchmark.
- Reasoning effort medium for both models (PrismML recommends medium for shorter answers; the default, extra high, thinks much longer).
- Qwen ran in a 3-bit community file (ISTA-DASLab GSQ-RCO IQ3_XXS), with 32K of context against Bonsai’s 64K, because that is all that fits on the card.
- PrismML’s benchmark numbers are PrismML’s own. The 74 tok/s report on X is a single tester; my numbers agree with it.
Try every demo, and get the code
Every build from this test is in my free gallery, both models, originals and fixed versions, playable in your browser:
ruocco.it/ai-demos/bonsai-2-5-vs-qwen-3-8-27b-rtx-3060
If you want the exact prompts, the server commands, the benchmark script and the fixes, they are in the Ruocco Academy, which is a waiting list for now.
Sources
- PrismML: Introducing Ternary Bonsai 2.5 27B (November 24, 2026)
- Model card and GGUF files on Hugging Face
- PrismML llama.cpp fork, release prism-b12232
- RTX 3060 test by @DogukanUrker on X
- Qwen 3.8 27B GGUF by ISTA-DASLab
If you like local AI tested for real, subscribe to @VitoMind on YouTube: the next model is already running on this card.