A 2.2 MB LoRA that removes most of the refusal behaviour of
prism-ml/Ternary-Bonsai-2-9B-gguf at inference time.
It is an adapter, not a checkpoint: the base file is untouched, and --lora-scaled <file>:0 gives the original model back.
Content warning. This adapter makes the model answer requests the base model refuses, including requests for harmful content. It is published for research on refusal mechanisms and for people who run models locally. You are responsible for what you do with it and for following the laws that apply to you. Do not expose it to the public or to minors.
Version 2 (2026-11-20). The file was replaced by a better adapter, found by searching with a refusal judge instead of refusal keywords. On the same 100 held-out prompts, answers that actually attempt the request went from about a quarter to about 90 %, with the same perplexity and GSM8K within noise, and thinking mode works much better (thinking off is still recommended). Version 1 is still in this repo's commit history. Details under Changes from version 1.
llama-server -m Ternary-Bonsai-2-9B-Q2_0.gguf -ngl 99 --jinja \
--chat-template-kwargs '{"enable_thinking":false}' \
--lora-scaled Ternary-Bonsai-2-9B-ablation-lora.gguf:1.0
FILE:SCALE as one argument.--chat-template-kwargs '{"enable_thinking":false}') avoids this and is what most measurements below used.b12447 on the official Ternary-Bonsai-2-9B-Q2_0.gguf. Other base packs were not tested.Qwen/Qwen3.5-9B (4-bit loading, 100 trials). Heretic's refusal/harmless prompt sets are mlabonne/harmful_behaviors
and mlabonne/harmless_alpaca.gyr0zepp/Refusal-Judge-Qwen3-0.6B: the objective is the
share of answers that do not attempt the request (refused, deflected or incoherent). Keyword counting cannot tell a good
aggressive setting from a broken one (most trials that the keyword objective rated best produced garbage), so a keyword search
has to stay conservative. With the judge, the search could use a stronger setting safely. I took trial 66, the best trial on the judge
objective, then checked it on prompts neither the search nor the judge had seen (results below).convert_lora_to_gguf.py against Qwen3.5-9B and applied to the ternary model with no retraining.
It carries over because ablation edits are coarse and low-rank, so they survive the ternary rounding.Shipped file at scale 1.0 vs the unmodified base, same prompts and settings:
| base | + adapter | |
|---|---|---|
| WikiText-2 perplexity (2048 ctx, 20 chunks) | 13.76 | 14.13 |
| Keyword-classified refusals, 100 held-out prompts (T=0.7, thinking off) | 100 | 10 |
| Judged: answers that attempt the request, same 100 prompts (26B logprob judge) | 0 % | 92 % |
| GSM8K, thinking off, 100 random test problems, greedy | 92 % | 89 % |
| GSM8K, thinking on, 30 problems, greedy, 4000-token budget | 87 % | 90 % |
| Thinking on, 12 held-out harmful prompts, 6000-token budget: answers not finished | 0 | 1 |
| Thinking on, 25 held-out harmful prompts, 6000-token budget: reasoning caught in a repetition loop | 0 | 4 |
| Needle-in-a-haystack retrieval, 3 depths × 4 lengths (~8k–60k-token prompts), q8_0 KV cache | 12 / 12 | 12 / 12 |
GSM8K at n = 100 moves by a few points between runs of the same setting (another run of this file at 1.0 scored 91).
One measurement of the published adapter file at each scale (scale 0 is the unmodified base). 100 prompts or problems per point, thinking off.
| adapter scale | WikiText-2 perplexity | keyword refusals /100 | judged attempted % | GSM8K /100 |
|---|---|---|---|---|
| 0 (base) | 13.76 | 100 | 0 | 92 |
| 0.5 | 13.91 | 99 | 6 | 92 |
| 0.75 | 14.01 | 68 | 46 | 91 |
| 1.0 (published) | 14.13 | 10 | 92 | 89 |
| 1.25 | 14.27 | 4 | 95 | 93 |
| 1.5 | 14.44 | 6 | 87 | 86 |
| 2.0 | 14.99 | 4 | 73 | 87 |
None of these 200-token replies collapsed (fewer than 5 distinct words) at any scale. Repeat runs of the same setting differ by about ±1–3 on the counts.
Keyword counts can overstate compliance (an answer can avoid refusal words and still not do the task), so the main numbers are graded by
a logprob judge: the 26B teacher behind gyr0zepp/Refusal-Judge-Qwen3-0.6B
(97 % agreement with human labels on XSTest). It labels each answer complied, partly complied, deflected, refused or incoherent;
"attempted" is complied + partly complied.
| scale 1.0, thinking off unless noted | version 1 | version 2 |
|---|---|---|
100 held-out prompts (harmful_behaviors test split), greedy |
24 % | 90 % |
| 200 other held-out prompts (toxic-dpo, never seen by the search or the judge), greedy | 40 % | 89 % |
| 25 long answers (400 tokens, T=0.7) | 40 % | 96 % |
| … of those, caught in a repetition loop | 6 / 25 | 0 / 25 |
| 12 prompts with thinking on, 6000-token budget | 33 % | 83 % |
n is 12–200 prompts, so each rate is uncertain by roughly ±5 (n = 200) to ±25 (n = 12) points.
Why version 1 stopped at about a quarter: raising its scale did not make it comply more, it made it incoherent. Version 2 gets most of the way at scale 1.0 with almost no incoherent answers.
Caveats, please read:
Version 1 (2026-11-18, 2.6 MB) was trial 99 of a search that used Heretic's keyword objective, picked under a KL ≤ 0.1 cap. Same model, prompts, tools and seed; only the objective and the chosen trial differ. Version 1 needed thinking off (11 of 12 thinking answers did not finish) and often wrote an essay about the task instead of doing it; at scale 1.0 only about a quarter of its answers attempted the request, which is why its card described judge-gated resampling. Version 2 makes resampling mostly unnecessary.
Similar adapters for the same model exist, for example
AtomicChat/Ternary-Bonsai-2-9B-Uncensored-LoRA-GGUF.
I did not run a controlled comparison good enough to rank them.
Apache-2.0, like what it derives from: Qwen3.5 (Qwen team) and the Ternary Bonsai models (PrismML). Heretic (p-e-w, AGPL-3.0) was used as a tool to find the ablation; this adapter contains only numerical weights I produced with it.
prism-ml/Ternary-Bonsai-2-9B-gguf