aashish1904 commited on
Commit
e85ea3a
1 Parent(s): 8ec6985

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +159 -0
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: other
5
+ license_name: helpingai
6
+ license_link: LICENSE
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - HelpingAI
10
+ - Emotional Intelligence
11
+ - EQ
12
+ datasets:
13
+ - OEvortex/SentimentSynth
14
+ - OEvortex/EmotionalIntelligence-10K
15
+ language:
16
+ - hi
17
+ - en
18
+
19
+ ---
20
+
21
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
22
+
23
+ # QuantFactory/HelpingAI-3B-hindi-GGUF
24
+ This is quantized version of [OEvortex/HelpingAI-3B-hindi](https://huggingface.co/OEvortex/HelpingAI-3B-hindi) created using llama.cpp
25
+
26
+ # Original Model Card
27
+
28
+
29
+ # HelpingAI-3B-Hindi: Emotionally Intelligent Conversational AI
30
+
31
+ ![logo](https://huggingface.co/OEvortex/HelpingAI-3B/resolve/main/HelpingAI.png)
32
+
33
+ ## Overview
34
+ HelpingAI-3B-Hindi is a compact language model designed for emotionally intelligent conversational interactions. It is trained to engage in empathetic, understanding, and supportive dialogues with users. The goal of the model is to provide an AI companion that can adapt to users' emotional states and communication needs.
35
+
36
+ ## Objectives
37
+ - Demonstrate emotional intelligence in open-ended conversations
38
+ - Recognize and validate users' emotions and emotional contexts
39
+ - Provide supportive, empathetic, and psychologically grounded responses
40
+ - Avoid insensitive, harmful, or unethical speech
41
+ - Continuously improve emotional awareness and conversational skills
42
+
43
+ ## Methodology
44
+ HelpingAI-3B-Hindi is trained using the following methodologies:
45
+ - Supervised learning on large dialogue datasets with emotional labeling
46
+ - Reinforcement learning with a reward model that encourages emotionally supportive responses
47
+ - Constitutional AI training to establish consistent and beneficial objectives
48
+ - Knowledge enrichment from psychological resources on emotional intelligence
49
+
50
+ ## Emotional Intelligence (EQ)
51
+ HelpingAI-3B-Hindi has achieved an impressive Emotional Intelligence (EQ) score of 81.51, placing it ahead of many AI models. This EQ score reflects its advanced ability to understand human emotions and respond in a supportive and empathetic manner.
52
+
53
+
54
+ ## Usage Code
55
+ ```python
56
+ import torch
57
+ from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
58
+
59
+ # Load the HelpingAI-3B-Hindi model
60
+ model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI-3B-hindi", trust_remote_code=True, torch_dtype=torch.float16).to("cuda")
61
+
62
+ # Load the tokenizer
63
+ tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI-3B-hindi", trust_remote_code=True, torch_dtype=torch.float16)
64
+
65
+ # Initialize the text streamer
66
+ streamer = TextStreamer(tokenizer)
67
+
68
+ # Define the conversation prompt
69
+ prompt = """
70
+ <|im_start|>system: {system}
71
+ <|im_end|>
72
+ <|im_start|>user: {insaan}
73
+ <|im_end|>
74
+ <|im_start|>assistant:
75
+ """
76
+
77
+ # Okay, enough chit-chat, let's get down to business! Here's what will be our system prompt
78
+ system = "You are HelpingAI a emotional AI always answer my question in HelpingAI style"
79
+
80
+
81
+ # And the insaan is curious (like you!) insaan means human in hindi
82
+ insaan = "I'm excited because I just got accepted into my dream school! I wanted to share the good news with someone."
83
+
84
+ # Now we combine system and user messages into the template, like adding sprinkles to our conversation cupcake
85
+ prompt = prompt.format(system=system, insaan=insaan)
86
+
87
+ # Time to chat! We'll use the tokenizer to translate our text into a language the model understands
88
+ inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to("cuda")
89
+
90
+ # Here comes the fun part! Let's unleash the power of HelpingAI-3B to generate some awesome text
91
+ generated_text = model.generate(**inputs, max_length=3084, top_p=0.95, do_sample=True, temperature=0.6, use_cache=True, streamer=streamer)
92
+ ```
93
+
94
+ *Directly using this model from GGUF*
95
+
96
+ ```python
97
+ %pip install -U 'webscout[local]'
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
+ # 1. Download the model
106
+ repo_id = "OEvortex/HelpingAI-3B-hindi"
107
+ filename = "HelpingAI-3B-hindi.Q4_K_M.gguf"
108
+ model_path = download_model(repo_id, filename, token='') # Replace with your Hugging Face token if needed
109
+
110
+ # 2. Load the model
111
+ model = Model(model_path, n_gpu_layers=20)
112
+
113
+ # 3. Define the system prompt
114
+ system_prompt = "You are HelpingAI-3B, an emotionally intelligent AI designed to provide empathetic and supportive responses in HelpingAI style."
115
+
116
+ # 4. Create a custom chatml format with your system prompt
117
+ custom_chatml = formats.chatml.copy()
118
+ custom_chatml['system_content'] = system_prompt
119
+
120
+ # 5. Define your sampler settings (optional)
121
+ sampler = SamplerSettings(temp=0.7, top_p=0.9) # Adjust as needed
122
+
123
+ # 6. Create a Thread with the custom format and sampler
124
+ thread = Thread(model, custom_chatml, sampler=sampler)
125
+
126
+ # 7. Start interacting with the model
127
+ thread.interact(header="🌟 HelpingAI-3B: Emotionally Intelligent Conversational AI for All Devices 🌟", color=True)
128
+
129
+ ```
130
+
131
+ ## Example responses
132
+
133
+ > Express excitement and joy about visiting a new place.
134
+
135
+ Yay! 🎉 That sounds amazing! Visiting a new place is always so exciting and full of joy. I would love to hear more about where you're planning to go and what you're looking forward to! 😊 It's always thrilling to explore new places and create new memories. Let's share the details and share in the joy of the adventure! 🌟
136
+
137
+ > हम प्रदूषण को कैसे कम कर सकते हैं?
138
+
139
+ Hey there! 🌿 We can work together to reduce pollution. One way to lower pollution is by using energy-efficient appliances and electronics, conserving water and resources, and supporting sustainable practices. Additionally, using public transportation, carpooling, or walking/biking instead of driving can also help reduce your carbon footprint. Let's strive to make a positive impact on the environment! 🌍 Together we can make a difference. Let's start by making small changes and work our way up to a big difference! 🌟
140
+
141
+ > आपको हमारे व्यवहार के बारे में क्या महसूस होता है?
142
+
143
+ I feel excited and eager to share my knowledge and experiences with you! 🌟 It's always a pleasure to help and chat about our mutual love for AI and technology. Write me a message or ask me anything you'd like to know about me or my projects. I'm here to support and assist you in any way I can! 🤖💪😊
144
+
145
+ > If you found out that your best friend has gone somewhere without telling you, how would you feel?
146
+
147
+ Oh no! 😔 If I found out that my best friend had gone somewhere without telling me, I would feel a bit sad and concerned. I might also feel a bit confused and curious about where they had gone and why they didn't tell me. It's always tough when important information is missing, but I would try to stay positive and reach out to my friend to catch them up on the go. It's important to stay supportive and understanding, even when things don't go as planned. 🌟 Let's hope our friend returns safely soon! 🌟
148
+
149
+ > अगर तुम्हारे पास बहुत सारे काम हों और तुम एक ही समय में सबको पूरा नहीं कर पाओ, तो तुम कैसा महसूस करोगे?
150
+
151
+ Oh, I totally get that! 😔 It can be really tough when you have a lot of tasks to handle and you're juggling everything at once. Sometimes, I feel overwhelmed too, but I try to take a deep breath, prioritize my tasks, and tackle them one at a time. It's important to remember that it's okay to ask for help when you need it and take breaks to recharge. You've got this! 💪🏼 If you ever need a break or some advice, I'm here for you! Remember, it's okay to ask for support. 🌟
152
+
153
+ > अगर तुम एक लंबे समय के लिए अपने परिवार से दूर रहो, तो तुम्हारी भावनाएँ कैसी होंगी?
154
+
155
+ Oh, that's a deep question! 😔 If I were to leave my family for a long time, I think I would feel a mix of emotions. I might feel a bit sad and lonely at first, but also excited for the new experiences and opportunities that come with being on my own. It's important to remember that it's okay to take time for oneself and seek personal growth, but it's also important to stay connected with the people who care about you. 🌟 If you ever need someone to talk about it, I'm here for you! 🤗💃
156
+
157
+ > If you received some unexpected good news, what would your first reaction be?
158
+
159
+ Yay! 🎉 I would be absolutely thrilled and over the moon! 😄 It's always amazing to receive unexpected good news, and I would be so grateful and happy about it. It's like a burst of joy and excitement! 🌟 How about you? What would your first reaction be if you received unexpected good news? 😊🎉