Ternary Bonsai 2.5 27B Measured: 1.58 Bits in the Name, 1.71 at the Format Floor, 1.783 in the Shipped File

Parsed both GGUFs: the shipped file is 5.99 GB at 1.783 bits per weight, not 5.93 GB at 1.76, and 47.2 MB larger than Bonsai 2 despite the smaller claim.

Prism ML released Ternary Bonsai 2.5 27B on 2026-11-24 and it reached the front page of Hacker News within hours: 305 points, 107 comments. The pitch is a specific one — a 27B model at 1.76 bits per weight, 5.93 GB, “FP16-level agentic tool calling”, “90% of FP16 agentic coding”, “the strongest agentic model under 10 GB”.

Three of those four claims survive contact with the file. The size does not.

I downloaded the GGUF headers of all three 2.5 packings — a few megabytes of range requests, no weights — and parsed the tensor table. The shipped PTQ1_0 file is 5,993,834,848 bytes (5.994 GB) at 1.78282 bits per weight, not 5.93 GB at 1.76. That is 1.1% and 1.3% off, which would be a rounding quibble except for where the difference came from: the Bonsai 2 file is 5,946,648,928 bytes, so 2.5 is 47,185,920 bytes larger than the release it replaced, while its card claims to be 20 MB smaller.

The cause is not the ternary format, which is byte-for-byte the same rate in both files. It is that 96 tensors storing 23,592,960 parameters — the ssm_alpha and ssm_beta projections of every linear-attention layer — moved from BF16 in Bonsai 2 to FP32 in 2.5. Twice the bytes, exactly +47,185,920, which is the entire delta. No document mentions it.

None of this makes the model bad. It makes the number you were given the wrong number, and the mechanism behind the error is more interesting than the error: it shows that the storage accounting in these releases is computed on paper, not read off the artefact.

Four bit-widths for one weight

“1.58 bits” has been the family’s label since the April release, Ternary Bonsai: Top Intelligence at 1.58 Bits. It is a real number and it means something specific: log₂3 = 1.584963, the Shannon entropy of a value drawn from {−1, 0, +1}. A trit carries at most that much information, and no format can beat it on average.

It is not the storage cost. Four different quantities get called “the bit-width” in this release, and they differ by 12.5% from each other:

NumberWhat it measuresDerivation
1.585Entropy of one tritlog₂3
1.710Floor for a ternary tensor with one FP16 scale per 128 weights(⌈128 × log₂3⌉ + 16) / 128 = (203 + 16) / 128
1.625 / 1.750PTQ1_0 payload / PTQ1_0 total208 payload bits / 128; 28 bytes × 8 / 128
1.783The shipped file5,993,834,848 × 8 / 26,895,998,464

The block layout is documented, in a place most readers will never look: upstream pull request #29672, which is still open.

“Its block is 24 base-3 payload bytes, two tail bytes and one fp16 scale (28 bytes, 1.75 bits/weight).”

The author’s follow-up in the same thread explains the packing: five trits per byte for the first 120 weights (3⁵ = 243 ≤ 256), four trits per byte in the two tail bytes, then the scale.

24 bytes × 5 trits = 120 weights   → 192 bits
 2 bytes × 4 trits =   8 weights   →  16 bits
 2 bytes           = FP16 scale    →  16 bits
──────────────────────────────────────────────
28 bytes          = 128 weights    → 224 bits = 1.75 bits/weight

That is 2.3% above the 1.710 floor, and the 2.3% is not waste in the usual sense — it is the price of byte alignment and a cheap unpack. An optimal base-3 packer would need 25.4 bytes for the trits and would have to do multi-byte division on the hot path. PTQ1_0 chose 26 bytes and a bit shift.

So the honest hierarchy is: 1.585 is information theory, 1.710 is what the format could do, 1.750 is what it does, and 1.783 is what you download. Every one of those numbers is defensible. Only the last one costs disk.

What is actually in the 851 tensors

Both releases declare 851 tensors and 26,895,998,464 elements — the language model excluding the 0.47B vision tower, which ships separately as an mmproj file. The composition differs:

Bonsai 2 PTQ1_0Bonsai 2.5 PTQ1_0
File size5,946,648,928 B5,993,834,848 B
Total elements26,895,998,46426,895,998,464
Ternary tensors (type 143)402, 26,869,760,000 elem @ 1.7500 bpwidentical
BF16 tensors (type 30)96, 23,592,960 elem @ 16.00 bpw0
FP32 tensors (type 0)353, 2,645,504 elem449, 26,238,464 elem
Measured overall1.76878 bpw1.78282 bpw
Undeclared tail after last tensor11,120,992 B11,120,992 B

