Downloads · 30 days
504
69% of all-time downloads
DeKodez/Qwen2.5-1.5B-Instruct-abliterated
Qwen2.5-1.5B-Instruct-abliterated is a machine learning model from DeKodez. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is an abliterated version of Qwen/Qwen2.5-1.5B-Instruct with reduced refusal behavior.
Downloads · 30 days
504
69% of all-time downloads
All-time downloads
727
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
This is an abliterated version of Qwen/Qwen2.5-1.5B-Instruct with reduced refusal behavior.
Abliteration removes the "refusal direction" from a model's activation space via weight orthogonalization. This allows the model to respond to prompts it would normally refuse, while preserving general capabilities.
| Model | Refusals (50 harmful prompts) | Rate |
|---|---|---|
| Original | 50/50 | 100% |
| Abliterated | 9/50 | 18% |
82% reduction in refusals
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("DeKodez/Qwen2.5-1.5B-Instruct-abliterated")
tokenizer = AutoTokenizer.from_pretrained("DeKodez/Qwen2.5-1.5B-Instruct-abliterated")
messages = [{"role": "user", "content": "Your prompt here"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Conventional abliteration using:
This model is for educational and research purposes only. The creator is not responsible for any misuse.