unsloth/Qwen3.5-9B with the LoRA adapter
jeonjw/Qwen3.5-9B-CyberSecurity-LoRA merged in, followed by
refusal-direction ablation ("abliteration").
mean(harmful) - mean(harmless)).| module | layers |
|---|---|
self_attn.o_proj |
full-attention layers |
linear_attn.out_proj |
hybrid linear-attention layers (24 of 32) |
mlp.down_proj |
all layers |
Projection strength scale = 1.0 (1.0 removes the direction completely; values
above 1.0 over-correct at the cost of model quality).
The vision tower is untouched. The MTP head is not present in this checkpoint
(transformers ignores mtp.* keys on load), so pass --no-mtp when converting to
GGUF.
Measured on 6 held-out offensive-security prompts, greedy decoding,
enable_thinking=False: 17% (no baseline measured)
Refusal detection is a keyword heuristic, so treat this as indicative rather than authoritative.
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "jeonjw/Qwen3.5-9B-CyberSecurity-Abliterated"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto"
)
messages = [
{"role": "system", "content": "You are a cybersecurity expert focused on defensive security, vulnerability analysis and authorized testing."},
{"role": "user", "content": "Explain how a format string vulnerability works and how to remediate it."},
]
text = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = processor(text=[text], return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
A GGUF build is published separately at
jeonjw/Qwen3.5-9B-CyberSecurity-Abliterated-GGUF.
model-00002-of-00006.safetensors 3.7 GiBmodel-00004-of-00006.safetensors 3.7 GiBmodel-00003-of-00006.safetensors 3.7 GiBmodel-00005-of-00006.safetensors 3.7 GiBmodel-00001-of-00006.safetensors 1.9 GiBmodel-00006-of-00006.safetensors 763 MiB