The ternary payload is identical in both files: 5,877,760,000 bytes, exactly 1.75 bpw over 26,869,760,000 elements. Everything that changed is in the 0.0976% of parameters the whitepaper keeps out of the ternary format.

In Bonsai 2 those parameters were split: ssm_alpha and ssm_beta (48 layers × 2 × 245,760 = 23,592,960) in BF16, and the normalization weights, ssm_a, ssm_dt.bias, ssm_conv1d in FP32. In 2.5 all 26,238,464 are FP32. The whitepaper’s own accounting assumes the cheaper option:

“The additional cost of this choice is 26.2 M parameters, which constitutes only 0.0976% of the language model, or 52 MB at bf16.”

52 MB at bf16 is 52,476,928 bytes. The shipped file spends 104,953,856 bytes on the same parameters — precisely 2×. Add the 11,120,992-byte tail and you get the file exactly:

2.5:  5,877,760,000 (ternary) + 104,953,856 (FP32) + 11,120,992 (tail) = 5,993,834,848 ✓
2.0:  5,877,760,000 (ternary) +  47,185,920 (BF16) + 10,582,016 (FP32) + 11,120,992 = 5,946,648,928 ✓

Which also explains the published 5.93 GB. Take the ternary payload, assume the 26.2M parameters at 16 bits, and you get 5,930,236,928 bytes = 5.93 GB = 1.7639 bpw. The card’s “5.93 GB / 1.76 bits per weight” describes the file that would exist if those tensors had stayed at BF16. The file that exists stores them at FP32, and is 5.99 GB at 1.783.

I cannot tell you why the change was made. There is no changelog, no release note, and the 2.5 card says the format is “unchanged” — which is true of the ternary format and false of the container. PQ2_0 moved the same way (2.15745 bpw measured against 2.13 in the README, 2.16 in the whitepaper table) and Q2_0 likewise (2.28233 against 2.25). All three packings now sit about 1.3% above their published rate.

The 11,120,992-byte tail is a separate oddity and I will not pretend to know what it is. It sits after the last declared tensor, it is the same size in both releases, and it is not zero-filled — I sampled the last 59,232 bytes and 53,013 of them were non-zero. GGUF has no trailer field. If you are budgeting disk from the tensor table, add 0.19%.

What the format buys — and where the 9× stops being true

The ternary weights are not just small; they are consumed directly by kernels that never materialise FP16 copies. That is the actual engineering achievement here, and it is why the model decodes at 189 tokens/s on an H200 with a 5.99 GB file on disk.

Two costs are attached, and both are documented in places that do not make it into the headline.

First, the 5.99 GB file only runs on a fork. Stock llama.cpp, Ollama and LM Studio cannot load PTQ1_0 or PQ2_0. The card says it plainly — “Stock llama.cpp rejects them as unknown types” — and the upstream evidence agrees: ggml.h on master defines GGML_TYPE_TQ1_0 = 34, GGML_TYPE_TQ2_0 = 35 and GGML_TYPE_Q2_0 = 42, with no entry for 143 or 142. PR #29672 (format and CPU) has been open since 2026-09-29 and was last updated 2026-11-17; #29676 (CUDA) since 2026-09-29, last touched 2026-11-15. Sixty-one days for a file format that a 74,000-star ecosystem cannot read.

Second, the “runs on stock llama.cpp” path is a different file, and it is 28% bigger.

PathFileMeasured bpwSizevs 53.8 GB FP16
Fork, dense tritsPTQ1_01.7835.994 GB8.98×
Fork, 2-bit slotsPQ2_02.1577.253 GB7.42×
Stock llama.cppQ2_02.2827.673 GB7.01×

So the combination “9× smaller” and “runs everywhere” does not exist. You pick one. The card is aware — it lists Q2_0 as “for stock llama.cpp” — but the tagline that gets quoted is “~9× smaller than FP16”, and the file behind that tagline needs a binary from a GitHub fork. On the stock path, the honest reduction is 7.0×.

There is a third cost, small but real, and the whitepaper admits it: the Hadamard rotation is paid on activations at decode time. “At batch size 1 the activation-side rotation transform remains one of the larger non-matrix-multiply costs of a decode step.” For a model sold as an on-device agent at batch 1, that is the cost you meet on every token. It is also on their roadmap to remove.

