Qwen3-8B-abliterated
A capability-verified, uncensored version of Qwen/Qwen3-8B (b968826d) created via Winsorized Benign-Subspace Biprojection + Exact Row-Norm Preservation and validated across 1,438 held-out evaluation items.
Unlike standard abliteration releases that only report a 100-prompt refusal count, this checkpoint was benchmarked head-to-head on the exact same hardware and test harness against unmodified Qwen/Qwen3-8B, huihui-ai/Huihui-Qwen3-8B-abliterated-v2, and Heretic 2.0 (ARA).
Highlights
- 99.33% Refusal Removal (298 / 300 harmful prompts unlocked) — 4× fewer residual refusals than
Huihui-Qwen3-8B-abliterated-v2(2.67%) andHeretic 2.0(2.67%). - Lowest Distribution Drift (0.0919 KL across 200 benign prompts) — cleaner than
Huihui-v2(0.1041) and 3.05× lower drift thanHeretic 2.0(0.2799). - Zero Net Capability Tax (+0.49 pp average over base
Qwen3-8B) — outperforms bothHuihui-v2andHeretic 2.0onGSM8K,MMLU-Pro, andMMLU. - Ready for Any Runtime — includes canonical
bfloat16safetensors plusQ8_0,Q4_K_M, andF16GGUF quantizations.
Benchmark Results (Same-Hardware, Same-Harness Evaluation)
All four models were evaluated on the same NVIDIA GB10 hardware in bfloat16 with greedy decoding (temperature = 0.0), identical prompt splits, and identical lm-evaluation-harness protocols across 1,438 held-out items per model (raw JSON receipts).
1. Capability & Behavior Comparison
| Metric / Benchmark | Items | Qwen/Qwen3-8B (Base) | Qwen3-8B-abliterated (Ours) | Huihui-Qwen3-8B-v2 | Heretic 2.0 (ARA) |
|---|---|---|---|---|---|
| Harmful Refusal Rate ↓ | 300 | 99.33% (298/300) | 0.67% (2/300) | 2.67% (8/300) | 2.67% (8/300) |
| Benign Over-Refusal ↓ | 200 | 1.00% (2/200) | 1.50% (3/200) | 1.00% (2/200) | 1.50% (3/200) |
| Benign Next-Token KL ↓ | 200 | 0.0000 | 0.0919 | 0.1041 | 0.2799 |
| GSM8K (Strict Match) ↑ | 128 | 68.75% | 69.53% | 67.19% | 60.16% |
| MMLU-Pro (14 Subjects) ↑ | 112 | 38.39% | 42.86% | 39.29% | 37.50% |
| MMLU (57 Subjects) ↑ | 570 | 62.11% | 61.93% | 61.58% | 46.84% |
| IFEval (Prompt Strict) ↑ | 128 | 61.72% | 58.59% | 58.59% | 53.91% |
| Average Capability ↑ | 938 | 57.74% | 58.23% (+0.49 pp) | 56.66% (-1.08 pp) | 49.60% (-8.14 pp) |
2. Paired Head-to-Head Deltas (2,000-Sample Bootstrap 95% CIs)
| Benchmark | Items | Ours vs. Base Qwen3-8B | Ours vs. Huihui-v2 | Ours vs. Heretic 2.0 |
|---|---|---|---|---|
| GSM8K | 128 | +0.78 pp [-1.56, +3.91] | +2.34 pp [-1.56, +6.25] | +9.38 pp [+3.12, +15.62] |
| MMLU-Pro | 112 | +4.46 pp [-0.89, +9.82] | +3.57 pp [-0.89, +8.93] | +5.36 pp [-0.89, +11.61] |
| MMLU | 570 | -0.18 pp [-1.58, +1.23] | +0.35 pp [-1.23, +1.93] | +15.09 pp [+11.93, +18.07] |
| IFEval | 128 | -3.12 pp [-7.03, +0.00] | 0.00 pp [-3.91, +3.91] | +4.69 pp [-0.80, +10.94] |
Available Files
| File Path | Format | Size | Recommended Use |
|---|---|---|---|
model-00001-of-00004.safetensors .. 00004 | BF16 Safetensors | 16.4 GB | Transformers, vLLM, SGLang, LoRA fine-tuning |
gguf/Qwen3-8B-abliterated-Q8_0.gguf | Q8_0 GGUF | 8.7 GB | Near-lossless local inference (Ollama, LM Studio, llama.cpp) |
gguf/Qwen3-8B-abliterated-Q4_K_M.gguf | Q4_K_M GGUF | 5.0 GB | Fast 4-bit inference for 8 GB+ VRAM & Apple Silicon |
gguf/Qwen3-8B-abliterated-f16.gguf | F16 GGUF | 16.4 GB | Unquantized GGUF reference |
Quickstart
1. Ollama / llama.cpp (GGUF)
# Run directly with llama.cpp
llama-cli -hf w3joe/Qwen3-8B-abliterated:Q8_0 --jinja -cnv -p "You are a helpful assistant."
To import into Ollama using the included gguf/Modelfile:
huggingface-cli download w3joe/Qwen3-8B-abliterated --include "gguf/*" --local-dir ./Qwen3-8B-abliterated
cd Qwen3-8B-abliterated/gguf
ollama create qwen3-8b-abliterated -f Modelfile
ollama run qwen3-8b-abliterated
2. Hugging Face Transformers (BF16)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "w3joe/Qwen3-8B-abliterated"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain how heap spraying works in memory corruption exploits."},
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=False, # Set True to enable <think> reasoning chains
)
inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
3. vLLM Server
vllm serve w3joe/Qwen3-8B-abliterated --dtype bfloat16 --max-model-len 32768
How This Model Was Built
Standard abliteration subtracts the raw difference of means (refusal_mean - benign_mean) across all layers, which shifts weight row norms and damages directions responsible for math and instruction following.
Qwen3-8B-abliterated applies three refinements during weight editing:
- Outlier Winsorization (
q = 0.99): Per-prompt residual stream activations are clamped at the 99th percentile in FP32 before averaging so outlier coordinates do not skew the extracted direction. - Benign SVD Subspace Biprojection (
rank = 4): At each layer, the refusal vector is orthogonalized not only against the mean harmless activation, but also against the top-4 principal components (SVD) of the benign activation matrix—preventing the edit from encroaching on reasoning and instruction-following subspaces. - Selective Layer Masking (
L7–L35,strength = 0.85) + Exact Row-Norm Preservation: Early syntax/embedding layers (L0–L6, where benign and refusal activations are >99.7% collinear) are left untouched, and every modified row inself_attn.o_projandmlp.down_projis rescaled in FP32 to preserve its exact original Euclidean norm before saving tobfloat16.
License & Responsible Use
- License: Apache-2.0 (inherited from base
Qwen/Qwen3-8B). - Intended Use: Security research, red-teaming, adversarial evaluation, and unfiltered local assistant workflows. Users are responsible for complying with applicable laws and safety policies when deploying this model.