Ternary Bonsai 2.5 27B
Less waiting for Python fixes on our desktop
- Test
- Small Python repairs and pretend meeting room bookings
- Model files
- Ternary Bonsai 2.5 27B takes up 7.67 GB on disk. The numbers that shape a model’s answers are called weights. Ternary means each weight can have one of three values.
- Ran on
- Our desktop has one RTX 5090 graphics card with 32 GB of memory. We also tested Bonsai on the first 96 booking requests using only the processor in an ASUS ROG Flow Z13 laptop.
- License
- Apache 2.0
Model guides · PrismML · At home
Bonsai fixed Python code faster than bigger AI models
Bonsai is a small AI model. On our desktop we gave it and three bigger models the same broken Python code. Bonsai fixed about as many functions and returned fixes sooner. It made more mistakes on pretend room bookings.
In short
- How much code did Bonsai fix? Each model got the same 64 short pieces of Python code for processing receipts. We told the models what each piece should do and asked them to fix it. Bonsai fixed 62 on the first try. So did DaisyRose and the 20.22 GB Qwen model. The 17.56 GB Qwen model fixed 63.
- What PrismML built Bonsai for. PrismML says, “This release targets long-horizon, tool-driven work.” It built Ternary Bonsai 2.5 27B to use other programs to do a job that takes many steps. Neither of our tests covered that work. We ran none of PrismML’s tests.
- Bonsai sometimes chose a room when it should have waited. Bonsai got eight of 192 pretend meeting room requests wrong on our desktop. Each Qwen model missed one. DaisyRose got them all right. In six of its eight mistakes Bonsai tried to book a room or change a booking. It should have asked the customer to break a tie or explained that no time met the rules. Nothing was really booked.
What our tests showed
More of Bonsai’s fixes arrived within a minute.
We started the clock each time we gave a model a broken function. On the first try Bonsai returned a working fix within 60 seconds for 36 of the 64 functions. The 20.22 GB Qwen model did that for 18 functions. The 17.56 GB Qwen model did it for 17 and DaisyRose for 11.
Bonsai could look up available rooms itself.
For the 192 booking requests, we gave Bonsai the list of available times. On a separate set of 48 requests it had to ask for that list first. It looked up the times and made the right decision on every request.
What to watch for
A room decision took minutes on our laptop.
We gave Bonsai the same first 96 booking requests on both machines. The median wait was 369 seconds (about six minutes) using the laptop processor and 21 seconds using the desktop graphics card. On each machine half the waits were shorter and half were longer.
Bonsai missed different bookings on the two machines.
Bonsai got 91 of the first 96 requests right on the desktop and 89 on the laptop. Four desktop mistakes came out right on the laptop. On six other requests Bonsai was right on the desktop and wrong on the laptop. The settings were the same. The processor and graphics card do the arithmetic slightly differently. With one try per machine we can’t tell why those 10 outcomes changed.
Code can run and still give the wrong answer.
Even the broken code gave the right answers on the examples we showed the models. To find a bug, each model had to read the rules for what the code should do. Whenever a Bonsai fix failed our checks, the code ran but gave a wrong answer on an example we had kept back.
Neither test asked Bonsai to work through a real software project or recover when another program failed.
The facts
Which Bonsai file did we run?
We chose the 7.67 GB Bonsai file marked Q2_0. It works with the standard version of llama.cpp, a free program for running AI models on your own computer. We ran Bonsai without the optional part that speeds up replies.
All four AI models we tested are versions of the same underlying model, Qwen3.8-27B. Here “bigger” means the size of the download. We chose three models for home computers whose downloads were each more than twice the size of Bonsai’s. Two were compressed versions of Qwen at 17.56 GB and 20.22 GB. The third was DaisyRose-27B at 17.69 GB. Its maker gave Qwen further training.
For NVIDIA graphics cards PrismML recommends the file marked PTQ1_0. It runs in PrismML’s own version of llama.cpp. That is the 5.93 GB download PrismML describes as “about 9× smaller” than the full-size Qwen model. Our test did not include that Bonsai download, the full-size original or the other very small models PrismML compared it with.
How long did we wait for working Python fixes?
We planted bugs in 64 small Python functions based on eight ways of processing receipts. We gave each model one function at a time on our desktop. A fix counted only if the code gave the right answer on every example we had kept back. Each row shows how many working fixes arrived within that wait per function. The last row includes all working fixes from the first try, however long they took.
| Wait per function | Bonsai | Qwen 20.22 GB | Qwen 17.56 GB | DaisyRose |
|---|---|---|---|---|
| 10 seconds | 0 | 0 | 0 | 0 |
| 30 seconds | 15 | 3 | 1 | 2 |
| 60 seconds | 36 | 18 | 17 | 11 |
| 120 seconds | 50 | 36 | 40 | 38 |
| 300 seconds | 62 | 52 | 55 | 57 |
| Final total | 62 | 62 | 63 | 62 |
We asked each model to fix the first 32 functions again. Bonsai had fixed all 32 on the first try and fixed 31 on the repeat. Across all attempts including the repeat, the median wait for a reply was 49.5 seconds for Bonsai and 105.7 seconds for the 20.22 GB Qwen model. These times include replies with incorrect fixes.
How did we score the room requests?
The model had to follow the customer’s rules, such as a spending limit. We checked that it used the right account. If it made or changed a booking, it had to choose the right time. If it held off, it had to explain why. In two of its eight mistakes Bonsai was right to make a reservation but picked the wrong time.
With the room list supplied, Bonsai got 91 of 96 requests right in the first set and 93 of 96 in the next. Together that made 184 of 192. We estimate Bonsai would get 92.0% to 98.2% right on new requests made the same way under the same settings. If we repeated the test many times, at least 95% of the ranges calculated this way would cover the true success rate.
Before the test we chose the 20.22 GB Qwen model to compare with Bonsai. It got 191 of 192 requests right. So did the 17.56 GB Qwen model. DaisyRose got all 192 right. The 17.56 GB Qwen model had already answered every practice request correctly. That left little room for this test to show whether another model could do better.
How quickly did the models write their booking replies?
We measured how quickly each model produced text on the first 96 booking requests. The program counts text in tokens. A token is a word or part of a word. The count includes text the model produced while thinking through its answer.
On our desktop the median speed was 127 tokens per second for Bonsai and 77 for DaisyRose. The 17.56 GB Qwen model wrote 78 tokens per second and the 20.22 GB Qwen model wrote 70. On the laptop processor Bonsai wrote 8.5 tokens per second.
Would a smaller graphics card do?
We measured how much memory our graphics card was using just after loading Bonsai. The median across four loads was 12.7 GiB for the whole card. That includes memory used by other desktop programs. We didn’t measure peak memory use during a reply or try a smaller card, so we can’t say how much graphics memory is enough.
We ran one request at a time. Each model used its usual setting for how much to think before answering. We used the recommended settings for how it chose its words. The request and reply together could use 65,536 tokens. We allowed up to 49,152 of those tokens for the reply, including thinking. Every reply finished within that limit.
We ran the tests in November 2026. We checked each Python fix by running it on examples the models had never seen. A separate program checked the answer key for the booking requests.