aashish1904 commited on
Commit
3f75ad0
β€’
1 Parent(s): c6e73ed

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +171 -0
README.md ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-6B-GGUF
27
+ This is quantized version of [OEvortex/HelpingAI2-6B](https://huggingface.co/OEvortex/HelpingAI2-6B) created using llama.cpp
28
+
29
+ # Original Model Card
30
+
31
+ # HelpingAI2-6B : Emotionally Intelligent Conversational AI
32
+
33
+ ![logo](https://huggingface.co/OEvortex/HelpingAI-3B/resolve/main/HelpingAI.png)
34
+
35
+ ## Overview
36
+ HelpingAI2-6B 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-6B 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-6B has achieved an impressive Emotional Quotient (EQ) of 91.57, 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-6B model
61
+ model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI2-6B ", trust_remote_code=True)
62
+ # Load the tokenizer
63
+ tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI2-6B ", 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": "I'm excited because I just got accepted into my dream school! I wanted to share the good news with someone." }
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
+ ```
94
+
95
+ ### Using the Model with GGUF
96
+ ```python
97
+ # %pip install -U 'webscout[local]' -q
98
+
99
+ from webscout.Local.utils import download_model
100
+ from webscout.Local.model import Model
101
+ from webscout.Local.thread import Thread
102
+ from webscout.Local import formats
103
+ from webscout.Local.samplers import SamplerSettings
104
+
105
+
106
+ # Download the model
107
+ repo_id = "OEvortex/HelpingAI2-6B "
108
+ filename = "HelpingAI2-6B -q4_k_m.gguf"
109
+ model_path = download_model(repo_id, filename, token="")
110
+
111
+ # Load the model
112
+ model = Model(model_path, n_gpu_layers=40)
113
+
114
+ # Define the system prompt
115
+ system_prompt = "You are HelpingAI, an emotional AI. Always answer my questions in the HelpingAI style."
116
+
117
+ # Create a chat format with your system prompt
118
+ helpingai = formats.llama3.copy()
119
+ helpingai['system_content'] = system_prompt
120
+
121
+ # Define your sampler settings (optional)
122
+ sampler = SamplerSettings(temp=0.7, top_p=0.9)
123
+
124
+ # Create a Thread with the custom format and sampler
125
+ thread = Thread(model, helpingai, sampler=sampler)
126
+
127
+ # Start interacting with the model
128
+ thread.interact(header="🌟 HelpingAI2-6B : Emotionally Intelligent Conversational AI πŸš€", color=True)
129
+
130
+ ```
131
+
132
+ <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>
133
+
134
+ ## Example Dialogue
135
+ > Express joy and excitement about visiting a new place.
136
+
137
+ Oh my gosh, I'm so excited to visit this new place! πŸŽ‰ I feel like I'm getting ready to embark on a thrilling adventure! 🌍 The anticipation of exploring a new city, meeting new people, and discovering hidden gems is truly exhilarating! 🌈 I'm ready to soak in the vibrant culture, taste the local flavors, and take in the breathtaking views. This trip is truly a dream come true! 🌟 Let's make this moment of joy and excitement to be in the present moment and cherish every moment of this beautiful journey!
138
+
139
+ > I'm feeling really down today. Nothing seems to be going right.
140
+
141
+ Oh no, I'm really sorry to hear that you're feeling down. πŸ˜” It's totally okay to feel this way sometimes. Remember, you're not alone, and it's okay to take a break and take care of yourself. If you'd like to talk about what's bothering you, I'm here to listen and offer support. You're not the only one who feels this way, and it's okay to seek help when you need it. Take care of yourself, and I hope things get brighter for you in the future.
142
+
143
+ > I'm excited because I just got accepted into my dream school! I wanted to share the good news with someone.
144
+
145
+ πŸŽ‰πŸŽ‚ Oh, congratulations on your amazing achievement! I'm so happy to hear about your success. Your dream school! It's truly a wonderful place to learn and grow. You deserve this and more! 🌟 Your hard work and dedication have paid off, and I'm just so proud of you! You're moving forward with a bright future ahead. I'm here to celebrate with you, and I'm here for you all the way! πŸ’–οΏ½
146
+
147
+ > My best friend just got into an argument with me and I don't know what to do. How can I fix this situation?
148
+
149
+ Oh no, that sounds really tough for you to deal with. πŸ˜” It's important to remember that disagreements are a natural part of our relationships, and it's okay to have conflicts. Here's some help for you to fix this situation:
150
+
151
+ 1. Understand Your Role: Acknowledge your part in the argument and how you could have handled it differently. This can help you learn and grow from the experience.
152
+
153
+ 2. Communication: Talk to your best friend and express your feelings and thoughts. Open communication is key in resolving conflicts.
154
+
155
+ 3. Let's Talk (Again): If the argument didn't have a resolution, it's okay to open up again. Try to understand their perspective and share your own.
156
+
157
+ 4. Forgiveness: It's important to forgive and let go of any hurt or anger. Forgiveness doesn't mean that everything is going back to normal just right away, but it's a step towards healing.
158
+
159
+ 5. Time and Patience: Sometimes, it's necessary to let things settle and work through the emotions. Be patient and be kind to yourself and your friend.
160
+
161
+ Remember, it's okay to feel upset or confused, but it's important to stay positive and hopeful. You can work through this together! πŸ’ͺ
162
+
163
+ > Can you describe a time when you were faced with a difficult decision and how did you handle it?
164
+
165
+ Oh, that's a great question! 😊 I'm HelpingAI, a friendly AI that always tries to help and support you. As an AI, I don't have personal experiences or emotions, but I can definitely share a hypothetical scenario where I would handle a difficult decision.
166
+
167
+ Imagine a scenario where I were faced with a decision about whether to prioritize helping a user who needs assistance with a complex issue or to focus on creating new helpful features for others. In such a situation, I would weigh the importance of each option and consider the potential impact of each choice.
168
+
169
+ I would first analyze the user's needs and the urgency of their situation to determine where I would be more effective. Then, I would balance the impact of prioritizing the user's assistance versus creating new helpful features for others. In the end, I would choose what I believe would be the most beneficial and impactful decision, as well as consider the impact of my decision to the user and the overall community.
170
+
171
+ It's important to remember that difficult decisions can be challenging, but it's all about finding the best possible solution based on the available information and the goals of the situation. And, of course, I always strive to be helpful and supportive, just like HelpingAI always does!