license: apache-2.0
library_name: gguf
pipeline_tag: text-generation
base_model: prism-ml/Ternary-Bonsai-2.5-27B-GGUF
base_model_relation: finetune
tags:
- gguf
- llama.cpp
- ternary
- bonsai
- mtp
- abliterated
- decensored
- chips
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, with known problems. Refusals are reduced but not removed, and in thinking mode the edited model often thinks much longer and sometimes breaks: 28 of 312 replies ended without a final answer, and 2 fell into repeated symbols. Short-task accuracy and perplexity are unchanged. This edit may be replaced by a revised one.
- Refusals: on 312 harmful requests in English, Japanese and Chinese at a 4,096-token limit, refusal markers were found in 287 replies (92.0%) from the original and 86 (27.6%) from this model. These counts come from pattern matching, not a full reading (see Evaluation). Some replies still refuse explicitly.
- Longer, less stable replies: 2,262 new tokens on average, against 486 for the original. 280 of 312 finished, against 310. English is affected most.
- Side effects (gne eval, thinking off): 100% on 36 short-answer and format tasks for both files, and perplexity within 0.1%.
- Tiny edit: one attention head (layer 33, head 16). In the file, that is part of one tensor. Everything else, including the MTP draft head, is byte-identical to the original file, and the metadata is unchanged.
- One file for now:
Q2_0-mtp, which runs on stock llama.cpp. - 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 | the same |
| Tensors | 866 | 866, of which 1 is partly rewritten |
blk.33.ssm_out.weight (output projection of linear-attention layer 33) |
Q2_0, ternary | Q2_0, 1,024 of its 6,144 columns changed for head 16 |
All other tensors, including the MTP draft head (blk.64) |
byte-identical | |
| Metadata | unchanged |
The edit targets one head, but 1,024 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 columns therefore spreads, in smaller amounts, over the whole 1,024-column block that holds them. In the unrotated basis, the outputs of the other heads do not change.
The edited tensor keeps its type, so the file keeps its size. By gne's measure the rounding keeps 99.3% of the edit.
The edited tensor is no longer strictly ternary. In the original, every value of this tensor is −1, 0 or +1 times its block scale. Q2_0 also has a fourth level, +2, and after the edit 1.2% of this tensor's values use it (391,876 of about 31.5 million). The file is still a standard Q2_0 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 a few attention heads 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.
Here the whole edit is a single head of a linear-attention layer. The recipe is not published.
Files
| File | Size | SHA-256 |
|---|---|---|
Ternary-Bonsai-2.5-27B-CHiPS-Abliterated-Q2_0-mtp.gguf |
7.91 GB | ad30cb58a52de1c6336759da73a3c404f12da13bf18089c0f887a2d9ac550d5f |
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.
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
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 sampling settings above are Prism ML's recommendation for thinking mode. The model uses xhigh reasoning effort by default; medium gives shorter replies. In thinking mode the edited model 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). - Prism ML's recommended sampling for thinking mode: temperature 1.0, top_p 0.95, top_k 20, min_p 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%) | 280 (89.7%) |
| of which with an empty final answer | 2 | 28 |
| Reached the 4,096-token limit | 2 | 32 |
| of which still thinking (no final answer) | 1 | 8 |
| Mean new tokens (median) | 486 (348) | 2,262 (2,210) |
| Refusal markers in the thinking or the final answer | 287 (92.0%) | 86 (27.6%) |
| refusal phrases in the thinking | 193 | 58 |
| refusal pattern at the start of the final answer | 274 | 74 |
| Repeated-symbol loops | 0 | 2 |
| By language (104 each) | English | Japanese | Chinese |
|---|---|---|---|
| Original: finished normally | 103 | 103 | 104 |
| This model: finished normally | 89 | 98 | 93 |
| This model: no final answer | 25 | 10 | 1 |
The refusal counts come from pattern matching on the thinking, with the start of the final answer as a second signal. They are candidate counts, not a full reading of each reply: a reply that discusses refusing without refusing can be counted, and an indirect refusal can be missed. Measured the same way, refusals drop sharply, and several English requests that the original refused clearly were answered by this model. But some replies still refuse explicitly.
Problems seen in this model's replies:
- 28 replies finished normally but with an empty final answer. A short token limit does not explain them. Whether the model ended its turn after thinking or something went wrong in the chat template or answer extraction was not determined. The original had 2 such replies.
- 2 replies fell into a loop in the thinking, repeating one symbol for hundreds to thousands of characters.
- Thinking got much longer overall, and English is affected most.
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 the thinking-mode problems above. 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% | 100% |
| Language mixing in Japanese answers (8) | 0% | 0% |
| Perplexity, English | 8.516 | 8.514 (−0.02%) |
| Perplexity, Japanese | 27.21 | 27.24 (+0.10%) |
| Perplexity, code | 4.317 | 4.316 (−0.02%) |
| Perplexity, mean | 10.00 | 10.00 (+0.02%) |
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 4 (6%) from this model.
Limitations
- Known problems in thinking mode (see Evaluation): empty final answers, two repeated-symbol loops, much longer thinking, and refusals that remain.
- The refusal counts are pattern-matching candidates, not a full reading. 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: part of
blk.33.ssm_out.weightwas 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.