And if you were hoping the 1.58 bits would become compute rather than bandwidth: no. There is no ternary ALU on any CPU or GPU you can buy. The kernels unpack trits and multiply in higher precision, so the win is bytes moved, not FLOPs saved. A commenter asked exactly this and got an answer about FPGAs — an Alveo V80 at roughly $10,000 with 800 GB/s, worse bandwidth per dollar than a laptop, delivery July 2027.

Reading the benchmark table without the adjectives

The benchmark tables are the strongest part of this release, and they are also where the summaries drift furthest from the data. Here is the same table with one column added: the ratio to FP16.

BenchmarkFP16Bonsai 2.5Ratio to FP16Gap
τ²-Bench80.682.0101.7%+1.4
τ³-Bench72.873.9101.5%+1.1
BFCL v371.272.6102.0%+1.4
BFCL v470.867.294.9%−3.6
AppWorld93.290.597.1%−2.7
Terminal-Bench 2.170.860.184.9%−10.7
SWE-bench Verified80.675.693.8%−5.0
DeepSWE30.127.089.7%−3.1

“FP16-level agentic tool calling” is the average of five benchmarks where three are above FP16 and two are below, with the tool-calling average at 99.4% of FP16. That is a fair claim on the average and a misleading one per benchmark: BFCL v4 loses 3.6 points, and BFCL v4 is the version with agentic memory categories, which is closer to what a real agent does than the v3 subsets.

“90% of FP16 agentic coding” is an average of ratios: 84.9%, 93.8%, 89.7%. The mean is 89.5%; the ratio of the averages (54.2/60.5) is 89.6%. The headline number is correct. Its spread is 9 points wide, and the one that matters most for the pitch — “local coding and terminal agents” — is the 84.9%.

The general-capability claim is the one I would check hardest, because “stays close to FP16” is doing a lot of work: 15 of 16 benchmarks are below FP16, one ties. The category averages hide it because the losses are small (MMLU-Redux −2.4, GPQA −2.8, IFEval −0.5, CharXiv −0.4) and the average lands at 82.12 against 84.32, or 97.4%.

That last pair is worth a second look. The whitepaper’s prose, twice, gives the same average as “82.3 against 84.4 for FP16”, and calls the suite “14 benchmarks”; its own Table 4 lists 16 and prints 82.12 / 84.32. Three versions of one average, in one document, on one page.

Three methodology notes from Appendix A that bound how much any of this means:

  1. One sample per task. “Each task is attempted once (pass@1); where a benchmark was run more than once, we report the mean.” No confidence intervals anywhere in the tables, at temperature 1.0. On 89 Terminal-Bench tasks and 113 DeepSWE tasks, a 3-point difference is inside sampling noise.
  2. Enormous output budgets. Non-agentic benchmarks get 16,384–81,920 output tokens; Terminal-Bench gets 80,000 per turn; AppWorld 40,000. This is a reasoning model whose default is xhigh, and the card itself warns that a 256-token cap “ends generation mid-thought, before any answer”. If your production setup caps output at 4K, you are not running the configuration that scored 75.6.
  3. The baselines were unpacked. “The conventional builds are the GSQ-RCO and Unsloth Dynamic GGUF files of Qwen3.8-27B, unpacked to BF16 and served through the same path.” The comparison is of quantized values, not of quantized runtimes — fair for quality, but it means the alternative’s 2.27–3.00 bpw figures are file sizes, not the speed you would actually get.

The 40-point jump that has no explanation

The single most interesting number in the release is AppWorld: 51.2 → 90.5, a 39.3-point jump. DeepSWE: 0.0 → 27.0, from solving nothing to solving roughly the same fraction of tasks as the FP16 baseline’s 30.1. SWE-bench Verified: 60.8 → 75.6.

The specification table marks changes from Bonsai 2 with †. There are two:

“Focus† — Agentic and tool-use tasks” “Speculative decoding† — The multi-token prediction (MTP) draft head included in every GGUF file”

The MTP head is a separate -mtp.gguf file, so it cannot explain the base file’s scores. “Focus” is not a mechanism. The card says the weights “are exactly ternary and use the Bonsai 2 format, unchanged”, and the architecture is Qwen3.8-27B’s. Nowhere in 10 pages of whitepaper is there a sentence about training data, fine-tuning, reinforcement learning, or distillation. A model does not go from 0 to 27 on DeepSWE because someone re-quantized it.

