Three Files, One Runtime: Why Ternary Bonsai Answers in Gibberish on Stock llama.cpp
Only one of Ternary Bonsai's three GGUF files runs on stock llama.cpp, and on builds older than 11 October it fails silently. Here's which one to get.
You have a 27B model sitting in seven-odd gigabytes on a card that has no business holding one, you asked it something ordinary, and what came back was word salad. Nothing errored. The loader printed its usual wall of tensor counts and context sizes, the tokens came out at a healthy rate, and every one of them was nonsense. Before you open an issue about the model, check your binary — because Ternary Bonsai llama.cpp compatibility is not one question but three. The repository ships three different files, they sit on opposite sides of a runtime boundary, and only one of them is built for the llama.cpp you most likely have.
Prism ML published Ternary-Bonsai-2.5-27B-GGUF on 24 November 2026. Six days later the repository had taken 554,366 downloads and 857 likes, with 28 open discussion threads — many of them people reporting tokens per second on an 8 GB card, which tells you exactly who this release is for. A 27B-class model that fits in the VRAM of a 3070 is the kind of thing people download before reading anything. That is the whole problem.
Three files with almost the same name
Open the repository’s file list and you are offered three base packings of the same model, plus a multi-token-prediction variant of each. The weights are identical in all three; only the bit packing differs. What differs much more is which program can read them.
PTQ1_0 is the smallest at 5.99 GB, packing dense trits at 1.76 bits per weight. PQ2_0 is 7.25 GB, giving each trit its own two-bit slot. Q2_0 is the largest at 7.67 GB and is, per Prism ML’s own formats documentation, roughly 2.28 to 2.33 bits per weight.
Now the part that matters. The model card is explicit that PTQ1_0 and PQ2_0 “need the ternary hybrid-attention kernels in the PrismML-Eng/llama.cpp fork” and that “stock llama.cpp rejects them as unknown types.” Only Q2_0 — the biggest file, the one with the least interesting name — runs on upstream llama.cpp.
A rejection is the good outcome. If you hand PQ2_0 to a stock build, it stops with an unknown-type error, you read the error, you go and get the right file. Twenty seconds lost. The failure this article is about is the other one.
Why the wrong build fails silently instead of erroring
Q2_0 is an upstream type. An older stock llama.cpp recognises the name, recognises the architecture, allocates the tensors and starts generating. It has no reason to complain. But recognising the container is not the same as knowing what to do with the contents, and that gap is where the output goes.
Prism ML’s documentation describes the mechanism plainly: the weights “sit in a rotated basis, so the runtime must apply the matching Hadamard transform to activations, along with the model’s sign flips. A runtime that knows the Q2_0 type but not Bonsai 2 loads the file and produces gibberish.” The numbers in the file are fine. They are simply being read in the wrong coordinate system, and nothing in the GGUF format gives the loader a way to notice.
You do not have to take the vendor’s word for how bad that is, because the person who added the support upstream measured it. Pull request #29600 in ggml-org/llama.cpp, merged on 11 October 2026, carries three llama-perplexity runs over the same model file in its description. On a build with the support, perplexity is 10.2343. On the patched build it is 10.234146, with a mean KL divergence of 0.000000 and the same top token at 99.975% of positions — which is the result you want, and the reason the PR was accepted. On pre-merge master, the same file scores a final perplexity of 1,258,506.97.
That is five orders of magnitude, and the important detail is not the size of the number — it is that there is a number at all. Master did not refuse the file. It loaded it, ran four chunks of WikiText through it and reported a result, the way it would for any model. A loader that errors tells you something is wrong. This one tells you nothing, which is why people reach for the issue tracker and blame the quantisation.
Check your build before you download seven gigabytes
The fix is a version check, and it takes about four seconds.
llama-cli --version
The number you want is the build tag. Support for this model family landed in release b11556, published on 11 October 2026 — the release body names model : support for Prism Bonsai 2 27B (#29600) directly. Anything from b11556 onward will run Q2_0 correctly. Anything built before 11 October 2026 will run it and lie to you.
Once you know your build, the choice is mechanical. On stock llama.cpp at b11556 or newer, take Q2_0:
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir .
On an older stock build, update it first, or install the PrismML binaries and use PTQ1_0 instead. Do not simply try the other files hoping one works — that is how you spend forty minutes and twenty gigabytes discovering what a version string would have told you.
One caution on the number itself. Build tags get repeated second-hand, and in the model’s own discussion threads you will see both b11555 and b11556 quoted as the cutoff. b11556 is the one to trust: it is the release whose published notes name the merge. That small disagreement is a decent argument for reading your own --version output rather than a forum post, which is the general lesson here anyway.
A good sanity check after all this: ask it something short and factual. Correct output reads like a competent small model thinking out loud. Broken output is not subtly worse — it is unmistakable, repetitive, frequently not even words. There is no ambiguous middle, which is the one mercy in the whole situation.
The apps that bundle their own llama.cpp
Here is where most people actually get caught, and it is the reason updating your own llama.cpp may do nothing at all for you.
LM Studio, Ollama and Locally AI all ship their own inference engine. Prism ML’s documentation says so explicitly: “Compatibility follows the version and model loader they bundle, not the file extension.” The llama.cpp in your PATH is irrelevant if the thing loading the model is the copy baked into a desktop app, and most of those apps do not surface their engine build anywhere obvious. This is the same class of problem as a runtime quietly dropping support for hardware you still own: the file has not changed, your machine has not changed, and it stops working anyway.
Two concrete instances are already in the wild. On 28 November a user reported that Hugging Face’s own “Use this model > Ollama” button points at the PQ2_0 file rather than Q2_0. A second user confirmed why: PQ2_0 sits first in the served file list, so the button surfaces the fork-only packing by default. That is not user error — it is the platform’s own shortcut handing you the wrong file.
The second is an Ollama community mirror of the Bonsai 2 packs, which has taken 13,500 downloads. Its own description says, in plain words, “Requires Prism ML’s llama.cpp fork — stock Ollama cannot load.” The page still offers a one-line ollama run command at the top. Note that this mirror is of Bonsai 2 rather than this month’s 2.5 release and was last updated around two months ago, but the shape of the trap is identical: a frictionless install command sitting directly above a warning that the default runtime cannot do the thing the command implies.
What staying on stock llama.cpp costs you
It is a real trade, not a free one, and it is worth knowing before you commit.
Q2_0 is 7.67 GB against PTQ1_0’s 5.99 GB. That 1.68 GB gap is the entire difference between comfortable and not on an 8 GB card, where you are already budgeting for the KV cache and whatever the desktop compositor has taken. Anyone who has worked through fitting a large model onto a small GPU knows that a gigabyte and a half decides how much context you get to keep.
Prism ML also reports that upstream decodes more slowly than their own binaries on the same file — 109 tokens per second against 150 on an H200 — while producing identical greedy text. That is their measurement on their hardware, not an independent one, so weigh it accordingly; the file sizes above are the part you can check yourself in the repository listing. It also mirrors the general lesson that a model’s advertised size and what actually lands on your disk are routinely different questions.
Why two official pages give different answers
If you search for any of this, you will hit a contradiction, and it is worth understanding rather than ignoring.
The 2.5 27B card says Q2_0 runs on upstream llama.cpp. The Ternary Bonsai 8B card says the opposite: “Q2_0 is not yet in mainline llama.cpp. Use our fork … Upstream PR coming soon.” Both are Prism ML’s pages. The 8B card was last modified on 10 June 2026 and is still pulling around 90,000 downloads a month, so plenty of people are reading it.
The resolution is scope, not error. Pull request #29600 is titled “Runtime support for Prism Bonsai 2 27B” — it is specific to that model. A statement about what is in mainline is only ever true of a particular model on a particular build, and a card written in June describing a different size of model may well still be accurate about itself. Which is the whole point: the question “is this supported upstream?” has no general answer. It has an answer for your file on your binary, and llama-cli --version is how you get it.
What this does not cover, and what would change it
Everything above is about the GGUF route. The MLX packs for Apple Silicon are a separate path with their own loader and their own compatibility story, and none of the build numbers here apply to them. The multi-token-prediction drafters and PQ2_0 ship only in the PrismML builds. On Vulkan and SYCL, the documentation notes that kernel selection depends on your device and driver, so “the fork supports it” is less of a guarantee there than on CUDA or Metal.
The moving part is PTQ1_0. Its two upstream pull requests — #29672 for the format and CPU and #29676 for CUDA — were both still open on 30 November 2026, with activity on 26 and 27 November respectively. If they merge, the smallest and fastest file becomes available on stock builds, and the download advice in this article changes: you would take PTQ1_0 and save the 1.68 GB.
The version check does not change. It gets more important, because a second file crossing the boundary means a second way for a build that is nearly new enough to load something it cannot actually run.
Sources
Every figure in this article traces to one of these. Dates are when the page was read.
- Ternary Bonsai 2.5 27B - GGUF (model card)Prism ML on Hugging FaceAccessed Nov 30, 2026Official docs
- Runtime support for Prism Bonsai 2 27B (PR #29600)ggml-org/llama.cppAccessed Nov 30, 2026Independent
- llama.cpp release b11556ggml-org/llama.cppAccessed Nov 30, 2026Official docs
- ggml: add PTQ1_0, ternary at group 128 (PR #29672)ggml-org/llama.cppAccessed Nov 30, 2026Official docs
- cuda: add PTQ1_0 support (PR #29676)ggml-org/llama.cppAccessed Nov 30, 2026Official docs
- Formats & Runtime SupportPrism ML documentationAccessed Nov 30, 2026Official docs
- TroubleshootingPrism ML documentationAccessed Nov 30, 2026Official docs
- Ternary Bonsai 2.5 27B GGUF - file listingPrism ML on Hugging FaceAccessed Nov 30, 2026Official docs
- 'Use this model > Ollama' points at PQ2_0, not Q2_0Hugging Face community discussionAccessed Nov 30, 2026Independent
- tobestyledintro/Ternary-Bonsai-2-27B (community mirror)Ollama model libraryAccessed Nov 30, 2026Independent
- Ternary Bonsai 8B gguf (model card)Prism ML on Hugging FaceAccessed Nov 30, 2026Official docs
Written by
Full-stack developer who builds and runs AI automation systems in production. Runs local LLMs on personal hardware, builds N8N pipelines that actually ship, and deploys on Cloudflare Pages. Every guide on Pipeline Monk is tested on real consumer hardware — a Ryzen 7 5800HS with 16GB RAM and a GTX 1650. If it works on that, it works.