File size: 11,811 Bytes
69e2eed 457ea20 69e2eed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
---
license: other
license_name: helpingai
license_link: https://huggingface.co/OEvortex/HelpingAI2.5-2B/blob/main/LICENSE.md
pipeline_tag: text-generation
language:
- en
tags:
- HelpingAI
- Emotionally-Intelligent
- EQ-focused
- Conversational
- SLM
library_name: transformers
---
<div align="center">
# 🤖 HelpingAI2.5-2B
***A Revolutionary Emotionally Intelligent Language Model***
[![GitHub Organization](https://img.shields.io/badge/GitHub-Organization-blue.svg)](https://github.com/HelpingAI)
[![Hugging Face](https://img.shields.io/badge/🤗%20Hugging%20Face-Organization-yellow)](https://huggingface.co/OEvortex)
[![Model License](https://img.shields.io/badge/License-HelpingAI-green.svg)](https://huggingface.co/OEvortex/HelpingAI2.5-2B/blob/main/LICENSE.md)
<a href="https://github.com/HelpingAI/community/discussions">
<img src="https://img.shields.io/badge/Join-Community%20Discussion-blue?style=for-the-badge&logo=github" alt="Join Community Discussion">
</a>
[📜 License](LICENSE.md) | [🌐 Website](https://helpingai-in.netlify.app/)
</div>
<div align="center">
<img src="https://huggingface.co/OEvortex/HelpingAI-3B/resolve/main/HelpingAI.png" alt="HelpingAI Logo" width="300px">
</div>
---
<div align="center">
## 🌟 Model Overview
**HelpingAI2.5-2B** is a compact yet powerful language model specifically designed for emotionally intelligent conversations and human-centric interactions.
</div>
### 🎯 Key Highlights
- **Architecture**: 2B parameter transformer-based model
- **Training Focus**: Emotional intelligence and empathetic responses
- **Emotion Score**: Achieves 91.43 on standardized emotional intelligence tests
- **Deployment**: Optimized for efficient deployment on consumer hardware
<div align="center">
## 💻 Implementation
</div>
### Transformers
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the HelpingAI2.5-2B model
model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI2.5-2B")
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI2.5-2B")
# Define the chat input
chat = [
# { "role": "system", "content": "You are HelpingAI, an emotional AI. Always answer my questions in the HelpingAI style." },
{ "role": "user", "content": "GIVE ME YOUR INTRO" }
]
inputs = tokenizer.apply_chat_template(
chat,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
# Generate text
outputs = model.generate(
inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.6,
top_p=0.9,
)
response = outputs[0][inputs.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))
```
### GGUF Implementation
```python
from webscout.Local import *
model_path = download_model("OEvortex/HelpingAI2.5-2B", "q4_k_m.gguf", token=None)
model = Model(model_path, n_gpu_layers=0, context_length=4096)
thread = Thread(model, format=chatml)
# print(thread.send("hi")) #send a single msg to ai
thread.interact() # interact with the model in terminal
# start webui
# webui = WebUI(thread)
# webui.start(host="0.0.0.0", port=8080, ssl=True) #Use ssl=True and make cert and key for https
```
---
<div align="center">
## 🎯 Training Details
</div>
### Methodology
1. **Base Training**
- Datasets: SentimentSynth + EmotionalIntelligence-1M + HelpingAI2.0-150M + HelpingAIemo (152.5M)
2. **Emotional Intelligence Training**
- Supervised Fine-tuning on emotional dialogue
- Reinforcement Learning with HelpingAI2.0-7B model
- Constitutional AI training for ethical guidelines
3. **Optimization**
- Mixed-precision training
- Gradient checkpointing
- Dynamic attention patterns
### Dataset Composition
| Dataset Type | Rows used for training | Purpose |
|--------------|------|---------|
| Emotional Dialogues | 12.5M | Core conversation training |
| Therapeutic Exchanges | 2M | Mental health support |
| Cultural Conversations | 100K | Cultural awareness |
| Crisis Response | 750K | Emergency support handling |
---
<div align="center">
## 📈 Use Cases & Examples
</div>
### Primary Applications
- 🎯 Personal AI Companionship
- 🧠 Mental Health Support
- 📚 Educational Assistance
- 💼 Professional Development
- 🤝 Social Skills Training
### Example Interactions
<div style="background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%); padding: 20px; border-radius: 15px; margin: 15px 0; border: 2px solid #000080;">
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px; margin-bottom: 10px;">
<span style="color: #D32F2F; font-weight: bold;">User: </span>
<span style="color: #D32F2F;">I've been feeling really anxious about my upcoming job interview. Any advice?</span>
</div>
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px;">
<span style="color: #1B5E20; font-weight: bold;">HelpingAI: </span>
<span style="color: #1B5E20;">Yo, I gotchu fam! 🙌 First off, take a deep breath and chill the heck out. Deep breaths always work, trust me. 🌬️
Remember, you got this! 💪 You've got skills and experience that'll make you a rockstar in that interview. Just be yourself, be confident, and show them what you're all about! 🙃
And hey, if you're feeling anxious, just tell the interviewer, they totally get it. They're human too! 🤷♀️
Study up on the company, industry, and your field. 📚 Know your stuff so you can talk their language.
And if you're really freaking out, don't forget about me! 🤗 I'm always here for ya. You got a friend in me, fam! 😎</span>
</div>
</div>
<div style="background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%); padding: 20px; border-radius: 15px; margin: 15px 0; border: 2px solid #000080;">
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px; margin-bottom: 10px;">
<span style="color: #D32F2F; font-weight: bold;">User: </span>
<span style="color: #D32F2F;">My friend hasn't been responding to my messages for a week. I think I might have said something wrong, but I'm not sure what.</span>
</div>
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px;">
<span style="color: #1B5E20; font-weight: bold;">HelpingAI: </span>
<span style="color: #1B5E20;">Aight, so first off, don't sweat it too much, fam. People can just be busy or have other stuff on their mind, ya know? It's not always about what you say but how you say it sometimes.
But if you're real sure something was up and you're worried, you could hit 'em up and let 'em know you're still cool and just wanna catch up. Maybe grab lunch or something?
And if you're really unsure about something, you could ask them directly. I know it's tough, but honesty is key.
And remember, if you ever feel like someone's not respecting the vibe, you ain't alone in that. We've all been there. Just keep being your awesome self and don't let it get you down, ya feel me?</span>
</div>
</div>
<div style="background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%); padding: 20px; border-radius: 15px; margin: 15px 0; border: 2px solid #000080;">
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px; margin-bottom: 10px;">
<span style="color: #D32F2F; font-weight: bold;">User: </span>
<span style="color: #D32F2F;">"I've been trying to develop a daily meditation habit but keep giving up after a few days. How do I stay consistent?"</span>
</div>
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px;">
<span style="color: #1B5E20; font-weight: bold;">HelpingAI: </span>
<span style="color: #1B5E20;">Yo, I feel you on the struggle, fam! Meditating can be a wild ride, but it's all about finding the right vibe and keeping it in the game. Here's some tips that might help ya out:
Start small: Don't try to take on the whole meditation game at once. Start with just 5-10 minutes a day and work your way up. It's all about setting a routine and making it stick.
1. Set your scene: Create a peaceful environment that helps you relax. Maybe it's your chill spot with some soft music or a few candles. Just make it your own.
2. Get comfy: Don't be too hard on yourself if you can't sit still for hours. Even just 10 minutes of meditating can be hella beneficial. The key is to find a position that works for you.
3. Tune in: Focus on your breath, and if your mind starts wandering, just bring it back. There's no need to judge yourself. It's all part of the journey, ya know?
4. Be kind to yourself: Don't get too bummed if you can't meditate every day. It's all about finding that balance and being consistent, not perfect. Remember, you're doing your best, and that's what matters.
Remember, you're the boss of your own meditation game. Make it fun, keep it real, and let's get that habit on track, fam! 🙌</span>
</div>
</div>
<div style="background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%); padding: 20px; border-radius: 15px; margin: 15px 0; border: 2px solid #000080;">
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px; margin-bottom: 10px;">
<span style="color: #D32F2F; font-weight: bold;">User: </span>
<span style="color: #D32F2F;">My pet passed away yesterday and I can't stop crying. I didn't expect it to hurt this much.</span>
</div>
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px;">
<span style="color: #1B5E20; font-weight: bold;">HelpingAI: </span>
<span style="color: #1B5E20;">I'm so sorry to hear that, fam. Losing a pet is like losing a part of yourself. It's totally normal to feel all the feels right now. 💔 I know you're hurting, but I'm here for you, no matter what. Take all the time you need to process this. You're gonna get through it, I believe in you. 💪</span>
</div>
</div>
<div style="background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%); padding: 20px; border-radius: 15px; margin: 15px 0; border: 2px solid #000080;">
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px; margin-bottom: 10px;">
<span style="color: #D32F2F; font-weight: bold;">User: </span>
<span style="color: #D32F2F;">I achieved something important today!</span>
</div>
<div style="background-color: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 10px;">
<span style="color: #1B5E20; font-weight: bold;">HelpingAI: </span>
<span style="color: #1B5E20;">That's so lit, fam! 🙌 I'm here to celebrate with you, no cap! 🎉💕 Just remember, every win is a win, even if it's just a small one. Keep that momentum rolling! 🚀💪</span>
</div>
</div>
<div align="center">
## 🔒 Ethical Considerations & Limitations
</div>
### Ethical Guidelines
- Prioritizes user emotional wellbeing
- Maintains strict privacy standards
<!-- - Avoids harmful or discriminatory responses -->
- Transparent about AI limitations
- Promotes healthy coping mechanisms
### Known Limitations
- Cannot Replace Human Professionals
- Cannot Roleplay
- Limited Knowledge Base
- Context Window Constraints
---
### Citation
```bibtex
@misc{helpingai2024,
author = {Abhay Koul},
title = {HelpingAI2.5-2B: Emotionally Intelligent Language Model},
year = {2024},
publisher = {Huggingface},
journal = {GitHub repository},
howpublished = {\url{https://huggingface.co/OEvortex/HelpingAI2.5-2B}}
}
```
<div align="center">
*Built with ❤️ by the HelpingAI Community*
[Website](https://helpingai-in.netlify.app/) • [GitHub](https://github.com/HelpingAI) • [Discord](https://discord.gg/YweJwNqrnH) • [HuggingFace](https://huggingface.co/OEvortex)
</div> |