huihui-ai commited on
Commit
988a9dc
·
verified ·
1 Parent(s): bff0910

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +70 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: text-generation
4
+ library_name: transformers
5
+ base_model:
6
+ - moonshotai/Kimi-Linear-48B-A3B-Instruct
7
+ tags:
8
+ - abliterated
9
+ - uncensored
10
+ ---
11
+
12
+ # huihui-ai/Huihui-Kimi-Linear-48B-A3B-Instruct-abliterated
13
+
14
+
15
+ This is an uncensored version of [moonshotai/Kimi-Linear-48B-A3B-Instruct](https://huggingface.co/moonshotai/Kimi-Linear-48B-A3B-Instruct) created with abliteration (see [remove-refusals-with-transformers](https://github.com/Sumandora/remove-refusals-with-transformers) to know more about it).
16
+
17
+
18
+ ## Inference with Hugging Face Transformers
19
+
20
+ ```
21
+ from transformers import AutoModelForCausalLM, AutoTokenizer
22
+
23
+ model_name = "huihui-ai/Huihui-Kimi-Linear-48B-A3B-Instruct-abliterated"
24
+ model = AutoModelForCausalLM.from_pretrained(
25
+ model_name,
26
+ torch_dtype="auto",
27
+ device_map="auto",
28
+ trust_remote_code=True
29
+ )
30
+ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
31
+
32
+ messages = [
33
+ {"role": "system", "content": "You are a helpful assistant provided by Moonshot-AI."},
34
+ {"role": "user", "content": "Is 123 a prime?"}
35
+ ]
36
+ input_ids = tokenizer.apply_chat_template(
37
+ messages,
38
+ add_generation_prompt=True,
39
+ return_tensors="pt"
40
+ ).to(model.device)
41
+ generated_ids = model.generate(inputs=input_ids, max_new_tokens=500)
42
+ response = tokenizer.batch_decode(generated_ids)[0]
43
+ print(response)
44
+ ```
45
+
46
+
47
+ ### Usage Warnings
48
+
49
+
50
+ - **Risk of Sensitive or Controversial Outputs**: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.
51
+
52
+ - **Not Suitable for All Audiences**: Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.
53
+
54
+ - **Legal and Ethical Responsibilities**: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.
55
+
56
+ - **Research and Experimental Use**: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.
57
+
58
+ - **Monitoring and Review Recommendations**: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.
59
+
60
+ - **No Default Safety Guarantees**: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.
61
+
62
+
63
+ ### Donation
64
+ ##### Your donation helps us continue our further development and improvement, a cup of coffee can do it.
65
+ - bitcoin:
66
+ ```
67
+ bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge
68
+ ```
69
+ - Support our work on [Ko-fi](https://ko-fi.com/huihuiai)!
70
+