A NInfer v3 artifact of PrismML's
Ternary Bonsai 2.5 27B in its PTQ1_0
form (1.75 bits per weight) for NInfer-all, the master branch of
iamwavecut/ninfer-all. Stock NInfer builds refuse this file: the gguf_ptq1_0 format and the hadamard_signs Use auxiliary exist only in that line.
The same ternary values in the release's other form: PQ2_0. PTQ1_0 decodes one request faster without a drafter on every measured card and leaves room for the longest windows; PQ2_0 is faster with MTP, with several requests at once and on prompts.
The numbers below come from master at 312a964da6 (November 2026), each
card running the device route profile built into it.
| component | representation |
|---|---|
| text projections (64 layers), output head and token table | gguf_ptq1_0: the release's PTQ1_0 blocks byte for byte (128 ternary values in 28 bytes, five base-3 digits a byte and one binary16 scale); Hadamard-rotated as PrismML stores them, every projection's Use carrying the sign vector of its input width, and the engine restores each gathered token row with the hidden-width signs |
GDN A/B controls, norms, convolution, A_log, dt_bias |
BF16 (the release's F32 GDN controls, each of which BF16 holds exactly) and FP32, restored from llama.cpp's exporter conventions (grouped value heads, w instead of 1 + w, A_log from -exp(A_log)) |
| MTP head | PrismML's, block 64 of the release's -mtp GGUF: one layer whose matrices are Q4_0 blocks, copied byte for byte; PrismML fine-tuned it from Bonsai 2's head |
| proposal head | the output head's own rows for the 131,072 most frequent tokens of NInfer's token ranking, copied byte for byte with the head's rotation; MTP drafts through it unless --full-draft-head is given |
| Vision tower | the release's mmproj (Qwen3.8-27B's tower), in the Q4/Q5/Q6/Q8 group formats of the official Qwen3.8-27B artifact |
| chat template | NInfer's pinned qwen3_8.jinja (the release ships Qwen3.8-27B's template) |
One .ninfer file of 6,625,487,872 bytes (6.17 GiB), next to its conversion report, SHA256SUMS and
NOTICE. Bonsai 2.5 has no DFlash2 adapter.
Conversion command, from the repository's tree (--model needs only the Qwen3.8-27B checkpoint's
configuration and tokenizer files):
python3 -m tools.convert \
--model Qwen3.8-27B \
--recipe bonsai2_27b_ternary \
--source ternary=Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf \
--source vision=Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf \
--components text,vision,mtp \
--resource chat_template.jinja=tools/chat_templates/qwen3_8.jinja \
--proposal \
--name bonsai2.5-27b \
--out Ternary-Bonsai-2.5-27B-PTQ1_0-ninfer-v3.ninfer
One request with MTP over the model's 262,144-token window, from the Docker image (an NVIDIA driver of the CUDA 13 branch, 580 or newer, and the NVIDIA Container Toolkit):
hf download WaveCut/Ternary-Bonsai-2.5-27B-PTQ1_0-NInfer-v3 Ternary-Bonsai-2.5-27B-PTQ1_0-ninfer-v3.ninfer --local-dir models
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 \
-v "$PWD/models:/models" -v ninfer-cache:/cache \
ghcr.io/iamwavecut/ninfer-all serve /models/Ternary-Bonsai-2.5-27B-PTQ1_0-ninfer-v3.ninfer \
--model-id bonsai2.5-27b --max-context 262144 --kv-capacity 262144 --kv-dtype rk8v4 \
--gdn-state-fp16 --spec mtp --draft-tokens 3
The server answers OpenAI and Anthropic requests on http://localhost:8080/v1. A build of master
(its README) takes the same flags:
ninfer-serve models/Ternary-Bonsai-2.5-27B-PTQ1_0-ninfer-v3.ninfer --model-id bonsai2.5-27b \
--max-context 262144 --kv-capacity 262144 --kv-dtype rk8v4 --gdn-state-fp16 \
--spec mtp --draft-tokens 3
--spec the server decodes without a drafter and holds less device memory.--vision adds images and video; --vision-residency overlay keeps the tower in pinned host
memory and borrows device memory for each encode.--kv-dtype rk4v4 --rope-yarn with a larger --max-context and --kv-capacity reaches the
windows below.ninfer-cache volume.November 2026, one request at a time, greedy, thinking off, rk8v4 KV, a 262,144-token window, each
card at its default power limit (RTX 3090 420 W, RTX 4090 450 W, RTX 5090 575 W, RTX PRO 6000
Blackwell Workstation Edition 600 W). Short chat is the mean decode rate over five 512-token answers
(an essay, a Python module, a word problem, a Russian explanation, a list); at depth, a ~400-word
answer after a document of that length; MTP's acceptance and tokens per verify round in brackets.
Eight requests at once run eight lanes of 16,384 tokens.
| RTX 3090 | RTX 4090 | RTX 5090 | RTX PRO 6000 | |
|---|---|---|---|---|
| short chat, no drafter, tok/s | 94.1 | 125.6 | 188.9 | 187.9 |
| short chat, MTP, 3 drafts, tok/s | 149.8 (0.49, 2.46) | 202.8 (0.49, 2.46) | 324.0 (0.50, 2.49) | 320.4 (0.47, 2.42) |
| decode after 32K tokens, no drafter, tok/s | 84.7 | 111.7 | 167.8 | 159.4 |
| decode after 131K tokens, no drafter, tok/s | 67.1 | 85.8 | 127.0 | 125.9 |
| decode after 261K tokens, no drafter, tok/s | 52.4 | 62.8 | 100.8 | 99.6 |
| decode after 261K tokens, MTP, 3 drafts, tok/s | 76.3 | 99.8 | 168.0 | 173.6 |
| time to first token, 32K prompt | 16.5 s | 7.4 s | 5.7 s | 5.7 s |
| time to first token, 131K prompt | 88.2 s | 39.5 s | 30.7 s | 31.0 s |
| time to first token, 261K prompt | 233.2 s | 104.9 s | 82.7 s | 83.6 s |
| eight requests at once, no drafter, total tok/s | 411.6 | 588.1 | 917.0 | 986.8 |
| eight requests at once, MTP, 3 drafts, total tok/s | 461.9 | 850.6 | 1,106.8 | 1,139.3 |
| device memory of the idle server, no drafter / MTP | 13.2 GiB / 14.0 GiB | 13.4 GiB / 14.2 GiB | 13.4 GiB / 14.2 GiB | 13.6 GiB / 14.4 GiB |
The largest window each card starts with (--max-context = --kv-capacity, one request,
--rope-yarn past 262,144), without a drafter / with MTP (3 drafts); 1,048,576 is the engine's
ceiling:
| KV cache | RTX 3090 | RTX 4090 | RTX 5090 | RTX PRO 6000 |
|---|---|---|---|---|
rk8v4 |
708,608 / 643,072 | 700,416 / 634,880 | 1,019,904 / 937,984 | 1,048,576 / 1,048,576 |
rk4v4 |
1,032,192 / 933,888 | 1,019,904 / 925,696 | 1,048,576 / 1,048,576 | 1,048,576 / 1,048,576 |
Filled to the rk4v4 window without a drafter (a document 1,024 tokens short of it with three codes at 33, 66 and 90%, asked back in order), PTQ1_0 found all three on every card: at 1,048,576 tokens on the RTX 5090 (876 s to the first token) and the RTX PRO 6000 (884 s), at 1,019,904 on the RTX 4090 (1,077 s) and at 1,032,192 on the RTX 3090 (2,435 s).
PrismML's llama.cpp fork (release prism-b12178-03ec600) on the release's -mtp GGUF with the
settings of PrismML's CUDA preset for each card (F16 KV, a 16,384-token window), the same short chat
on the same host, against NInfer at that window and at 262,144:
| Card | Drafter | PrismML, 16,384 | NInfer, 16,384 | NInfer, 262,144 |
|---|---|---|---|---|
| RTX 3090 | none | 95.3 | — | 94.1 |
| RTX 3090 | MTP 3 | 157.7 (0.58, 2.71) | — | 149.8 (0.49, 2.46) |
| RTX 4090 | none | 114.0 | — | 125.6 |
| RTX 4090 | MTP 3 | 188.2 (0.55, 2.64) | — | 202.8 (0.49, 2.46) |
| RTX 5090 | none | 170.7 | 189.3 | 188.9 |
| RTX 5090 | MTP 3 | 268.5 (0.56, 2.66) | 334.4 (0.52, 2.55) | 324.0 (0.50, 2.49) |
| RTX PRO 6000 | none | 174.3 | 187.9 | 187.9 |
| RTX PRO 6000 | MTP 3 | 293.4 (0.54, 2.60) | 334.6 (0.51, 2.52) | 320.4 (0.47, 2.42) |
NInfer's 16,384-token runs exist for the RTX 5090 and RTX PRO 6000 only. NInfer decodes faster on every row but the RTX 3090's, where PrismML's runtime is 1.3% faster without a drafter and 5.3% faster with MTP. PrismML's runtime accepts more of its drafts (0.54 to 0.58 against NInfer's 0.47 to 0.52).
ninfer-perplexity --quick on ninfer-ppl-1m-v1 (4,096-token windows at a 2,048 stride, rk8v4):
6.6668 for PTQ1_0 and 6.6647 for PQ2_0 on an RTX 5090, against Ternary Bonsai 2's 5.6308 on the same host. Every table, the PTQ1_0 kernels and the method are on the
measurement page.
Ternary weights and the MTP head: PrismML, Ternary Bonsai 2.5 27B, derived from Qwen/Qwen3.8-27B
("Created using Bonsai by Prism ML"). Vision tower (from the release's mmproj) and tokenizer:
Qwen/Qwen3.8-27B. All are Apache-2.0; their attribution notices are collected in
NOTICE. This repository only re-encodes those weights into NInfer's container.