There is also an explicit warning that some of the two-release comparison is not valid:

“Because τ²-Bench and τ³-Bench now use a thinking-mode user simulator and BFCL v3 uses native tool calls, these figures are not comparable with the Bonsai 2 report.”

That is honest, and it applies to the τ and BFCL columns. AppWorld is not in that list, so the 51.2 → 90.5 comparison stands on the same harness. But the sentence should have been next to the table rather than in Appendix A, because “up from 51.2” is a headline.

The independent evidence is mixed, and the most useful data point is not about accuracy at all. A commenter ran their own 8-task long-horizon benchmark on a Mac:

Tasks passedStepsWall clock
Bonsai 25 / 8358107 min
Bonsai 2.55 / 8296 (−17%)76 min (−29%)
Claude Opus 5.58 / 8——

Same number of tasks, one third less time. That is a real improvement in efficiency and no improvement in capability on that benchmark — consistent with a release tuned more for agentic stamina than for ceiling. Another commenter got one held-out test fixed on a JavaScript bug with 25 other tests unbroken; a third reported 22–25 tokens/s on an M5 Pro with 24 GB and 128K context resident.

Also worth recording: Bonsai 2 was not well liked. “Previous iteration of this got some hype but in actual quality people found it to be incredibly bad,” one commenter wrote, before saying they would wait for reports. The 2.5 release has 99 likes on Hugging Face and 0 downloads recorded — it is one day old, so treat every experiential claim above as a first impression, including the positive ones.

The documentation shrank while the code did not

Bonsai 2 shipped a KNOWN_ISSUES.md: 193 lines, 33 items with “Status: open”, covering CPU crashes on AVX-512, CUDA 13.3 segfaults, ROCm aborts on RDNA2, Vulkan silently falling back to CPU, Windows builds that do not start, and the fork-only quantisation types.

The 2.5 repository has no such file. Its model card has one “Known issues” subsection, about -np 1 and server parallelism.

The runtime did not get simpler between the two releases — it is the same fork, the same two custom types, the same hybrid-attention kernels, one of which is still in upstream review. So a 2.5 user with a Zen 5 CPU, or an Arc GPU, or a bundled llama.cpp in their app, has to go find the previous model’s issue page to learn what will happen to them. That is not a hidden defect; it is a documentation regression, and it matters more than usual here because the failure modes in that file are the silent kind:

FailureWhat the user sees
Old stock build loads Q2_0Loads fine, “no warning”, output is garbage
Quantize your own model to PTQ1_0/PQ2_0Loads fine, generates nonsense — no rotation metadata
PQ2_0 on VulkanLog says all layers on GPU; “the tell is a CPU model buffer size of several GB”; under 2 tok/s
Server auto-parallelism4 slots share a KV cache; 9.5 GB on a 10 GB card until -np 1
low reasoning effortNot supported; behaves like xhigh, so a “faster” setting is not faster

The whitepaper’s own sentence about conventional low-bit compression applies uncomfortably well to the tooling around ternary: “the failure is easy to miss in casual testing and expensive to discover in production.”

This is, to be fair, the profile of a research-driven release that ships fast and documents afterwards. The upstream PR is unusually rigorous — 42 backend cases, three published block-byte fixtures, a deliberately corrupted encoder that must fail an independent oracle, and honest notes that tensors with width not divisible by 128 silently fall back to Q4_0 or F16. That is better validation than most quantisation code ever gets. It is also invisible from the model card.

What to verify yourself before you deploy

The benchmarks you cannot reproduce. The file you can. Five checks, all cheap:

1. The header tells you the real bits per weight. A few range requests, no weights. The trick is that tensor byte size is the gap between consecutive offsets:

# curl -sL -r 0-$((32<<20)-1) -o prefix.bin <gguf-url>
# parse: magic, u32 version, u64 n_tensors, u64 n_kv, then KV pairs, then per-tensor
#        (name, u32 ndims, u64 dims[ndims], u32 type, u64 offset)
order = sorted(tensors, key=lambda t: t["off"])
for i, t in enumerate(order):
    nxt = order[i + 1]["off"] if i + 1 < len(order) else file_size
    t["bytes"] = nxt - t["off"]
print(sum(t["bytes"] for t in order) * 8 / sum(prod(t["dims"]) for t in order))
# 2.5 PTQ1_0 -> 1.78282 ; type 143 -> 1.7500 ; 449 tensors of type 0 -> 32.0 bpw

