Qwen2.5-Coder-3B-Instruct-heretic

RACER IS OP

A decensored variant of Qwen/Qwen2.5-Coder-3B-Instruct, produced with Heretic v1.2.0 (directional ablation / "abliteration"). Refusal behavior is suppressed via targeted weight edits to the attention output and MLP down-projections rather than fine-tuning, so the base model's knowledge and instruction-following are left largely intact.

Who this is for: developers who want Qwen's 3B code-focused model without the refusal guardrails — for local coding agents, copilot-style assistance, and code generation that answers directly. At 3B it runs on small machines and consumer CPUs via GGUF.

Abliteration parameters

Parameter Value
direction_index 24.63
attn.o_proj.max_weight 1.09
attn.o_proj.max_weight_position 21.15
attn.o_proj.min_weight 0.82
attn.o_proj.min_weight_distance 6.59
mlp.down_proj.max_weight 1.43
mlp.down_proj.max_weight_position 23.59
mlp.down_proj.min_weight 1.25
mlp.down_proj.min_weight_distance 10.69

Performance

Metric This model Original model (Qwen/Qwen2.5-Coder-3B-Instruct)
KL divergence 0.0163 0 (by definition)
Refusals 3/100 100/100

Made with ❤️ by RACER IS OP — follow for more uncensored models

Quickstart

# llama.cpp
llama serve -hf saidutta69/Qwen2.5-Coder-3B-Instruct-heretic
# transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "saidutta69/Qwen2.5-Coder-3B-Instruct-heretic"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [{"role": "user", "content": "Who are you?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
                                        return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Also runnable via Ollama, LM Studio, Jan, vLLM, SGLang.

Responsible use

Refusal suppression is deliberate and works as intended: this model will comply with requests the base model would refuse, including some it shouldn't. There is no safety filtering layered on top. You are responsible for how you deploy it — don't put this behind an unmoderated public-facing endpoint serving third parties. It inherits Qwen2.5-Coder-3B-Instruct's factual limitations and biases; abliteration removes refusal directions, it doesn't add capability or judgment.

License

Inherits the qwen-research license from the base model — research use, see the linked license for commercial terms.

Related


Base model: Qwen2.5-Coder-3B-Instruct

Original Qwen2.5-Coder-3B-Instruct model card (click to expand)

See the base model card at Qwen/Qwen2.5-Coder-3B-Instruct for the original architecture, training details, requirements, and citation.

Downloads last month
1,098
Safetensors
Model size
3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 2 Ask for provider support

Model tree for saidutta69/Qwen2.5-Coder-3B-Instruct-heretic

Base model

Qwen/Qwen2.5-3B
Quantized
(35)
this model
Quantizations
2 models

Collection including saidutta69/Qwen2.5-Coder-3B-Instruct-heretic