Blog/Bonsai 27B on DGX Spark
Models · December 2026

Bonsai 27B on DGX Spark: 1-bit and ternary Qwen, measured

By Samuel Seidel · Published December 3, 2026 · Measured December 3, 2026

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.

ModelReleasedBased onBits per weightFile we used
Bonsai 27BJuly 2026Qwen3.6-27B1.125 (1-bit)Q1_0, 3.8 GB
Ternary Bonsai 27BJuly 2026Qwen3.6-27B1.71 (ternary)not tested
Ternary Bonsai 2 27BSeptember 2026Qwen3.8-27Bternarynot tested
Ternary Bonsai 2.5 27B24 November 2026Qwen3.8-27B1.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.

ModelEngineOne userTotal at 4Total at 16Raw data
Ternary Bonsai 2.5 27B, MTP 3 tokensPrismML llama.cpp61.3105.4149.4log
Ternary Bonsai 2.5 27B, no draftingPrismML llama.cpp35.897.2148.7log
Bonsai 27B (1-bit), no draftingPrismML llama.cpp50.5117.2168.1log
Qwen3.8-27B NVFP4, MTP 3 tokensvLLM 0.34.1rc1 nightly25.682.8215.6log
Qwen3.8-27B UD-Q4_K_M, no draftingllama.cpp b1293112.747.3124.1log

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 settingTasks solvedHit the time limitAgent time, all tasksRaw data
Ternary Bonsai 2.5 27B, thinking off5 of 126164 minper task
Ternary Bonsai 2.5 27B, thinking on4 of 126185 minper task
Qwen3.8-27B FP8, thinking off (1 December)2 of 129208 minper task
Qwen3.8-27B FP8 + Pi adapter, thinking off (1 December)5 of 125159 minper 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?

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.

Related pages

Top up from $5, billed per minute

Try a 6 GB model that thinks like a 27B.

Rent a DGX Spark by the minute, build the PrismML fork and check Bonsai on your own prompts.

A dedicated DGX Spark, $0.79/hour, billed per minute. Start with $5, about six Spark hours.

Create account Check memory fit first