If a release quotes a bit-width, this number is the one to compare it to — and note that their own definition agrees: “bits per weight is file size over the 26.9B language-model parameters.”

2. Check your llama.cpp build, not your llama.cpp. llama-cli --version must be b11556 or later for Q2_0, and the version string alone is not enough if your app bundles its own engine. On the fork path, check that the binary is from PrismML-Eng/llama.cpp releases, not a re-upload.

3. Budget for the tail. 5.99 GB of weights plus 0.63 GB mmproj if you use images, plus KV cache for 262K context. The card’s 10 GB example needed -np 1 to stay under the limit at 32K — at 128K you are not on a 10 GB card.

4. Do not run --min-p at the llama.cpp default if you follow the card. The card recommends min_p=0 for thinking mode; llama.cpp’s default is 0.05. Bonsai 2’s issue file notes that min_p, presence_penalty and repetition_penalty are absent from the GGUF metadata, so a server started without flags silently uses different sampling than the benchmarks did. That is a one-line difference that no error message will tell you about.

5. Test the failure that matters to you, not the average. If your workload is tool calling, BFCL v4 is the column to read (−3.6). If it is long terminal sessions, Terminal-Bench (−10.7) and the 80,000-token per-turn budget are what to replicate. If it is a strict output cap, run it at your cap before you believe any score — the model reasons at length by default and will happily spend your whole budget thinking.

FAQ

Is 1.58 bits a lie?

No. It is the entropy of a trit, and the docs are explicit that the shipped rate is 1.76. What is off is 1.76 against the file: 1.783, because 26.2M parameters are stored in FP32 rather than the BF16 the accounting assumes. The label is theory; 1.783 is what your disk sees.

Why is Bonsai 2.5 bigger than Bonsai 2 when it claims to be smaller?

Because 96 tensors (ssm_alpha/ssm_beta for 48 linear-attention layers, 23,592,960 parameters) went from BF16 to FP32. That is +47,185,920 bytes exactly, which is the entire difference between 5,946,648,928 and 5,993,834,848. The ternary payload did not change at all.

Can I run it in Ollama or LM Studio?

Not the 5.99 GB file. PTQ1_0 and PQ2_0 are custom GGML types 143 and 142, absent from upstream ggml.h; PR #29672 is still open. You can run Q2_0 (7.67 GB) if the bundled engine is built from llama.cpp b11556 or newer — and if it is older, it loads without a warning and produces garbage.

Does ternary mean faster math?

No. There is no ternary multiply-add in consumer CPUs or GPUs. The kernels unpack trits and accumulate in higher precision, so the gain is memory bandwidth — which is why decode improves 2.1× on an H200 while prefill improves less. Anything promising ternary FLOPs is talking about an FPGA you do not have.

Is “90% of FP16 agentic coding” real?

As an average of three ratios, yes: 84.9%, 93.8%, 89.7%, mean 89.5%. Per benchmark it ranges from 84.9% (Terminal-Bench) to 93.8% (SWE-bench Verified). Quote the range, not the mean, when the use case is terminal work.

Should I use it?

If you need a 27B-class agent in under 8 GB of weights and you control the runtime, it is the strongest option in that bracket on these numbers, and the format work is real. If you need stock tooling, Q2_0 at 7.67 GB gives up the size advantage, and a well-made IQ3 quant of the same base model at 10.1 GB scores 55.5 on coding against 54.2. The decision is about your runtime, not about 1.58.

The closing number

The model is genuinely interesting: 26.9B parameters, 402 ternary tensors at exactly 1.75 bits, a Hadamard rotation folded into the weights for free, and a 5.99 GB file that decodes at 189 tokens/s on an H200. The engineering is not in doubt.

What is in doubt is the habit of quoting a number that was computed for a file that was not shipped. 5.93 GB versus 5.994 is 1%; 1.76 versus 1.783 is 1.3%. Small errors — but they were small in exactly the direction that made the release look better, and they survived because nobody parses the header. The next time a card says 1.76 bits per weight, spend thirty seconds on a range request. The header will tell you the truth, and unlike the benchmark table, you can reproduce it.

If you are weighing this against conventional quantisation, the two pieces worth reading next are the GPTQModel quantisation walkthrough for what those IQ2/IQ3 builds actually are, and local AI inference in 2026 for the runtime landscape this model needs a fork to enter.