Prism ML's ternary Bonsai 2 27B as GGUF files for chatting on large-memory Android phones with TokForge, with the phone settings TokForge applies.
Published by TokForge for on-device inference.
| What it is | Chat model |
| Format | GGUF, ternary packings PQ2_0 and PTQ1_0, plus a PTQ1_0 file with an MTP head |
| Runs on | Android phones (TokForge's llama.cpp: Vulkan GPU on non-Samsung Snapdragon 8 Elite Gen 5 and 8 Gen 3 phones, CPU elsewhere) |
| Phone class | 16 GB RAM or more (12 GB phones are untested) |
| Download | 19.6 GB (7 files) |
| Base model | prism-ml/Ternary-Bonsai-2-27B-gguf |
| License | Apache-2.0 |
Runs on-device in the TokForge app.
TokForge-Bonsai-2-27B-GGUF and download the file you want (see below). You can also download a file from this page and import it.Collections: TokForge Bonsai 2 Ternary Models, TokForge GGUF Models.
| File | Size | What it is |
|---|---|---|
manifest.json |
3.62 KB | TokForge route, settings and phone measurements, machine-readable |
Ternary-Bonsai-2-27B-PQ2_0.gguf |
7.21 GB | PQ2_0 packing (Prism ML's file), for the GPU route |
Ternary-Bonsai-2-27B-PTQ1_0-MTP.gguf |
6.40 GB | PTQ1_0 packing with an added MTP head (CPU route) |
Ternary-Bonsai-2-27B-PTQ1_0.gguf |
5.95 GB | PTQ1_0 packing (Prism ML's file), for the CPU route |
LICENSE |
10.2 KB | Apache-2.0 license text (from Prism ML's release) |
NOTICE.txt |
411 B | Prism ML's notice |
SHA256SUMS |
300 B | sha256 of every file |
| File | Bytes | SHA-256 |
|---|---|---|
Ternary-Bonsai-2-27B-PQ2_0.gguf |
7,206,168,928 | 3907dc1658db1f78a9826bf8d5bcb8dc65db0d466388937af57f2294fae62ec1 |
Ternary-Bonsai-2-27B-PTQ1_0.gguf |
5,946,648,928 | 53107f530aa52eb00912263ab1ee29bd199261c87cd7b4ad4ca1318c1fe33ee3 |
Ternary-Bonsai-2-27B-PTQ1_0-MTP.gguf |
6,397,971,040 | 0d34204c7b047d566cbcd21eed38407d26e75f2daf00b4458692feba7f0fa15f |
The PQ2_0 and PTQ1_0 files are byte-identical to upstream prism-ml/Ternary-Bonsai-2-27B-gguf at revision 6ed5e12bf84b7a63069882c91dd9e9218647d17b. The upstream repo also carries the F16 weights and the vision projector (mmproj) files, which TokForge does not use yet.
Created using Bonsai by Prism ML. All credit for the model, the ternary training and the GGUF packings goes to Prism ML; the base model is Qwen3.8-27B by Alibaba Cloud. The PQ2_0 and PTQ1_0 files here are byte-identical to the upstream release; the MTP file adds one block from the base model to the PTQ1_0 file (see below). What TokForge adds is the Android runtime (Vulkan and CPU kernels for these packings) and the tested phone settings below.
| File | Packing | Best route in TokForge |
|---|---|---|
Ternary-Bonsai-2-27B-PQ2_0.gguf |
PQ2_0, 2.13 bits per weight | GPU (Vulkan) on supported Snapdragon phones |
Ternary-Bonsai-2-27B-PTQ1_0.gguf |
PTQ1_0, 1.75 bits per weight | CPU |
Ternary-Bonsai-2-27B-PTQ1_0-MTP.gguf |
PTQ1_0 plus an MTP head (Q8_0) | CPU, MTP where your phone measures a gain |
TokForge chooses the route and the settings for you when it loads either file.
The file Ternary-Bonsai-2-27B-PTQ1_0-MTP.gguf:
Ternary-Bonsai-2-27B-PTQ1_0.gguf are in this file byte for byte, at the same offsets: the whole 5,935,527,936-byte tensor data block has the same sha256 (976fbb7218f52a5f239cf36c0bb0e146300c7db1786a6e88e71fadb920d36263). Removing the head again gives back the upstream PTQ1_0 file exactly (sha256 53107f530aa52eb00912263ab1ee29bd199261c87cd7b4ad4ca1318c1fe33ee3).qwen35.block_count 64 to 65, qwen35.nextn_predict_layers = 1, and tokforge.mtp_graft.* provenance strings. The prism.hadamard.* keys, the tokenizer and every other key are unchanged.mtp.* tensors of the base model, Qwen/Qwen3.8-27B at commit 1d4bf0f2ff (model-00018-of-00018.safetensors), written as block 64 in the llama.cpp layout: weight matrices in Q8_0, norms in F32. The head reads Bonsai's own token embedding and output layer and carries no copy of either (451,319,808 bytes added). It was not retrained on Bonsai.These are applied automatically; you do not need to set them by hand. They are also in manifest.json for other runtimes.
PQ2_0 on the GPU (Snapdragon 8 Elite Gen 5 / 8 Gen 3, non-Samsung)
| Setting | Value | Why |
|---|---|---|
| Backend | Vulkan, all layers on the GPU | GPU route on supported phones |
| Context | 2048 tokens | larger contexts fault the GPU at the first prefill on this driver |
| Prefill batch | 128 | same reason |
| Microbatch | 1 token | batched prefill loses the GPU device on Adreno |
| KV cache | f16 (keys and values) | a quantized KV cache faults the GPU on this driver |
| Flash attention | on | |
| CPU threads | 6 | |
GGML_VK_DISABLE_FUSION_MASK |
5 | normalization fusion is not correct on this driver |
| Thinking | off | keeps answers short on a phone |
| Speculative decoding | off | not used for this model |
PTQ1_0 on the CPU
| Setting | Value |
|---|---|
| Backend | CPU |
| Context | 2048 tokens |
| Prefill batch | 128 |
| CPU threads | 6 |
| Thinking | off |
| Speculative decoding | off |
Apache-2.0, inherited from Prism ML's release and the Qwen base model. LICENSE and NOTICE.txt are included unchanged. Per Prism ML's notice: created using Bonsai by Prism ML.
Ternary-Bonsai-2-27B-PTQ1_0-MTP.gguf is the multi-token prediction (MTP) layer of Qwen3.8-27B by the Qwen team (Alibaba Cloud) (Hugging Face, commit 1d4bf0f2ff), with its weight matrices converted to Q8_0 by TokForge. Used under the Apache-2.0 license.prism-ml/Ternary-Bonsai-2-27B-gguf