Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-generation
|
| 4 |
+
- transformers
|
| 5 |
+
- causal-lm
|
| 6 |
+
- mindease
|
| 7 |
+
- mental-health
|
| 8 |
+
- hf-inference-api
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# **🧠 MindEase-Assistant: A Mental Health AI Assistant**
|
| 12 |
+
|
| 13 |
+
This is a fine-tuned **TinyLlama 1.1B** model built to assist users with mental health support by generating thoughtful and empathetic responses.
|
| 14 |
+
|
| 15 |
+
## **📌 Model Details**
|
| 16 |
+
|
| 17 |
+
### **Model Description**
|
| 18 |
+
- **Developed by:** [Tezodipta]
|
| 19 |
+
- **Finetuned from model:** TinyLlama-1.1B
|
| 20 |
+
- **Language:** English
|
| 21 |
+
- **License:** Apache 2.0
|
| 22 |
+
- **Intended Use:** Text-based mental health support & guidance
|
| 23 |
+
- **Model Type:** Causal Language Model (LLM)
|
| 24 |
+
|
| 25 |
+
## **⚡️ How to Use**
|
| 26 |
+
This model can be used with the `transformers` library:
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 30 |
+
|
| 31 |
+
model_name = "tezodipta/MindEase-Assistant"
|
| 32 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 33 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 34 |
+
|
| 35 |
+
input_text = "I feel anxious, what should I do?"
|
| 36 |
+
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
|
| 37 |
+
|
| 38 |
+
output = model.generate(input_ids, max_length=150)
|
| 39 |
+
print(tokenizer.decode(output[0], skip_special_tokens=True))
|