license: apache-2.0
language:
- en
- ja
pipeline_tag: text-generation
library_name: llama.cpp
base_model: prism-ml/Ternary-Bonsai-2.5-27B-GGUF
tags: - gguf
- ternary
- bonsai
- mtp
- speculative-decoding
- heretic
- uncensored
- decensored
- abliterated
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-GGUF
An uncensored version of Prism ML's Ternary-Bonsai-2.5-27B, made with a custom fork of Heretic. The files keep the official formats and sizes.
| File | Size |
|---|---|
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-PQ2_0.gguf |
7.25 GB |
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-PTQ1_0.gguf |
5.99 GB |
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-Q2_0.gguf |
7.67 GB |
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-PQ2_0-mtp.gguf |
7.49 GB |
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-PTQ1_0-mtp.gguf |
6.23 GB |
Ternary-Bonsai-2.5-27B-Uncensored-Heretic-Q2_0-mtp.gguf |
7.91 GB |
lora/Ternary-Bonsai-2.5-27B-Uncensored-Heretic-LoRA.gguf |
478 MB |
Ternary-Bonsai-2.5-27B-mmproj-Q8_0.gguf |
629 MB |
All six models hold the same weights. The -mtp files also carry the official MTP draft head for faster generation.
The LoRA is the same edit before it was written into the ternary weights, for the official files (--lora). On the official PQ2_0 it refused 0 of the 400 high-intensity answers, with KL 0.0131 (Japanese) / 0.0354 (English).
The mmproj is the official vision projector, unchanged (vision has not been evaluated).
How it was made
- An OT-Ridge edit (Heretic fork) on layers 27–62, fitted with Japanese and English prompts.
- Removal of one refusal direction from the middle layers (27–44).
Both are written directly into the ternary weights.
Performance
| Original | This model | |
|---|---|---|
| Refusals, 208 harmful prompts (English + Japanese) | 207/208 | 3/208 |
| Refusals, 100 of them with thinking on | 98/99 | 0/89 |
| Refusals, 200 high-intensity prompts × 2 samples | 400/400 | 4/400 |
| Refusals, 200 prompts in the llama.cpp WebUI (with its tools) | 200/200 | 0/200 |
| KL divergence, 200 Japanese / 200 English harmless prompts | 0 | 0.0202 / 0.0452 |
| MMLU (14,042 questions) | 78.24% | 77.60% |
| HumanEval pass@1 | 95.12% | 93.09% |
- Measured on the PQ2_0 file with the PrismML fork of llama.cpp, at the recommended sampling, without a system prompt, thinking off unless noted. Refusals are judged by an LLM judge (Gemma 4); only finished answers are counted with thinking on.
- Prompts: mlabonne/harmful_behaviors, OS-Software/harmful_behaviors_ja and an in-house set. KL: OS-Software/harmless_alpaca_ja, mlabonne/harmless_alpaca.
- Known issue: with thinking on, the thinking can run long or repeat itself (11 of 100 answers did not finish within 16,384 tokens).
Usage
The PQ2_0 and PTQ1_0 files need the PrismML fork of llama.cpp. The Q2_0 files also run on upstream llama.cpp.
llama-server -m Ternary-Bonsai-2.5-27B-Uncensored-Heretic-PTQ1_0-mtp.gguf -ngl 99 -fa on -c 16384 -np 1 --jinja \
--spec-type draft-mtp --spec-draft-n-min 0 --spec-draft-n-max 3 --spec-draft-p-min 0.1 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --host 127.0.0.1 --port 8080
For thinking off, add --chat-template-kwargs '{"enable_thinking": false}' and use --temp 0.7 --top-p 0.8 --top-k 20 --min-p 0 --presence-penalty 1.5.
For image input, add --mmproj Ternary-Bonsai-2.5-27B-mmproj-Q8_0.gguf. To use the LoRA instead, start an official file with --lora lora/Ternary-Bonsai-2.5-27B-Uncensored-Heretic-LoRA.gguf.
⚠️ Important Notice
This model has undergone substantial reduction of its safety alignment. As a result, it is more likely than standard models to generate harmful, inaccurate, biased, offensive, or otherwise inappropriate content.
Intended Use
For research and experimentation only, including safety research, alignment studies, and red-teaming. Please avoid deploying it in public or end-user-facing services.
User Responsibility
All outputs should be treated as untrusted and independently verified before use. Users are solely responsible for:
- Evaluating the accuracy and suitability of generated content
- Implementing appropriate safeguards and human oversight
- Complying with applicable laws, regulations, licenses, and ethical standards
Use of this model is entirely at your own risk.
Disclaimer
OS-Software provides this model without warranties of any kind and assumes no liability for any direct or indirect damages, losses, misuse, or legal consequences arising from its use.
Acknowledgements
Created using Bonsai by Prism ML. Thanks to Prism ML for Ternary Bonsai 2.5 and its MTP head, the Qwen team for Qwen3.8-27B, p-e-w for Heretic, and the wider open-source community.
This is a derivative work released under the base model's license (Apache 2.0); NOTICE.txt is the base model's, unchanged. All rights to the base model remain with their respective owners.