Updated 2026-11-25. Ternary Bonsai 2.5 27B stores a 27B model in ternary weights at about 1.8 bits per weight, and the headline figure is 5.93 GB. That is one of three packings, and only one loads in upstream llama.cpp.
Get the packing wrong and the file either produces nonsense or is refused outright.
Prism ML ships the 27B in three GGUF packings with different bit layouts, and the differences decide which runtime can read them [2][4].
b11556
Q2_0
PQ2_0
PTQ1_0
I measured the real files rather than reading the table, with a HEAD request to the repository [7]:
$ for f in PTQ1_0 PQ2_0 Q2_0 mmproj-Q8_0; do curl -sIL "https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-gguf/resolve/main/Ternary-Bonsai-2.5-27B-$f.gguf" \ | grep -i '^x-linked-size' | tail -1; done Ternary-Bonsai-2.5-27B-PTQ1_0.gguf 5993834848 bytes 5.99 GB 5.58 GiB Ternary-Bonsai-2.5-27B-PQ2_0.gguf 7253354848 bytes 7.25 GB 6.76 GiB Ternary-Bonsai-2.5-27B-Q2_0.gguf 7673194848 bytes 7.67 GB 7.15 GiB Ternary-Bonsai-2.5-27B-mmproj-Q8_0.gguf 629246976 bytes 0.63 GB 0.59 GiB
The documentation says 5.93 GB for PTQ1_0, and the file is 5.99 GB, a difference of about 60 MB that I could not explain from anything else on the page. The file size is the source of truth, and the gap does not change the decision, but it does mean you should not budget from the marketing figure. Note also the units: those are decimal gigabytes, and your file manager will show 5.58 GiB for the same file. Every size in this post is given both ways for that reason.
Start with Q2_0, because it is the only packing that runs on a build you can download from the llama.cpp releases page. Put the weights somewhere with room and point llama-cli at them [3]:
llama-cli
mkdir -p models && cd models hf download prism-ml/Ternary-Bonsai-2.5-27B-gguf \ Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir . cd .. ./llama-cli -m models/Ternary-Bonsai-2.5-27B-Q2_0.gguf \ -ngl 99 -fa on -c 32768 \ --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
Three parts of that command are not optional in the way they look.
The build must be b11556 or newer. This is the trap worth the whole post. Bonsai 2 stores its weights in a rotated basis, so the runtime has to apply a matching Hadamard transform to activations. A build that understands the Q2_0 file type and the base architecture but not that transform loads the file without a warning and produces gibberish [5]. You get words, not an error. The same applies to desktop apps that bundle their own engine: LM Studio, Ollama and similar tools return nonsense until the engine inside them ships a Bonsai-aware runtime, and the fix is to check the engine version rather than to re-download the model.
--min-p 0 is explicit for a reason. llama.cpp applies min_p = 0.05 when you leave it unset, and the model's published settings are 0.0, so leaving it out silently changes your sampling [4].
--min-p 0
min_p = 0.05
Sampling depends on the mode. Thinking mode wants temperature 1.0, top_p 0.95; instruct mode wants temperature 0.7, top_p 0.80, presence_penalty 1.5. Mixing the two sets degrades output, and the published benchmarks used the thinking values [4].
temperature 1.0, top_p 0.95
temperature 0.7, top_p 0.80, presence_penalty 1.5
I verified the version claims rather than trusting the page [3]:
$ gh api repos/ggml-org/llama.cpp/pulls/29600 -q '.state, .merged, .merged_at' closed true 2026-10-11T12:39:17Z # Runtime support for Prism Bonsai 2 27B $ gh api repos/ggml-org/llama.cpp/releases/tags/b11556 -q '.published_at' 2026-10-11T13:31:50Z # the tag landed the same day as the merge $ gh api repos/ggml-org/llama.cpp/pulls/29672 -q '.state, .created_at' open 2026-09-29T17:18:16Z # PTQ1_0 upstream support, still not merged
Upstream releases were at b12721 this morning, so the gate is about 1,100 builds behind current and easy to satisfy by downloading a recent release. The PTQ1_0 pull request has been open since September, which is why the smallest file still needs the vendor's fork.
b12721
Here is the part that catches people, and the artifact table says it plainly [4]: PTQ1_0, the 5.93 GB file that all the coverage quotes, runs on PrismML's llama.cpp binaries, not upstream. PQ2_0 is refused by upstream as an unknown type. Only Q2_0, at 7.15 GiB, is a plain upstream download.
The vendor's own 27B chat example uses PTQ1_0 [3], so following the documentation for the flagship model means building or downloading the fork:
# PrismML builds, which carry the PQ2_0 and PTQ1_0 kernels and the draft heads gh release list --repo PrismML-Eng/llama.cpp | head -3 # prism-b12178-03ec600 2026-11-24T19:45:18Z tar -xzf llama-prism-b12178-03ec600-bin-<platform>.tar.gz -C bin --strip-components=1 ./llama-server -m models/Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \ -ngl 99 -fa on -c 32768 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
The fork carried 1,035 stars and its newest release was published on 2026-11-24, so it is maintained rather than a one-off. It trails upstream by about 540 builds, which matters only if you need something from those builds.
The number to plan around is not 5.93 GB, because the KV cache is not in it. The MLX pack publishes a config.json, and it gives the arithmetic directly [7]:
config.json
import json cfg = json.load(open('config.json'))['text_config'] full = sum(1 for t in cfg['layer_types'] if t == 'full_attention') per_token = full * 2 * cfg['num_key_value_heads'] * cfg['head_dim'] * 2 # K and V, fp16 print(cfg['num_hidden_layers'], full, cfg['num_key_value_heads'], cfg['head_dim']) print(f"{per_token/1024:.1f} KiB per token at {cfg['max_position_embeddings']} max context")
$ python3 kv_calc.py 64 16 4 256 64.0 KiB per token at 262144 max context
Extending the same arithmetic across the three packings and two contexts gives the budget below.
The model has 64 layers, and 16 of them are full attention with a group size of 4, so only a quarter of the layers grow a KV cache as the context fills. That is why the per-token figure is 64 KiB rather than the 256 KiB it would be with attention on every layer. My 64 KiB per token matches the vendor's troubleshooting page, which states 64 KiB per token and about 6.3 GiB at 100K [5], so the two agree even though I derived it from the config rather than reading it.
The practical consequence: at the 32K context in the commands above, a PTQ1_0 run needs roughly 5.58 GiB of weights plus 2 GiB of cache plus 0.59 GiB for the vision projector, near 8.2 GiB before anything else. At the full 262,144-token context the cache alone is 16 GiB. If your machine is tight, the documented knobs are these [5]:
-c 8192
BONSAI_CTX=8192
--cache-type-k q8_0 --cache-type-v q8_0
BONSAI_KV4=1
BONSAI_MMPROJ_CPU=1
BONSAI_MODEL=9B
One warning from that page is worth repeating because it explains a class of bug reports: older revisions of the demo scripts passed llama.cpp -c 0, which asks for the model's full training context of 262K regardless of available memory. If you find an old guide that does this, it will look like a tuning choice and behave like an out-of-memory crash.
-c 0
The demo repository ships an OpenAI-compatible server, and the quickstart is two commands [6]:
git clone https://github.com/PrismML-Eng/Bonsai-demo.git && cd Bonsai-demo ./scripts/setup.sh # BONSAI_MODEL defaults to 27B, about 8 GB of download ./scripts/start_llama_server.sh curl http://localhost:8080/v1/models
The scripts bind to 127.0.0.1, and there is no authentication. Setting BONSAI_HOST to anything wider exposes an unauthenticated endpoint that can run tool calls on the machine it sits on. On a laptop that is a choice you can make knowingly. On a shared host it is the kind of default that ends up in a screenshot.
127.0.0.1
BONSAI_HOST
Every size in the family is a reasoning model, with thinking on by default. The server script applies the recommended sampling, and --reasoning-budget N caps the default. The default effort is xhigh, medium is supported, and low is not: selecting it makes the model behave as if a different value were set [4].
--reasoning-budget N
xhigh
medium
low
Two of these are real outputs from this machine, and both cost time.
A file name that looks obvious is a 404. The repository names are irregular: the family is Ternary-Bonsai-2-9B, and the 27B is Ternary-Bonsai-2.5-27B. A request built by hand from the pattern fails with a body that does not name the file you asked for:
Ternary-Bonsai-2-9B
Ternary-Bonsai-2.5-27B
$ curl -sI .../Ternary-Bonsai-2.5-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-PQ2_0.gguf HTTP/2 404 Entry not found
An MLX pack on Linux installs and then fails at import. The MLX wheel for Linux x86_64 exists and installs cleanly, so a Linux user can reasonably expect the MLX path to work:
$ pip install mlx Successfully installed mlx-0.32.5 $ python3 -c "import mlx, mlx.core as mx; print(mx.metal.is_available())" ImportError: libmlx.so: cannot open shared object file: No such file or directory
The package installs a single extension module, mlx/core.cpython-312-x86_64-linux-gnu.so, while the import looks for libmlx.so, which the wheel does not place anywhere on the path. The MLX pack's own pinned requirements are Apple-oriented in another way: mlx==0.32.0, mlx-lm==0.31.3, mlx-vlm==0.6.3, transformers==5.5.0. The troubleshooting page separately says to use mlx-vlm 0.7.8 or newer, because an MLX loader without Bonsai support skips the activation transform and returns wrong output rather than an error [5]. Those two statements pull in different directions, so pin nothing from memory and check both pages before you build an image.
mlx/core.cpython-312-x86_64-linux-gnu.so
libmlx.so
mlx==0.32.0
mlx-lm==0.31.3
mlx-vlm==0.6.3
transformers==5.5.0
mlx-vlm
I checked the things that can be checked without the weights in hand. The repository prism-ml/Ternary-Bonsai-2.5-27B-gguf is public and ungated under Apache 2.0, with 171 likes and its last modification on 2026-11-24 [7]. The two upstream pull requests and the b11556 tag are exactly as the documentation describes them. The context ceiling, the layer count and the KV figure come from the model's published config and agree with the vendor's page.
prism-ml/Ternary-Bonsai-2.5-27B-gguf
The performance and quality numbers are the vendor's, measured by them and stated as such: FP16-level tool calling, agentic coding at 90 percent of full precision, and roughly two points behind on general capability, plus 9 times less memory, 8 times faster and 5 times less energy on the page [1]. I have not run a single token through this model, so none of those are verified here, and the decode figures above (109 against 150 tokens per second on an H200) are the vendor's own comparison of upstream llama.cpp with their fork.
If you are weighing a 27B model that fits in about 6 GiB against an API bill, what running your own model changes about data handling and bills is the decision post, and the Inkling 2 Mini guide covers the same arithmetic for a different model. What an agent costs in practice is the part most local-model plans leave out.
Can I run the 5.93 GB file in Ollama? Once the engine inside Ollama ships a Bonsai-aware runtime. Until then the same gibberish rule applies, and the version to check is the engine, not the model tag.
Which packing should I download first? Q2_0 if you want a stock llama.cpp release. PTQ1_0 if you are willing to use the vendor fork, which is the smallest and, on current kernels, the faster decode.
Does the vision projector have to be loaded? Only for images. It is a separate file, about 0.59 GiB, and text-only runs do not need it.
Why does my file manager disagree with the documentation? The documented figures are decimal gigabytes and most operating systems display gibibytes. The same PTQ1_0 file reads 5.99 GB and 5.58 GiB.
Is a 27B model at 1.8 bits per weight ready for real work? The vendor's own comparison puts tool calling level with the full-precision base model and agentic coding at about 90 percent of it. Those are their benchmarks, and the honest answer for your workload is to test it on your own tasks.
What is the actual floor for running it? Around 8 GiB of memory for PTQ1_0 at a 32K context with the projector, and more headroom if you want the longer contexts the model advertises.
[1] Prism ML, Ternary Bonsai 2.5 27B product page, fetched 2026-11-25. Source of the attribution claims: 9 times less memory, 8 times faster, 5 times less energy, 5.9 GB, the Qwen3.8 27B base, and the Bonsai family lineup.
[2] Prism ML, Formats & Runtime Support, fetched 2026-11-25. Source of the three packing layouts, the bits-per-weight ranges, the per-packing memory table, the runtime support matrix, and the statement that the rotated basis requires a matching Hadamard transform.
[3] Prism ML, llama.cpp, fetched 2026-11-25. Source of the b11556 version gate, the llama-cli and llama-server commands, the fork build instructions, and the vendor's upstream-versus-fork speed comparison.
llama-server
[4] Prism ML, Ternary Bonsai 2.5 27B model page, fetched 2026-11-25. Source of the artifact table per packing, the benchmark tables with their headers, the thinking and instruct sampling sets, the min_p default warning, the reasoning effort values including low being unsupported, and the 1.76 bits per weight specification.
min_p
[5] Prism ML, Troubleshooting, fetched 2026-11-25. Source of the gibberish failure modes by build, the 64 KiB per token figure and the 6.3 GiB at 100K figure that my calculation matches, the memory knobs including BONSAI_KV4 and BONSAI_MMPROJ_CPU, the history of -c 0, and the mlx-vlm 0.7.8 minimum.
BONSAI_KV4
BONSAI_MMPROJ_CPU
[6] Prism ML, Run the Server and Quickstart, fetched 2026-11-25. Source of the server scripts, the ports, the localhost binding statement, and the default 27B download size of about 8 GB.
[7] prism-ml/Ternary-Bonsai-2.5-27B-gguf and prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit, fetched 2026-11-25. Source of the real file sizes measured by HEAD request, the license and gating status, the like counts, the config.json values for layers, KV heads, head dimension, full_attention_interval and the 262,144 context, and the MLX pack's pinned requirements.
full_attention_interval
[8] Hacker News discussion, Ternary Bonsai 2.5 27B, the 429-point thread that surfaced the release on 2026-11-25.
Maxpertise is an AI-native engineering company. We embed native AI engineers inside your team, live in about 10 days. Please enable JavaScript to view the site, or email contact@maxpertise.net.