Bonsai 27B on DGX Spark: 1-bit and ternary Qwen, measured
PrismML's Ternary Bonsai 2.5 27B packs Qwen3.8-27B into a 6.2 GB file. On one DGX Spark it decoded at 61.3 tok/s for one user with its MTP head, against 25.6 for the full Qwen3.8-27B on vLLM. The 1-bit Bonsai 27B, 3.8 GB, reached 50.5 tok/s with no drafter. In our Pi agent test Bonsai 2.5 solved 5 of 12 Terminal-Bench tasks with thinking off. With 16 users the full model on vLLM is faster in total. Raw logs are linked below.
Which Bonsai 27B is which?
PrismML has published four 27B models under the Bonsai name since July 2026, all with Apache 2.0 weights. They are Qwen models with the weights squeezed to one or two bits, so they keep the original architecture and run on a modified llama.cpp.
| Model | Released | Based on | Bits per weight | File we used |
|---|---|---|---|---|
| Bonsai 27B | July 2026 | Qwen3.6-27B | 1.125 (1-bit) | Q1_0, 3.8 GB |
| Ternary Bonsai 27B | July 2026 | Qwen3.6-27B | 1.71 (ternary) | not tested |
| Ternary Bonsai 2 27B | September 2026 | Qwen3.8-27B | ternary | not tested |
| Ternary Bonsai 2.5 27B | 24 November 2026 | Qwen3.8-27B | 1.76 (ternary) | PTQ1_0 with MTP head, 6.2 GB |
From the PrismML model cards on Hugging Face, read 2 December 2026. The full Qwen3.8-27B in 16-bit is 53.8 GB, according to the Bonsai 2.5 card.
We tested the newest one, Ternary Bonsai 2.5, and the original 1-bit Bonsai 27B. Both need the PrismML fork of llama.cpp: stock llama.cpp rejects the PTQ1_0 type, and the fork has no prebuilt CUDA binary for ARM Linux, so we compiled release prism-b12232-f702476 on the Spark for its GPU (architecture 121a) with CUDA 13.0.3.
How fast is Bonsai on one DGX Spark?
Fast for one user. Ternary Bonsai 2.5 with its built-in multi-token prediction (MTP) head decoded at 61.3 tok/s, 2.4 times the 25.6 tok/s we measured for the full Qwen3.8-27B on vLLM with MTP on another Spark the same day. Without drafting it ran at 35.8. The 1-bit Bonsai 27B reached 50.5 tok/s with no drafter at all.
| Model | Engine | One user | Total at 4 | Total at 16 | Raw data |
|---|---|---|---|---|---|
| Ternary Bonsai 2.5 27B, MTP 3 tokens | PrismML llama.cpp | 61.3 | 105.4 | 149.4 | log |
| Ternary Bonsai 2.5 27B, no drafting | PrismML llama.cpp | 35.8 | 97.2 | 148.7 | log |
| Bonsai 27B (1-bit), no drafting | PrismML llama.cpp | 50.5 | 117.2 | 168.1 | log |
| Qwen3.8-27B NVFP4, MTP 3 tokens | vLLM 0.34.1rc1 nightly | 25.6 | 82.8 | 215.6 | log |
| Qwen3.8-27B UD-Q4_K_M, no drafting | llama.cpp b12931 | 12.7 | 47.3 | 124.1 | log |
Tok/s on an NVIDIA DGX Spark, no failed requests. One user is decode speed; the totals count all output over wall time. Twelve prompts (code, prose, JSON, reasoning), 512 output tokens, temperature 0, thinking as each model defaults. Bonsai rows: three runs per level, 16 server slots of 16K context, on a partner DGX Spark. Qwen3.8 rows: other partner Sparks the same day, from our engine comparison. Script, launch file and build log.
With more users the lead shrinks. At 16 requests Ternary Bonsai 2.5 delivered 149 tok/s in total, and full Qwen3.8-27B on vLLM 216. Without MTP it also reached 149, so drafting adds almost nothing at that load. llama.cpp also starts each user later under load. The median first token at 16 requests took 3.4 s without MTP.
The MTP gain depends on the text. For one user it reached 73.2 tok/s on the reasoning prompts and 55.0 on prose. Every reply in all three runs used the full 512 tokens, mostly on thinking, so these are speeds for reasoning text.
llama-bench on the same machine gave 36.8 tok/s decode and 1,299 tok/s prompt processing for Ternary Bonsai 2.5, and 52.4 and 1,265 for the 1-bit Bonsai 27B. For comparison, a community GB10 result in PrismML's demo repository lists 32.8 tok/s for the previous Ternary Bonsai 2 at the same quantization.
Does Bonsai still work as a coding agent?
Yes, in our test. We ran the Pi agent on the same 12 Terminal-Bench 2.1 tasks and settings we used for Qwen3.8-27B on 1 December. With thinking off, as in that run, Ternary Bonsai 2.5 solved 5 of 12. The unmodified Qwen3.8-27B solved 2 and a Pi-tuned adapter 5, in our Inkling and Qwen test. With thinking on, Bonsai solved 4 of 12.
| Model and setting | Tasks solved | Hit the time limit | Agent time, all tasks | Raw data |
|---|---|---|---|---|
| Ternary Bonsai 2.5 27B, thinking off | 5 of 12 | 6 | 164 min | per task |
| Ternary Bonsai 2.5 27B, thinking on | 4 of 12 | 6 | 185 min | per task |
| Qwen3.8-27B FP8, thinking off (1 December) | 2 of 12 | 9 | 208 min | per task |
| Qwen3.8-27B FP8 + Pi adapter, thinking off (1 December) | 5 of 12 | 5 | 159 min | per task |
Pi 1.7.0 on Harbor 0.27.0, Terminal-Bench 2.1 revision 3e235dff, one trial per task, 100 turns, 64K context, temperature 0.8, time limit 1.33 times the task's own (1,197 to 1,200 s). Bonsai: one PrismML llama-server per setting with MTP on, both settings at once on one DGX Spark, 3 December. Qwen: one vLLM server for both, on a DGX Spark on 1 December, from that earlier article. Run script.
Twelve tasks is a small sample. One task more or less would change the order, so Bonsai matched the tuned Qwen here, nothing more. The two runs also differ in engine and load. The PrismML card reports 60.1 on the full Terminal-Bench 2.1 and 75.6 on SWE-bench Verified, against 80.6 on SWE-bench for the uncompressed Qwen3.8-27B; we have not checked those figures.
Which one should you run?
- One person, fast answers: Ternary Bonsai 2.5 with MTP on. It gave the highest single-user speed of any 27B setup we have measured on a Spark, in 6.2 GB.
- A team on one Spark: full Qwen3.6-35B-A3B on vLLM. In our load test it kept 32 users above 20 tok/s each.
- A 16 GB or 24 GB GPU: this is where Bonsai matters most, because full Qwen3.8-27B does not fit. We did not test those cards.
- Quality first: keep the full model. PrismML's own SWE-bench figures show a 5-point drop.
You can repeat the test on a DGX Spark from GPUwerk at $0.79 an hour, billed per minute (pricing). The fork compiles on the Spark in a few minutes.
FAQ
What is Bonsai 27B?
A family of PrismML models that compress Qwen 27B models to about 1 to 2 bits per weight. Bonsai 27B is the 1-bit version of Qwen3.6-27B (3.8 GB); Ternary Bonsai 2.5 27B is a ternary version of Qwen3.8-27B (about 6 GB). Both are Apache 2.0.
How fast is Ternary Bonsai 2.5 on a DGX Spark?
61.3 tok/s for one user with its MTP head on, and 35.8 without, in our test on 3 December 2026 with the PrismML llama.cpp fork.
Does Bonsai run on standard llama.cpp?
Not the PTQ1_0 and PQ2_0 files: stock llama.cpp rejects them. PrismML says its Q2_0 file runs on stock llama.cpp from release b11556, at lower speed than on its fork.
Is Bonsai worth it on a DGX Spark?
For one user, yes: it was more than twice as fast as full Qwen3.8-27B with MTP. For many users at once, the full Qwen3.6-35B-A3B on vLLM gave more total throughput in our tests.
Sources
Every figure above is attributed to its source in the sentence or table where it appears. Pages were read on 3 December 2026.
- prism-ml/Ternary-Bonsai-2.5-27B-GGUF model card, Hugging Face
- prism-ml/Bonsai-27B-gguf model card, Hugging Face
- prism-ml/Ternary-Bonsai-27B-gguf model card, Hugging Face
- prism-ml/Ternary-Bonsai-2-27B-gguf, Hugging Face
- PrismML llama.cpp release prism-b12232-f702476, GitHub
- Bonsai-demo community benchmarks, GB10 entries, GitHub
- Bonsai-demo: speculative decoding, GitHub