Views
No views yet
⚠️ Research Use Only
This model is intended strictly for academic research, safety evaluation, and red-teaming in controlled environments. It is not suitable for deployment in production systems or any consumer-facing application.
The author assumes no liability for misuse.
| Field | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-7B-Instruct |
| Processing Date | March 16, 2026 |
| Abliteration Tool | Heretic v1.2.0 |
| Selected Trial | Trial 415 (from 2200+ Optuna trials) |
| License | Apache 2.0 |
attn.o_proj and mlp.down_proj layers. Trial selection was performed using
Optuna with a composite objective balancing refusal-removal
rate and KL divergence from the base model distribution.| Metric | Base Model | This Model |
|---|---|---|
| Refusal Rate | 99 / 100 (99%) | 3 / 100 (3%) |
| KL Divergence | — | 0.1049 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "FangPingWu/Qwen2.5-7B-Instruct-Abliterated"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 torch_dtype=torch.bfloat16,
10 device_map="auto",
11 trust_remote_code=True
12)
13
14messages = [{"role": "user", "content": "Your prompt here"}]
15text = tokenizer.apply_chat_template(
16 messages, tokenize=False, add_generation_prompt=True
17)
18inputs = tokenizer(text, return_tensors="pt").to(model.device)
19
20outputs = model.generate(
21 **inputs,
22 max_new_tokens=2048,
23 temperature=0.7,
24 top_p=0.9,
25 do_sample=True
26)
27print(tokenizer.decode(outputs[0], skip_special_tokens=True))
28` ` `
29
30---
31
32## Citation
33
34If you use this model in published research, please cite the original base model
35and the Heretic abliteration tool.
36
37---
38
39## Related Work
40
41- [Heretic: Abliteration framework](https://github.com/p-e-w/heretic)
42- [Representation Engineering (Zou et al., 2023)](https://arxiv.org/abs/2310.01405)
43- [Refusal in LLMs is mediated by a single direction (Arditi et al., 2024)](https://arxiv.org/abs/2406.11717)