Bonsai 2.5 Shrinks a 27B Model’s Weights to 5.93 GB
How Bonsai 2.5 fits 27B model weights into 5.93 GB, what PrismML’s benchmarks show, and how to measure memory and coding performance locally.

PrismML’s Ternary Bonsai 2.5 27B puts the weights of a 27-billion-parameter AI model into 5.93 GB in its most compact format. Its November 24 release also improved the scores that matter for a local coding assistant, including fixing bugs across a repository and calling tools over several steps. The size makes it easier to load a model on hardware you already own. The bigger question is whether it can stay fast and finish useful work once you give it a real repository.
How Bonsai fits 27 billion parameters into 5.93 GB
Bonsai 2.5 starts from Qwen3.8 27B. PrismML reports 53.8 GB for the full-precision FP16 model and 5.93 GB for its compact PTQ1_0 packing. That is about one-ninth the original weight size. Bonsai keeps the same 27B-class architecture while using fewer bits to store its weights. The parameter count remains in the 27B class.
The word ternary describes the compression. A ternary weight has three possible values, minus one, zero, and plus one. PrismML uses one shared scaling value for each group of 128 weights so groups can still represent different magnitudes. The model card reports 1.76 bits per weight for the compact representation once storage overhead is included. Its math works because the runtime knows how to interpret the packing. PrismML technical paper

The chart also explains what changed in 2.5. Bonsai 2 and Bonsai 2.5 have the same published compact weight size. The upgrade is about what the model can do with those weights, especially during longer sessions. You still need to compare the same packing and runtime when interpreting size or speed numbers.
File size, RAM, and VRAM are different things
A model’s weight file is what sits on disk. When you run it, the inference engine also needs working buffers, and it typically stores information about the tokens it has already seen in a key-value cache. A coding session keeps adding things to that context, including tool descriptions, file excerpts, test output, and the assistant’s own messages. More context can increase memory use while the file on disk stays the same size.

Think of a first run in three stages. First, the runtime opens the model and gets the weights onto the device that will use them. Then it reads the initial prompt and repository context, a stage called prefill. Finally it produces new tokens, a stage called decode. An assistant that repeatedly reads files and runs tests cycles through those last two stages. A quick decode rate can still sit alongside a frustrating delay after the agent reads a large file.
If two people report different memory use for the same model, compare context limits, concurrent requests, GPU offload, and whether either run included vision or speculative decoding. PrismML’s model card notes that its server can allocate multiple request slots automatically. On a machine serving one person, it documents using a single slot to reduce unnecessary memory pressure. PrismML runtime notes
What improved for coding and tool use
PrismML’s results show gains on tasks where the model has to take several actions. Its average across three coding benchmarks moved from 37.9 to 54.2. The average across AppWorld and τ³-Bench moved from 60.2 to 82.2. The vendor’s benchmark set still contains tasks that the full-precision model handles better. PrismML benchmark results

| Benchmark | Bonsai 2 27B | Bonsai 2.5 27B | Qwen3.8 27B FP16 |
|---|---|---|---|
| SWE-bench Verified | 60.8 | 75.6 | 80.6 |
| DeepSWE v1.1 | 0.0 | 27.0 | 30.1 |
| Terminal-Bench 2.1 | 52.8 | 60.1 | 70.8 |
| AppWorld | 51.2 | 90.5 | 93.2 |
SWE-bench Verified is relevant if your goal is to fix issues in an existing repository. Terminal-Bench is closer to following a sequence of tasks in a shell. AppWorld tests work across simulated apps. A gain on one of these tasks tells you which behavior improved in that test. Your internal framework and team conventions need a separate test.
A useful task for a local model has a way to check the answer. Give it a failing test with a known cause and see whether it can find the right file, make a small change, and get both the original test and nearby tests to pass. That shows more than asking it to write a plausible fix in a chat box.
What the speed numbers actually measure
PrismML reports 112 tokens per second for plain decoding on an RTX 4090 with the PTQ1_0 packing and 98 tokens per second using PQ2_0 on the same card. Its Apple M5 Pro entry shows 30.2 tokens per second on Metal with PQ2_0. Those are single-device results from PrismML’s benchmark, using its runtime. They measure token generation under a fixed test setup. PrismML inference speed tables

The launch post also reports 204 tokens per second for the RTX 4090 with speculative decoding enabled. That mode uses a small draft head to propose several tokens before the model checks them. It can speed up token generation when those guesses are accepted. The model card says the draft head can slow prompt processing because it makes an additional pass over the prompt. A long input followed by a short answer can therefore feel different from a short input followed by a long answer.
What to watch on your own computer
On a Mac, the CPU and GPU share unified memory with the rest of the system. Your editor, browser, and background processes can all affect the room left for a long model session. In Activity Monitor’s Memory tab, record memory pressure and swap before loading the model, then check again after several turns. Keep the editor and tools you normally use open so the test reflects how you work. Apple’s Activity Monitor guide

On a PC with a dedicated NVIDIA GPU, record used and free GPU memory alongside total system memory. If the runtime offloads part of the work to the CPU, the model can still respond while taking much longer to finish. Check whether extra waiting starts when you increase the context or when you launch a second request. Test one change at a time so you can see which setting caused it.
A 15-minute test for a coding workflow
- Pick one small fix. Use a disposable checkout and a failing test with a known expected result.
- Run the task with a short prompt. Record the time until the first visible response, the total time, and whether the patch passes the relevant tests.
- Restart from the same checkout and add realistic context. Include the supporting files the agent would actually read and a normal test log. Keep the model, hardware, and reasoning settings the same.
- Compare the patch and the machine. Check for unrelated edits, skipped assertions, repeated tool calls, and rising memory use. Repeat a run if another process interrupted it.
If the model handles that fix reliably, try a task where the first proposed change fails and the assistant has to recover. The value of Bonsai 2.5 shows up when it keeps track of the goal through that second attempt. A local model earns a place in your workflow when it reaches a patch you would merge, at a speed you can work with.


