Prism ML's Ternary Bonsai 2.5 27B
converted to NInfer's .ninfer format, with the vision tower and Prism's own MTP draft head for
speculative decoding. One self-contained file with text, vision and MTP.
This file only runs on the NInfer build from
JGamboa/ninfer-4090-windows
(branch main), on an NVIDIA RTX 4090 (sm_89), on Windows or Linux. It does not load in
llama.cpp, vLLM or Transformers. It uses the same artifact format and kernels as
Ternary-Bonsai-2-27B-NInfer-4090,
so an existing NInfer build runs it as is.
| File | MTP layer | Size | SHA-256 |
|---|---|---|---|
bonsai25_27b_vl_mtp_q4q5.ninfer |
Prism's draft layer, Q4/Q5 mix | 6.4 GiB (6,869,420,800 bytes) | 17c0a1a88446d7aecca41549c841507494d4532d78ad16f702ef010222e881b0 |
bonsai25_27b_vl_mtp_q4q5.ninfer.conversion.json is the conversion report: sources, stored
formats and parameters.
PTQ1_0 GGUF (1.76 bits per weight, Hadamard-rotated
basis), stored as t5_g128_fp16. The vision tower is Prism's mmproj (BF16), quantized to the
official Vision formats.-mtp GGUF (block 64, Q4_0). It is decoded
and stored as a Q4/Q5 mix: Q4 for the query/key and MLP gate/up banks, Q5 for the rest, Q8 for the
input projection. It was not retrained here; Bonsai 2's retrained head is not used.--lm-head-draft head keeps 131,072 rows.Compared with bonsai2_27b_vl_mtp_retrained.ninfer on the same build, ninfer.exe, KV rk4v4-e8,
MTP 3 + --ngram chain, --lm-head-draft, greedy, thinking off, eight prompts from
examples/cli/messages, one run per prompt, alternated:
| Bonsai 2 retrained | Bonsai 2.5 (this file) | |
|---|---|---|
| Mean decode | 271.4 tok/s | 287.3 tok/s |
| Mean tokens per round | 2.87 | 3.03 |
| Mean draft acceptance | 55.1 % | 60.3 % |
It is faster on six prompts and 1-4 % slower on two. The two models write different text, so the acceptance mixes head quality with the text each one produces.
| Measurement | Result |
|---|---|
| Prefill, 64K-token prompt (needle test) | 4.48k tok/s (same as Bonsai 2) |
| Prefill, 260K-token prompt (needle test) | 2.49k tok/s (same as Bonsai 2) |
Needle answer at 64K and 260K (ORCHID=493817; COLOR=COBALT) |
exact |
Task suite tools.eval, 45 tasks, thinking off |
44/45 (Bonsai 2 retrained: 43/45) |
The task suite is close to saturation (both models pass more than 95 %) and does not exercise the agentic coding work the 2.5 release targets, so it shows no regression, not an improvement. Prism ML reports large gains in agentic coding and tool calling for Bonsai 2.5 in its model card; those figures are Prism's and were not reproduced here. Bonsai 2.5 writes about 25 % more tokens than Bonsai 2 on that suite (mean 153 against 122).
build\apps\ninfer-serve.exe bonsai25_27b_vl_mtp_q4q5.ninfer ^
--host 127.0.0.1 --port 8080 --model-id bonsai-2.5-27b ^
--max-context 65536 --kv-capacity 65536 --kv-dtype rk4v4-e8 --max-concurrency 3 ^
--spec mtp --draft-tokens 3 --lm-head-draft --ngram chain --vision
The architecture and the 5.9 GB of weights match Bonsai 2, so the context and lane settings of that repository apply. Memory limits were measured there for Bonsai 2, not for this file.
With the converter of the repository (tools/convert, with the -mtp GGUF support added on
2026-11-24: bonsai_base and the bonsai2_27b_mtp_* recipes read Prism's draft layer), from Prism's
Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf and Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf:
python -m tools.convert.bonsai_base --gguf Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf ^
--reference qwen3_8_27b_a8_mtpq4q5.ninfer --mmproj Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf ^
--out bonsai25-27b-vl
python -m tools.convert --model bonsai25-27b-vl --recipe bonsai2_27b_mtp_q4q5 ^
--components text,vision,mtp --source gguf=Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf ^
--source mmproj=Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf --proposal --name bonsai2.5-27b ^
--out bonsai25_27b_vl_mtp_q4q5.ninfer --device cuda
Apache 2.0, as the base model and Prism's release. LICENSE and NOTICE.txt are Prism ML's, copied
unchanged. Created using Bonsai by Prism ML, built from Qwen3.8-27B (Alibaba Cloud, Apache 2.0).