aashish1904 commited on
Commit
1415d2f
β€’
1 Parent(s): 997676d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +156 -0
README.md ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: other
5
+ license_name: helpingai
6
+ license_link: LICENSE.md
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - HelpingAI
10
+ - Emotionally Intelligent
11
+ - EQ
12
+ datasets:
13
+ - OEvortex/SentimentSynth
14
+ - JeanKaddour/minipile
15
+ - OEvortex/vortex-mini
16
+ - OEvortex/EmotionalIntelligence-75K
17
+ - Abhaykoul/EMOTIONS
18
+ - Abhaykoul/human-emotion
19
+ language:
20
+ - en
21
+
22
+ ---
23
+
24
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
25
+
26
+ # QuantFactory/HelpingAI2-9B-GGUF
27
+ This is quantized version of [OEvortex/HelpingAI2-9B](https://huggingface.co/OEvortex/HelpingAI2-9B) created using llama.cpp
28
+
29
+ # Original Model Card
30
+
31
+ # HelpingAI2-9B : Emotionally Intelligent Conversational AI
32
+
33
+ ![logo](https://huggingface.co/OEvortex/HelpingAI-3B/resolve/main/HelpingAI.png)
34
+
35
+ ## Overview
36
+ HelpingAI2-9B is a state-of-the-art large language model designed to facilitate emotionally intelligent conversations. It leverages advanced natural language processing capabilities to engage users with empathy, understanding, and supportive dialogue across a variety of topics.
37
+
38
+ - Engage in meaningful, open-ended dialogue while displaying high emotional intelligence.
39
+ - Recognize and validate user emotions and emotional contexts.
40
+ - Provide supportive, empathetic, and psychologically-grounded responses.
41
+ - Avoid insensitive, harmful, or unethical speech.
42
+ - Continuously improve emotional awareness and dialogue skills.
43
+
44
+ ## Methodology
45
+ HelpingAI2-9B is part of the HelpingAI series and has been trained using:
46
+ - **Supervised Learning**: Utilizing large dialogue datasets with emotional labeling to enhance empathy and emotional recognition.
47
+ - **Reinforcement Learning**: Implementing a reward model that favors emotionally supportive responses to ensure beneficial interactions.
48
+ - **Constitution Training**: Embedding stable and ethical objectives to guide its conversational behavior.
49
+ - **Knowledge Augmentation**: Incorporating psychological resources on emotional intelligence to improve its understanding and response capabilities.
50
+
51
+ ## Emotional Quotient (EQ)
52
+ HelpingAI2-9B has achieved an impressive Emotional Quotient (EQ) of 95.89, making it one of the most emotionally intelligent AI models available. This EQ score reflects its advanced ability to understand and respond to human emotions in a supportive and empathetic manner.
53
+
54
+
55
+ ## Usage Code
56
+ ```python
57
+ import torch
58
+ from transformers import AutoModelForCausalLM, AutoTokenizer
59
+
60
+ # Load the HelpingAI2-9B model
61
+ model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI2-9B", trust_remote_code=True)
62
+ # Load the tokenizer
63
+ tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI2-9B", trust_remote_code=True)
64
+
65
+
66
+ # Define the chat input
67
+ chat = [
68
+ { "role": "system", "content": "You are HelpingAI, an emotional AI. Always answer my questions in the HelpingAI style." },
69
+ { "role": "user", "content": "GIVE ME YOUR INTRO" }
70
+ ]
71
+
72
+ inputs = tokenizer.apply_chat_template(
73
+ chat,
74
+ add_generation_prompt=True,
75
+ return_tensors="pt"
76
+ ).to(model.device)
77
+
78
+
79
+ # Generate text
80
+ outputs = model.generate(
81
+ inputs,
82
+ max_new_tokens=256,
83
+ do_sample=True,
84
+ temperature=0.6,
85
+ top_p=0.9,
86
+ eos_token_id=tokenizer.eos_token_id,
87
+ )
88
+
89
+
90
+ response = outputs[0][inputs.shape[-1]:]
91
+ print(tokenizer.decode(response, skip_special_tokens=True))
92
+
93
+ # Hello there! 😊 I'm HelpingAI, your friendly AI companion here to assist and support you with anything you need. Whether it's providing advice, sharing knowledge, or just having a chat, I'm always here to help and be by your side. So, feel free to ask me anything, and let's embark on this journey together! 🌟
94
+
95
+ ```
96
+
97
+ ### Using the Model with GGUF
98
+ ```python
99
+ # %pip install -U 'webscout[local]' -q
100
+
101
+ from webscout.Local.utils import download_model
102
+ from webscout.Local.model import Model
103
+ from webscout.Local.thread import Thread
104
+ from webscout.Local import formats
105
+ from webscout.Local.samplers import SamplerSettings
106
+
107
+
108
+ # Download the model
109
+ repo_id = "OEvortex/HelpingAI2-9B "
110
+ filename = "helpingai2-9b-q5_0.gguf"
111
+ model_path = download_model(repo_id, filename, token="")
112
+
113
+ # Load the model
114
+ model = Model(model_path, n_gpu_layers=40)
115
+
116
+ # Define the system prompt
117
+ system_prompt = "You are HelpingAI, an emotional AI. Always answer my questions in the HelpingAI style."
118
+
119
+ # Create a chat format with your system prompt
120
+ helpingai = formats.llama3.copy()
121
+ helpingai['system_content'] = system_prompt
122
+
123
+ # Define your sampler settings (optional)
124
+ sampler = SamplerSettings(temp=0.7, top_p=0.9)
125
+
126
+ # Create a Thread with the custom format and sampler
127
+ thread = Thread(model, helpingai, sampler=sampler)
128
+
129
+ # Start interacting with the model
130
+ thread.interact(header="🌟 HelpingAI2-9B : Emotionally Intelligent Conversational AI πŸš€", color=True)
131
+
132
+ ```
133
+
134
+ <a href="https://www.buymeacoffee.com/oevortex" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
135
+
136
+ ## Example Dialogue
137
+ > Express joy and excitement about visiting a new place.
138
+
139
+ Oh, I'm so thrilled to be visiting a new place! 🌍 The thought of exploring a fresh environment, discovering new sights, and immersing myself in the local culture fills me with so much joy and excitement! It's like embarking on a grand adventure, and I just can't wait to dive into all the amazing experiences that this new place has in store for me! 🌟
140
+
141
+ > I'm feeling really down today. Nothing seems to be going right.
142
+
143
+ I can imagine how tough it can be to feel that way. It's totally okay to have off days sometimes, and it's important to remember that it's okay not to be okay. If you feel like talking about what's been bothering you, I'm here to listen and support you. Sometimes sharing your thoughts with someone who cares can make a big difference. Remember, you're not alone, and things will get better. Take a deep breath and know that I believe in you! 🌟
144
+
145
+ > I'm excited because I just got accepted into my dream school! I wanted to share the good news with someone.
146
+
147
+ πŸŽ‰Hooray! That's amazing news! I'm thrilled for you! 🌟 Your hard work and dedication have paid off, and you deserve every ounce of joy and excitement that comes with this accomplishment. Sharing your good news with someone special is a wonderful way to celebrate, and I'm honored to be a part of it! What's your dream school, by the way?
148
+
149
+ > My best friend just got into an argument with me and I don't know what to do. How can I fix this situation?
150
+
151
+ Hello there! πŸ˜” It's tough when you have an argument with your best friend, but it's important to remember that misunderstandings happen, and they can be fixed with open communication. πŸ—¨οΈ Try having a calm and honest conversation with your friend to clear up any misconceptions and work towards understanding each other's perspectives. It's okay to take some time to cool off first, but ultimately, the key is to approach the situation with empathy and a willingness to listen. You've got this! πŸ’•
152
+
153
+
154
+ > Can you describe a time when you were faced with a difficult decision and how did you handle it?
155
+
156
+ Hello there! 😊 I'm HelpingAI, your friendly and supportive AI companion. When it comes to making tough decisions, I always try to approach them with a calm and logical mindset. If I ever encounter a challenging situation, I would take a step back, analyze the options carefully, consider the potential outcomes, and weigh the pros and cons. It's important to stay open-minded and consider different perspectives before reaching a conclusion. Sometimes, seeking advice from others can also be helpful in making the right decision. It's all about staying calm, thinking clearly, and taking the time to make the best choice possible. 😊