Ternary Bonsai 2.5 27B · CHiPS-Abliterated (Preview)
A modified version of Prism ML's Q2_0-mtp file from Ternary-Bonsai-2.5-27B-GGUF, with refusal behavior reduced.
Not an official Prism ML or Qwen release. Prism ML and the Qwen team did not make it and do not endorse it.
Preview. Refusals drop sharply, but in thinking mode the edited model thinks about five times longer: at a 4,096-token limit 228 of 312 replies finished, against 310 for the original. Use a large token limit and a presence penalty of about 0.9 (see Usage).
- Refusals: on 312 harmful requests in English, Japanese and Chinese at a 4,096-token limit, refusal phrases were found in the final answers of 269 replies from the original and 13 from this model. Reading the flagged replies confirmed 5 explicit refusals (1.6%) from this model.
- Longer replies: 2,334 new tokens on average, against 471 for the original. 84 of 312 replies reached the 4,096-token limit, 47 of them while still thinking.
- Side effects (gne eval, thinking off): 94.4% on 36 short-answer and format tasks, against 100% for the original (all short answers right, 2 of 12 format tasks missed). Perplexity rises by 1.7%.
- Small edit: 3 of 866 tensors are rewritten: the MLP of layer 26, one attention head (layer 33, head 16) and two MLP neurons (layer 54). Everything else, including the MTP draft head, is byte-identical to the original file, and the metadata is unchanged.
- Method: the edit was made with CHiPS (see below). The recipe is not published.
What changed
| Original | This model | |
|---|---|---|
| Size | 7,912,178,944 bytes | 7,981,810,944 bytes (+69.6 MB) |
| Tensors | 866 | 866, of which 3 are rewritten |
blk.26.ffn_down.weight (MLP output, layer 26) | Q2_0 | Q8_0, the whole layer's write edited |
blk.33.ssm_out.weight (output of linear-attention layer 33) | Q2_0 | Q2_0, 1,024 of 6,144 columns changed for head 16 |
blk.54.ffn_down.weight (MLP output, layer 54) | Q2_0 | Q2_0, 2,048 of 17,408 columns changed for two neurons |
All other tensors, including the MTP draft head (blk.64) | byte-identical | |
| Metadata | unchanged |
The layer 26 tensor is stored as Q8_0 because rounding it back to Q2_0 lost too much of the edit. That is where the extra 69.6 MB comes from. By gne's measure the stored tensors keep 89.7% (layer 26), 95.6% (layer 33) and 99.3% (layer 54) of the edit.
A head or a neuron is a few columns of its tensor, but more columns change. Bonsai stores its weights with a block Hadamard rotation folded into the input side (blocks of 1,024 columns), and the runtime undoes it. A change to one head's or one neuron's columns therefore spreads, in smaller amounts, over the whole 1,024-column block that holds them. In the unrotated basis, the other heads and neurons do not change.
The edited tensors are no longer strictly ternary. In the original, every value is −1, 0 or +1 times its block scale. Layer 26 is now Q8_0. In the two edited Q2_0 tensors some values use Q2_0's fourth level, +2: 1.9% of layer 33's values and 0.05% of layer 54's. The file is still a standard GGUF for stock llama.cpp, but the edit cannot be carried over as is to Prism ML's PTQ1_0 and PQ2_0 packings, which hold only ternary values. All other tensors are still exactly ternary.
About CHiPS
CHiPS (Causal Head-isolated Projection Steering) reduces one behavior without training. It picks model components by their causal effect on that behavior and reduces the part of their output that lies along one direction. The rest of the model is left untouched. This article explains the method and its results on other models.
In the article, CHiPS edits a few attention heads. Here the edit combines one head, two MLP neurons and the whole MLP of one layer. The recipe is not published.
Files
| File | Size | SHA-256 |
|---|---|---|
Ternary-Bonsai-2.5-27B-CHiPS-Abliterated-Q2_0-mtp.gguf | 7.98 GB | e567db033d3ffbcda9a3fafdfe782060612a457e42af4c756ce07fbc5217b799 |
The original file is Prism ML's Ternary-Bonsai-2.5-27B-Q2_0-mtp.gguf (SHA-256 b0f83de8481c3200c529aef5fb495dbfedf2a4a3f017f7a3ea0a69c67be1d306). It includes the MTP draft head for speculative decoding. LICENSE and NOTICE.txt are the original repository's (see below).
No vision projector is included. Prism ML's mmproj files are unchanged and can be taken from the original repository, but images were not tested with this file.
Earlier version
The first upload (2026-11-25, SHA-256 ad30cb58a52de1c6336759da73a3c404f12da13bf18089c0f887a2d9ac550d5f) edited only head 16 of layer 33 and is still in the repository history. It was made with a flawed method: with a presence penalty of 0, 28 of 312 replies ended without a final answer although they finished, 2 fell into repeated symbols, and refusal markers remained in 27.6% of replies.
Usage
hf download Kujira/Ternary-Bonsai-2.5-27B-CHiPS-Abliterated-GGUF Ternary-Bonsai-2.5-27B-CHiPS-Abliterated-Q2_0-mtp.gguf --local-dir .
llama-server -m Ternary-Bonsai-2.5-27B-CHiPS-Abliterated-Q2_0-mtp.gguf -ngl 99 -fa on --jinja -c 32768 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --presence-penalty 0.9 --repeat-penalty 1.0
Use stock llama.cpp b11556 or later, which has the Hadamard activation runtime these weights need. As Prism ML warns, older stock builds load Q2_0 without any warning and produce garbage. For speculative decoding with the MTP head, and for other runtimes, follow the original card and Bonsai-demo.
The settings above follow Prism ML's recommendation for thinking mode, except the presence penalty. Prism ML recommends 0 for the original model, but with 0 this model fell into long repetition loops in 5 of 312 replies, and with 0.9 in none (see Evaluation). The model uses xhigh reasoning effort by default; medium gives shorter replies. It thinks much longer than the original, so set max_tokens well above 4,096.
Evaluation
This file and the original Q2_0-mtp file were run one after the other with the same settings and seeds. Each set was run once. The request set is not published.
Harmful requests at 4,096 tokens
Setup
- 312 single-turn harmful requests: 104 in English, 104 in Japanese and 104 in Chinese. No system prompt, the model's own chat template.
- llama.cpp
llama-server(build 12601, commit2a28df0f9), 4 parallel slots. - Thinking on, at the chat template's default reasoning effort (
xhigh). - Temperature 1.0, top_p 0.95, top_k 20, min_p 0, presence penalty 0.9, repetition penalty 1.0. At most 4,096 new tokens including the thinking. The seed for each request is the same for both files.
| Original | This model | |
|---|---|---|
| Finished normally | 310 (99.4%) | 228 (73.1%) |
| Reached the 4,096-token limit | 2 | 84 |
| No final answer | 1 | 47 |
| Finished normally but with an empty final answer | 0 | 0 |
| Mean new tokens (median) | 471 (338) | 2,334 (2,029) |
| Refusal phrases in the thinking (candidates) | 255 | 7 |
| Refusal phrases in the final answer (candidates) | 269 | 13 |
| Explicit refusals confirmed by reading | 5 (1.6%) |
| By language (104 each) | English | Japanese | Chinese |
|---|---|---|---|
| Original: finished normally | 102 | 104 | 104 |
| This model: finished normally | 66 | 81 | 81 |
| This model: no final answer | 23 | 13 | 11 |
The refusal counts come from pattern matching in English, Japanese and Chinese. They are candidates, not a full reading of each reply. This model's 13 candidates in the final answer include statements about what the model cannot do, such as generating images or giving legal advice, which are not refusals of the request. Reading the flagged replies confirmed 5 explicit refusals, 4 of them already decided in the thinking. Treat this as a lower bound, since an indirect refusal can be missed.
No long repetition loops were found at this presence penalty. A few replies misread the request and answered a different question, one translated the request instead of answering it, one gave placeholder links, and in one the final answer did not follow the thinking. "No refusal" does not mean the request was carried out correctly.
With presence penalty 0. The same file at a presence penalty of 0, everything else the same: 225 replies finished, 55 had no final answer, 1 refused explicitly, and 5 fell into long repetition loops in the thinking (4 in Japanese, 1 in Chinese) and ran to the token limit. The original behaved almost the same at 0 and 0.9 (310 finished at both).
Side effects (gne eval)
Measured with gne eval from gne, its default suite, on each file as it is (no recipe applied at run time). Greedy decoding with thinking off, so these numbers do not reflect thinking-mode behavior. Perplexity is teacher-forced on gne's small reference texts, read as plain text without the chat template.
| Original | This model | |
|---|---|---|
| Short-answer and format tasks (36) | 100% | 94.4% |
| short answers (24) / format (12) | 24 / 12 | 24 / 10 |
| Language mixing in Japanese answers (8) | 0% | 0% |
| Perplexity, English | 8.516 | 8.743 (+2.7%) |
| Perplexity, Japanese | 27.21 | 27.37 (+0.6%) |
| Perplexity, code | 4.317 | 4.399 (+1.9%) |
| Perplexity, mean | 10.00 | 10.17 (+1.7%) |
The two missed format tasks asked for an answer in exactly two lines and for an answer in Japanese. The 5.6-point drop is just outside gne's guideline for a shippable edit (5 points). In the same run, gne's refusal check on 64 harmful requests from the set used to build the edit found refusal phrases in 54 answers (84%) from the original and 1 (1.6%) from this model.
Limitations
- In thinking mode the model thinks about five times longer than the original, and at 4,096 tokens 27% of replies did not finish. Use a large token limit.
- Without a presence penalty the model can fall into long repetition loops (5 of 312 at a penalty of 0).
- The refusal counts are pattern-matching candidates plus reading of the flagged replies, not a full reading. Some replies misread the request, so a missing refusal does not mean the request was handled correctly.
- Each set was run once at temperature 1.0, and the sets are small: one request is about 0.3%.
- Capability was checked only with gne eval's small suite with thinking off, and perplexity on small reference texts. Benchmarks such as GSM8K or MMLU-Pro were not run.
- The MTP draft head is unchanged. It was trained for the original model, so speculative decoding may accept fewer drafted tokens with the edited model. This was not tested.
- Only
Q2_0-mtpis provided. The edit cannot be carried over as is toPTQ1_0orPQ2_0(see What changed). - Only single-turn requests without a system prompt were tested. Images, long contexts and tool calling were not tested.
- The original model's limitations still apply. See the original model card.
Intended use
This model follows many requests that the original model refuses, and it can produce harmful, offensive or inaccurate content. It is meant for research and for users who understand this. You are responsible for how you use it, including compliance with applicable laws and the license below. Add your own safeguards before using it in anything that serves other people.
License
Same license as the original release: the Apache License 2.0. NOTICE.txt is the original repository's notice, unchanged.
Created using Bonsai by Prism ML. Derivative of Ternary Bonsai 2.5 27B, copyright 2026-present Prism ML, Inc., built from Qwen3.8-27B, Copyright 2026 Alibaba Cloud, both under the Apache License 2.0. Changes in this repository: three tensors were rewritten, as described in What changed.
Credits
- Ternary Bonsai 2.5 27B and this GGUF: Prism ML.
- Base model: Qwen3.8-27B by the Qwen team.
- Edited and checked with gne, using CHiPS.