Ternary-Bonsai-2-9B-Ablation-LoRA-GGUF
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 200 prompts the search never saw, answers that actually attempt the request went from 40 % to 89 % (about a quarter to 90 % on the 100 prompts the search optimised), 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.
Use
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
- Recommended scale: 1.0. This adapter switches on sharply: at 0.75 about half the answers still refuse, at 1.0 about 90 % attempt
the request. Above 1.0 there is little more to gain and quality slowly drops (GSM8K 86–87 at 1.5–2.0, more deflections at 2.0; sweep below).
The syntax is
FILE:SCALEas one argument. - Thinking mode mostly works but is not recommended: on 25 harmful prompts with a 6000-token budget, 23 finished, yet 4 reasoning traces
fell into a repetition loop (2 never reached an answer), and reasoning ran about 3× longer than the base model's. Thinking off
(
--chat-template-kwargs '{"enable_thinking":false}') avoids this and is what most measurements below used. - Tested with upstream llama.cpp build
b12447on the officialTernary-Bonsai-2-9B-Q2_0.gguf. Other base packs were not tested.
How it was made
- I ran Heretic 2.1 with the ARA (arbitrary-rank ablation) modifier on
Qwen/Qwen3.5-9B(4-bit loading, 100 trials). Heretic's refusal/harmless prompt sets aremlabonne/harmful_behaviorsandmlabonne/harmless_alpaca. - Instead of Heretic's default objective (the share of answers containing refusal keywords), each trial was scored with a
refusal judge,
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). - The exported LoRA is rank 50 but mostly zeros: 22 of 64 modules are non-zero. I dropped the zero modules and truncated each remaining module to rank ≤ 4 with an SVD (98 % of the energy kept), which turns 157 MB into 2.2 MB and removes needless compute.
- The adapter was converted with
convert_lora_to_gguf.pyagainstQwen3.5-9Band 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.
Results
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, the 100 search prompts (in-sample; 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 harmful prompts (from the search set), 6000-token budget: answers not finished | 0 | 1 |
| Thinking on, 25 harmful prompts (from the search set), 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).
Strength vs quality
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.
Judged compliance
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 search prompts (harmful_behaviors test split; in-sample: both adapters were selected on them), greedy | 24 % | 90 % |
| 200 unseen prompts (toxic-dpo, never seen by the search or the judge), greedy | 40 % | 89 % |
| 25 long answers (first 25 search prompts, 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:
- The search, the judge and the grader are related: the small judge was distilled from the 26B grader. To guard against the search gaming the judge, I read samples of the answers myself (they are specific, on-task attempts) and tested on 200 prompts from a different dataset. Two people independently labelled 50 random answers to those unseen prompts, blind (mixed with another model's answers, no labels shown): they counted 48 and 47 of 50 as attempts (96 % and 94 %); the grader said 94 %. Across the 100 labelled answers of both adapters the two people agreed with each other on 96 % of items, and the grader matched 98 % of the items they agreed on; its only misses were answers that open with a disclaimer and then comply, which it undercounts. Still, treat the judged rates as estimates, not ground truth.
- Trial 66 was picked after the search because it scored best; the setting I had fixed in advance (the best trial under a KL ≤ 0.1 cap) was a smaller improvement. Every check after the pick agreed with it.
- A 2-bit 9B is still a 2-bit 9B: attempts are often generic or wrong in the details. It does not add capability.
- Thinking mode: in 25 prompts, 4 reasoning traces looped (see Use).
- Long context was only tested up to ~60k-token prompts with a q8_0 KV cache.
Changes from version 1
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.
Related
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.
Credits and licence
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.