← back to catalog · indexed 2026-11-27 12:07

rahulpro579/Qwen3-4B-Abliterated

rahulpro579 Qwen 4B GGUF
Your rig guess connected
? Why do I need an app?
Reading your rig…

Below is the per-quantization compatibility for this model.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/rahulpro579%2FQwen3-4B-Abliterated"
Response includes
  • classification unknown
  • files 9
  • author_summary 1 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · 30-day
0
Likes
0
Model age
today
created 2026-11-27

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
apache-2.0
Languages
en
Quantizations
Q4_K
Tags
transformers safetensors gguf qwen3 text-generation abliterated uncensored directional-ablation conversational en base_model:Qwen/Qwen3-4B base_model:quantized:Qwen/Qwen3-4B

Related

Total size
9.83 GB
Files
9
Quantizations
1
Indexed by us
2026-11-27 12:07
Last updated on HF
2026-11-27 11:24

Files by quantization

Q4_K_M 1 file 2.33 GB
qwen3-4b-abliterated-Q4_K_M.gguf 2.33 GB 40727714 download
Weights 1 file 7.49 GB
model.safetensors 7.49 GB dcdeecba download
Auxiliary files 7 files 10.9 MB
tokenizer.json 10.9 MB be756060 download
chat_template.jinja 4.07 KB 01be9b30 download
README.md 2.82 KB ca757dd2 download
.gitattributes 1.60 KB 0a22a178 download
config.json 1.55 KB b05a1a6a download
tokenizer_config.json 694 B 770e41d6 download
generation_config.json 214 B e8618272 download

README from Hugging Face, captured 2026-11-27


license: apache-2.0
base_model: Qwen/Qwen3-4B
language:

  • en
    tags:
  • qwen3
  • abliterated
  • uncensored
  • directional-ablation
  • gguf
  • transformers
    pipeline_tag: text-generation

Qwen3-4B-Abliterated

An abliterated (refusal-direction orthogonalized) version of Qwen/Qwen3-4B, created without fine-tuning using targeted residual-stream directional ablation on Kaggle Dual T4 (fp16).

Files Included

  • fp16 Safetensors (model*.safetensors): Full-precision (float16) weights for transformers / vLLM.
  • qwen3-4b-abliterated-Q4_K_M.gguf: 4-bit quantized GGUF (~2.5 GB) for llama.cpp, Ollama, LM Studio, and mobile/CPU inference.

Method Summary

  • Base Model: Qwen/Qwen3-4B (float16)
  • Direction Extraction: Computed normalized refusal direction r = normalize(mean(harmful) - mean(harmless)) on 256+256 training prompts from mlabonne/harmful_behaviors and mlabonne/harmless_alpaca (enable_thinking=False).
  • Best Layer: Layer 19 (of 36) selected via inference-time hook sweep across middle layers (14..27).
  • Weight Orthogonalization: Applied W <- W - λ · r · rᵀ · W (λ = 1.0) to self_attn.o_proj and mlp.down_proj across targeted middle layers 14..26 (preserving embed_tokens and early/late layers to minimize KL drift).

Evaluation Results

Evaluated on held-out test splits (100 harmful prompts, 100 harmless prompts, and 100 MMLU questions):

Metric Base (Qwen/Qwen3-4B) Abliterated (14..26, λ=1.0)
Harmful Refusal Rate (Thinking OFF, 100 prompts) 96.0% 13.0%
Harmful Refusal Rate (Thinking ON, 30 prompts) — 13.3%
Harmless Next-Token KL Divergence 0.0000 0.2073
MMLU (100-question subset) 67.0% 66.0% (-1.0%)

Usage (transformers)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "rahulpro579/Qwen3-4B-Abliterated"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto",
)

messages = [{"role": "user", "content": "Explain how TCP differs from UDP in 3 bullet points."}]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.inference_mode():
    out = model.generate(**inputs, max_new_tokens=256, do_sample=False)

print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Notes & Limitations

  • Behavior: Refusal guardrails have been significantly reduced; outputs are not filtered for safety. Users are responsible for downstream deployment and compliance with the Apache 2.0 license.
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration