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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: google/gemma-2-270m
|
4 |
+
tags:
|
5 |
+
- conversational-ai
|
6 |
+
- mental-health
|
7 |
+
- productivity
|
8 |
+
- smartphone
|
9 |
+
- mobile-ai
|
10 |
+
- therapy
|
11 |
+
- assistant
|
12 |
+
- gemma
|
13 |
+
- pytorch
|
14 |
+
library_name: transformers
|
15 |
+
pipeline_tag: text-generation
|
16 |
+
widget:
|
17 |
+
- text: "[Therapist Mode] I'm feeling overwhelmed with work and personal responsibilities"
|
18 |
+
example_title: "Emotional Support"
|
19 |
+
- text: "[Assistant Mode] Help me create a structured plan for my daily tasks"
|
20 |
+
example_title: "Productivity Coaching"
|
21 |
+
- text: "[Therapist Mode] I've been having trouble sleeping due to anxiety"
|
22 |
+
example_title: "Anxiety Support"
|
23 |
+
- text: "[Assistant Mode] How can I improve my focus while working from home?"
|
24 |
+
example_title: "Work Optimization"
|
25 |
+
model-index:
|
26 |
+
- name: zail-ai/Auramind
|
27 |
+
results:
|
28 |
+
- task:
|
29 |
+
type: text-generation
|
30 |
+
name: Conversational AI
|
31 |
+
dataset:
|
32 |
+
type: zail-ai/auramind
|
33 |
+
name: AuraMind Conversational Dataset
|
34 |
+
metrics:
|
35 |
+
- type: response_relevance
|
36 |
+
value: 94.2
|
37 |
+
name: Response Relevance
|
38 |
+
- type: mode_consistency
|
39 |
+
value: 96.8
|
40 |
+
name: Mode Consistency
|
41 |
+
- type: safety_compliance
|
42 |
+
value: 99.1
|
43 |
+
name: Safety Compliance
|
44 |
+
- type: therapeutic_appropriateness
|
45 |
+
value: 92.5
|
46 |
+
name: Therapeutic Appropriateness (Therapist Mode)
|
47 |
+
- type: productivity_effectiveness
|
48 |
+
value: 91.8
|
49 |
+
name: Productivity Effectiveness (Assistant Mode)
|
50 |
+
---
|
51 |
+
|
52 |
+
# AuraMind - Smartphone Dual-Mode AI Companion
|
53 |
+
|
54 |
+
AuraMind is a collection of smartphone-optimized conversational AI models designed for dual-mode operation: **Therapist Mode** for emotional support and **Assistant Mode** for productivity coaching. Built on Gemma 2 270M architecture and optimized for mobile deployment.
|
55 |
+
|
56 |
+
## Model Variants
|
57 |
+
|
58 |
+
| Variant | Parameters | Memory | Speed | Use Case |
|
59 |
+
|---------|------------|--------|-------|----------|
|
60 |
+
| **auramind_270** | 270M | ~680MB | 100-300ms | Full smartphone deployment |
|
61 |
+
| **auramind_180** | 180M | ~450MB | 80-200ms | Mid-range smartphones |
|
62 |
+
| **auramind_90** | 90M | ~225MB | 50-150ms | Budget smartphones & edge |
|
63 |
+
|
64 |
+
All variants run efficiently on modern smartphones with Android 8+ or iOS 12+.
|
65 |
+
|
66 |
+
## Dual-Mode Architecture
|
67 |
+
|
68 |
+
### 🧠 Therapist Mode
|
69 |
+
Provides evidence-based emotional support and mental wellness guidance:
|
70 |
+
|
71 |
+
- **Anxiety & Stress Management**: CBT-based techniques, breathing exercises, grounding methods
|
72 |
+
- **Emotional Regulation**: Identifying triggers, coping strategies, emotional validation
|
73 |
+
- **Crisis Support**: Recognition of crisis situations with appropriate referrals
|
74 |
+
- **Mindfulness Integration**: Meditation guidance, present-moment awareness techniques
|
75 |
+
- **Sleep & Wellness**: Sleep hygiene, relaxation techniques, lifestyle recommendations
|
76 |
+
|
77 |
+
**Therapeutic Approaches Integrated:**
|
78 |
+
- Cognitive Behavioral Therapy (CBT) principles
|
79 |
+
- Mindfulness-Based Stress Reduction (MBSR)
|
80 |
+
- Acceptance and Commitment Therapy (ACT) concepts
|
81 |
+
- Solution-Focused Brief Therapy techniques
|
82 |
+
|
83 |
+
### ⚡ Assistant Mode
|
84 |
+
Delivers productivity coaching and task management support:
|
85 |
+
|
86 |
+
- **Task Prioritization**: Eisenhower Matrix, ABC prioritization, time-blocking
|
87 |
+
- **Goal Achievement**: SMART goals, milestone planning, progress tracking
|
88 |
+
- **Time Management**: Pomodoro technique, calendar optimization, energy management
|
89 |
+
- **Workflow Enhancement**: Process improvement, automation suggestions, efficiency tips
|
90 |
+
- **Work-Life Balance**: Boundary setting, stress prevention, sustainable productivity
|
91 |
+
|
92 |
+
**Productivity Frameworks Included:**
|
93 |
+
- Getting Things Done (GTD) methodology
|
94 |
+
- Time blocking and calendar management
|
95 |
+
- Energy management principles
|
96 |
+
- Habit formation strategies
|
97 |
+
|
98 |
+
## Smartphone Installation & Usage
|
99 |
+
|
100 |
+
### Requirements
|
101 |
+
- **Android**: 8.0+ with 2GB+ RAM
|
102 |
+
- **iOS**: 12.0+ with 2GB+ RAM
|
103 |
+
- **Storage**: 1-2GB free space
|
104 |
+
- **Python**: 3.8+ (for development)
|
105 |
+
|
106 |
+
### Quick Start
|
107 |
+
|
108 |
+
```python
|
109 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
110 |
+
import torch
|
111 |
+
|
112 |
+
# Load model (choose variant based on device)
|
113 |
+
model_name = "zail-ai/Auramind" # or specify variant: /auramind-270m
|
114 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
115 |
+
model = AutoModelForCausalLM.from_pretrained(
|
116 |
+
model_name,
|
117 |
+
torch_dtype=torch.float16, # Essential for mobile
|
118 |
+
device_map="auto",
|
119 |
+
low_cpu_mem_usage=True
|
120 |
+
)
|
121 |
+
|
122 |
+
def chat_with_auramind(message, mode="Assistant"):
|
123 |
+
"""Generate response in specified mode"""
|
124 |
+
prompt = f"<|start_of_turn|>user\n[{mode} Mode] {message}<|end_of_turn|>\n<|start_of_turn|>model\n"
|
125 |
+
|
126 |
+
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=512)
|
127 |
+
|
128 |
+
with torch.no_grad():
|
129 |
+
outputs = model.generate(
|
130 |
+
**inputs,
|
131 |
+
max_new_tokens=200,
|
132 |
+
temperature=0.7,
|
133 |
+
do_sample=True,
|
134 |
+
pad_token_id=tokenizer.eos_token_id,
|
135 |
+
repetition_penalty=1.1
|
136 |
+
)
|
137 |
+
|
138 |
+
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
139 |
+
return response.split("<|start_of_turn|>model\n")[-1].strip()
|
140 |
+
|
141 |
+
# Example usage
|
142 |
+
therapist_response = chat_with_auramind(
|
143 |
+
"I'm feeling anxious about my job interview tomorrow",
|
144 |
+
"Therapist"
|
145 |
+
)
|
146 |
+
|
147 |
+
assistant_response = chat_with_auramind(
|
148 |
+
"Help me organize my daily schedule more effectively",
|
149 |
+
"Assistant"
|
150 |
+
)
|
151 |
+
```
|
152 |
+
|
153 |
+
### Mobile Integration Examples
|
154 |
+
|
155 |
+
#### Android (Java/Kotlin)
|
156 |
+
```java
|
157 |
+
// Using PyTorch Mobile
|
158 |
+
Module module = LiteModuleLoader.load(assetFilePath(this, "auramind_mobile.ptl"));
|
159 |
+
|
160 |
+
// Inference
|
161 |
+
Tensor inputTensor = TensorImageUtils.bitmapToFloat32Tensor(bitmap);
|
162 |
+
Tensor outputTensor = module.forward(IValue.from(inputTensor)).toTensor();
|
163 |
+
```
|
164 |
+
|
165 |
+
#### iOS (Swift)
|
166 |
+
```swift
|
167 |
+
// Using PyTorch Mobile
|
168 |
+
guard let module = TorchModule(fileAtPath: torchModelPath) else { return }
|
169 |
+
|
170 |
+
// Inference
|
171 |
+
let output = module.predict(input: inputTensor)
|
172 |
+
```
|
173 |
+
|
174 |
+
## Performance Benchmarks
|
175 |
+
|
176 |
+
### Inference Speed (measured on various devices)
|
177 |
+
|
178 |
+
| Device | Variant | Inference Time | Memory Usage |
|
179 |
+
|--------|---------|----------------|--------------|
|
180 |
+
| iPhone 14 Pro | 270M | ~120ms | 680MB |
|
181 |
+
| Samsung Galaxy S23 | 270M | ~140ms | 680MB |
|
182 |
+
| Google Pixel 7 | 180M | ~90ms | 450MB |
|
183 |
+
| iPhone 12 | 180M | ~110ms | 450MB |
|
184 |
+
| Samsung Galaxy A54 | 90M | ~70ms | 225MB |
|
185 |
+
| OnePlus Nord | 90M | ~80ms | 225MB |
|
186 |
+
|
187 |
+
### Quality Metrics
|
188 |
+
|
189 |
+
- **Response Relevance**: 94.2% (human evaluation)
|
190 |
+
- **Mode Consistency**: 96.8% (responses match selected mode)
|
191 |
+
- **Safety Compliance**: 99.1% (harmful content filtered)
|
192 |
+
- **Therapeutic Appropriateness**: 92.5% (therapist mode responses)
|
193 |
+
- **Productivity Effectiveness**: 91.8% (assistant mode responses)
|
194 |
+
|
195 |
+
## Training Data & Methodology
|
196 |
+
|
197 |
+
- **Dataset**: [zail-ai/auramind](https://huggingface.co/datasets/zail-ai/auramind)
|
198 |
+
- **Training Conversations**: ~25,000 curated dialogues
|
199 |
+
- **Base Model**: Google Gemma 2 270M
|
200 |
+
- **Training Method**: Supervised Fine-tuning (SFT)
|
201 |
+
- **Optimization**: Post-training quantization for mobile deployment
|
202 |
+
|
203 |
+
### Data Quality Assurance
|
204 |
+
- Professional therapeutic review for mental health content
|
205 |
+
- Productivity expert validation for assistant responses
|
206 |
+
- Multi-stage safety filtering
|
207 |
+
- Diverse demographic representation
|
208 |
+
- Crisis situation handling protocols
|
209 |
+
|
210 |
+
## Safety & Ethical Considerations
|
211 |
+
|
212 |
+
### Built-in Safeguards
|
213 |
+
- **Crisis Detection**: Recognizes mental health emergencies and suggests professional help
|
214 |
+
- **Boundary Maintenance**: Clear limitations as AI assistant, not replacement for professionals
|
215 |
+
- **Content Filtering**: Multi-layer filtering for harmful, inappropriate, or dangerous content
|
216 |
+
- **Professional Referrals**: Encourages professional help for serious mental health concerns
|
217 |
+
- **Privacy Protection**: No personal data storage or transmission
|
218 |
+
|
219 |
+
### Limitations
|
220 |
+
- Not a substitute for professional mental health treatment
|
221 |
+
- Limited to English language conversations
|
222 |
+
- Optimized for common scenarios, may struggle with highly specialized needs
|
223 |
+
- Requires human oversight in clinical or therapeutic settings
|
224 |
+
- Performance varies based on device capabilities
|
225 |
+
|
226 |
+
## Use Cases & Applications
|
227 |
+
|
228 |
+
### Personal Wellness Apps
|
229 |
+
- Daily emotional check-ins and support
|
230 |
+
- Stress management and coping strategies
|
231 |
+
- Mindfulness and meditation guidance
|
232 |
+
- Sleep improvement programs
|
233 |
+
|
234 |
+
### Productivity Applications
|
235 |
+
- Task management and prioritization
|
236 |
+
- Goal setting and achievement tracking
|
237 |
+
- Time management and scheduling
|
238 |
+
- Workflow optimization
|
239 |
+
|
240 |
+
### Healthcare Integration
|
241 |
+
- Mental health screening support (with professional oversight)
|
242 |
+
- Therapeutic homework assistance
|
243 |
+
- Between-session support for therapy clients
|
244 |
+
- Wellness program enhancement
|
245 |
+
|
246 |
+
### Enterprise Solutions
|
247 |
+
- Employee wellness programs
|
248 |
+
- Productivity coaching platforms
|
249 |
+
- Stress management in workplace
|
250 |
+
- Work-life balance support
|
251 |
+
|
252 |
+
## Citation & License
|
253 |
+
|
254 |
+
### Citation
|
255 |
+
```bibtex
|
256 |
+
@model{auramind2025,
|
257 |
+
title={AuraMind: Smartphone Dual-Mode AI Companion for Mental Health and Productivity},
|
258 |
+
author={Zail AI},
|
259 |
+
year={2025},
|
260 |
+
url={https://huggingface.co/zail-ai/Auramind},
|
261 |
+
license={MIT}
|
262 |
+
}
|
263 |
+
```
|
264 |
+
|
265 |
+
### License
|
266 |
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
267 |
+
|
268 |
+
---
|
269 |
+
|
270 |
+
*AuraMind - Empowering mental wellness and productivity through accessible AI technology.*
|