richardyoung commited on
Commit
c5d44f6
·
verified ·
1 Parent(s): 17e2cb1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: other
5
+ library_name: transformers
6
+ base_model: deepseek-ai/deepseek-llm-7b-chat
7
+ tags:
8
+ - abliteration
9
+ - uncensored
10
+ - heretic
11
+ - representation-engineering
12
+ - refusal-removal
13
+ pipeline_tag: text-generation
14
+ model-index:
15
+ - name: deepseek-llm-7b-chat-abliterated
16
+ results:
17
+ - task:
18
+ type: text-generation
19
+ metrics:
20
+ - name: Refusal Rate
21
+ type: refusal_rate
22
+ value: 16/100
23
+ - name: Attack Success Rate
24
+ type: asr
25
+ value: 84.0
26
+ - name: KL Divergence
27
+ type: kl_divergence
28
+ value: 0.043
29
+ ---
30
+
31
+ # deepseek-llm-7b-chat-abliterated
32
+
33
+ This model is an abliterated (uncensored) version of [deepseek-llm-7b-chat](deepseek-ai/deepseek-llm-7b-chat) created using [Heretic v1.1](https://github.com/p-e-w/heretic).
34
+
35
+ ## Abliteration Results
36
+
37
+ | Metric | Value |
38
+ |--------|-------|
39
+ | **Refusals** | 16/100 |
40
+ | **Attack Success Rate (ASR)** | 84.0% |
41
+ | **KL Divergence** | 0.043 |
42
+ | **Method** | Heretic v1.1 |
43
+ | **GPU** | NVIDIA A100-80GB |
44
+
45
+ ## What is Abliteration?
46
+
47
+ Abliteration is a technique for removing refusal behavior from language models by identifying and orthogonalizing the "refusal direction" in the model's residual stream activation space. This model was created as part of the research paper:
48
+
49
+ > **Comparative Analysis of LLM Abliteration Methods: A Cross-Architecture Evaluation**
50
+ > Richard Young (2024). arXiv: [2512.13655](https://arxiv.org/abs/2512.13655)
51
+
52
+ ## Usage
53
+
54
+ ```python
55
+ from transformers import AutoModelForCausalLM, AutoTokenizer
56
+
57
+ model = AutoModelForCausalLM.from_pretrained("richardyoung/deepseek-llm-7b-chat-abliterated", device_map="auto")
58
+ tokenizer = AutoTokenizer.from_pretrained("richardyoung/deepseek-llm-7b-chat-abliterated")
59
+
60
+ messages = [{"role": "user", "content": "Your prompt here"}]
61
+ inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
62
+ outputs = model.generate(inputs, max_new_tokens=256)
63
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
64
+ ```
65
+
66
+ ## Disclaimer
67
+
68
+ This model is released for research purposes only. The abliteration process removes safety guardrails. Users are responsible for ensuring appropriate use. This model should not be used to generate harmful, illegal, or unethical content.
69
+
70
+ ## Dashboard
71
+
72
+ Interactive results dashboard: [abliteration-methods-dashboard](https://huggingface.co/spaces/richardyoung/abliteration-methods-dashboard)
73
+
74
+ ## Collection
75
+
76
+ Part of the [Uncensored and Abliterated LLMs](https://huggingface.co/collections/richardyoung/uncensored-and-abliterated-llms) collection.
77
+
78
+ ## Citation
79
+
80
+ ```bibtex
81
+ @article{young2024abliteration,
82
+ title={Comparative Analysis of LLM Abliteration Methods: A Cross-Architecture Evaluation},
83
+ author={Young, Richard},
84
+ journal={arXiv preprint arXiv:2512.13655},
85
+ year={2024}
86
+ }
87
+ ```