Ternary Bonsai 2.5 27B converted to the NInfer v3 artifact container for ninfer-windows.
The weights are unchanged: this is a container rewrite of Prism's ternary g128 weights, with the blockwise Hadamard basis preserved (the runtime applies the matching transform to activations).
| file | contents | bytes | objects |
|---|---|---|---|
bonsai25.ninfer |
text | 5.94 GB | 714 |
bonsai25-VL.ninfer |
text + vision tower | 6.24 GB | 1,049 |
bonsai25-MTP.ninfer |
text + the draft head from the -mtp GGUF |
6.39 GB | 726 |
Prism ships the same weights in three packings (PTQ1_0, PQ2_0, and a stock-llama.cpp Q2_0). The
first two were both converted and the resulting artifacts compared object by object: 714 of 714
objects identical by SHA-256. The packing is a property of the GGUF file, not of the weights, so one
artifact covers both - convert whichever file you have.
git clone https://github.com/zjwan461/ninfer-windows.git
cd ninfer-windows
cmake -S . -B build -DCMAKE_CUDA_ARCHITECTURES=89 -DNINFER_TARGET_SM_COUNT=80 \
-DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build build --target ninfer -j
# text
./build/apps/ninfer bonsai25.ninfer \
--prompt "Write a Python function that reverses a linked list." \
--max-new 256 --max-context 32768 --kv-capacity auto
# image input (needs the VL artifact and a build with the FFmpeg media path)
./build/apps/ninfer bonsai25-VL.ninfer --vision \
--messages messages.json --max-new 256 --max-context 32768 --kv-capacity auto
--reasoning-effort selects xhigh (the model's default) or medium; low is not supported by the
model.
./build/apps/ninfer bonsai25-MTP.ninfer --spec mtp --draft-tokens 2 \
--prompt "..." --max-new 128 --max-context 8192 --kv-capacity auto
Measured on a quiet slice of a shared Hopper MIG card, 128 new tokens, greedy:
| draft tokens | decode | acceptance |
|---|---|---|
| 0 | 144.2 tok/s | - |
| 2 | 161.5-166.4 tok/s | 87.0 % |
The generated text is byte-identical with and without speculation, which is what verify-based acceptance guarantees.
The draft head is the one shipped inside Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf, read by the converter -
no Qwen3.8 artifact is needed. Coping Qwen3.8-27B's head instead also works (the base model is the same
and the residual stream is unrotated) and measures 159.0 tok/s at 81.2 % acceptance, so the shipped head is
the better one and the one these files use.
The speedup over no speculation is small on an idle card (1.1x) and large on a contended one (2.1x was measured on the same artifacts under load), because a busy round spends its time on the host side where speculation pays and an idle round spends it on the verify pass. Expect the target card to land between.
On a shared Hopper MIG slice (not the target card), greedy, 128 tokens generated:
| value | |
|---|---|
| decode | 143.8-143.9 tok/s |
| GPU weights | 5.52 GiB |
| planned device total (text) | 6.34 GiB |
| text prefill, short prompt | 38-54 ms |
bonsai_base --gguf <source>.gguf --reference qwen3_8_27b_a8.ninfer \
[--mmproj Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf] --out <model dir>
tools.convert --model <model dir> --recipe bonsai2_27b \
--components text[,vision] --source gguf=<source>.gguf [--source mmproj=<mmproj>.gguf] \
--device cuda
The vision tower is taken from the BF16 mmproj, not the Q8_0 one: the recipe re-quantizes the tower into the registered Vision formats (Q4 qkv/fc1, Q5 output/fc2, Q6 patch, Q8 merger), so a Q8_0 source would quantize an already-quantized tower.
The MTP draft head (the -mtp GGUFs) is not included. The engine can supply it by copying
Qwen3.8-27B's head at conversion time, but supporting Bonsai 2.5's own blk.64 nextn block is not
implemented.
Vision was exercised end to end: a 448x448 PNG holding a red circle, asked "What shape and colour is in this image?", answers "The image shows a red circle." with the vision stage taking 34 ms of the 307 ms request. The tower's 111 tensors land in the official Vision formats (Q4 qkv/fc1, Q5 output/fc2, Q6 patch, Q8 merger).
The test build needed an FFmpeg development tree, which this machine did not have - the ffmpeg CLI is
present but its libraries are v59/v57, below the v60/v58 the engine requires, and no headers are
installed. A static shared FFmpeg master build supplied them without root.
prism-ml/Ternary-Bonsai-2.5-27B-GGUF