OpenIntelligenceNet commited on
Commit
d1ded74
·
verified ·
1 Parent(s): 236ac82

Add model card with metadata and tags

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: microsoft/Phi-4-mini-instruct
4
+ library_name: transformers
5
+ pipeline_tag: text-generation
6
+ language:
7
+ - en
8
+ tags:
9
+ - phi-4
10
+ - phi-4-mini
11
+ - abliterated
12
+ - uncensored
13
+ - heretic
14
+ - text-generation
15
+ - instruct
16
+ ---
17
+
18
+ # Phi-4-mini-instruct-Abliterated
19
+
20
+ An abliterated version of [microsoft/Phi-4-mini-instruct](https://huggingface.co/microsoft/Phi-4-mini-instruct),
21
+ produced with the [Heretic](https://github.com/p-e-w/heretic) tool. Abliteration identifies the direction in the
22
+ model's activations associated with refusals and removes it from the weights, so the model is less likely to refuse
23
+ requests.
24
+
25
+ ## Model details
26
+
27
+ | | |
28
+ |---|---|
29
+ | Base model | microsoft/Phi-4-mini-instruct |
30
+ | Parameters | ~3.8B |
31
+ | Method | Abliteration (Heretic, 150 trials) |
32
+ | License | MIT (inherited from the base model) |
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ from transformers import AutoModelForCausalLM, AutoTokenizer
38
+
39
+ model_id = "OpenIntelligenceNet/Phi-4-mini-instruct-Abliterated"
40
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
41
+ model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
42
+
43
+ messages = [{"role": "user", "content": "Summarize the water cycle in three sentences."}]
44
+ inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True,
45
+ return_tensors="pt", return_dict=True).to(model.device)
46
+ output = model.generate(**inputs, max_new_tokens=256, do_sample=False)
47
+ print(tokenizer.decode(output[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
48
+ ```
49
+
50
+ ## Limitations and responsible use
51
+
52
+ - This model has had its refusal behavior reduced. It may produce harmful, dangerous, illegal, or offensive content
53
+ when asked. Outputs should not be treated as safe or accurate.
54
+ - Abliteration can reduce output quality. Evaluate the model on your own task before relying on it.
55
+ - The model has not undergone formal safety, factuality, or benchmark evaluation by the publisher.
56
+ - You are responsible for how you use this model and for complying with applicable laws and the base model's license.
57
+ - Do not use this model to create content that facilitates violence, weapons, fraud, or harm to others.