TheCarBun/GPT-2-fine-tuned-mental-health
GPT-2 Fine-Tuned Mental Health Chatbot
 
๐ Model Description
This is a fine-tuned GPT-2 model specialized for mental health support conversations. It provides empathetic responses to users feeling distressed, stressed, or anxious. This model is trained on a custom dataset with carefully crafted conversational data.
๐ Use case: AI-driven mental health support chatbot. ๐ Base Model: GPT-2 ๐ Dataset: Custom dataset based on intents.json + Kaggle conversational dataset
๐ Model Files
๐๏ธ Training Details
The model was fine-tuned on Google Colab using the Hugging Face Transformers library. Training was performed using:
- Optimizer: AdamW
- Learning Rate:
5e-5 - Batch Size:
8 - Epochs:
5
๐ Training Performance
๐ How to Use the Model
You can load and use the model with Hugging Face Transformers:
from transformers import pipeline
# Load the model
chatbot = pipeline("text-generation", model="TheCarBun/GPT-2-fine-tuned-mental-health")
# Test the chatbot
user_input = "I feel so alone."
response = chatbot(f"User: {user_input} AI:", max_length=50)
print(response[0]['generated_text'])๐ Note: If running locally, install dependencies first:
pip install transformers torch๐ ๏ธ Future Improvements
- Expand dataset to cover more diverse mental health conversations
- Improve response coherence by fine-tuning with reinforcement learning
- Optimize model size for deployment on mobile devices
๐ License
This model is licensed under the Apache 2.0 License. You are free to use, modify, and distribute it with proper attribution.
๐ Hugging Face Model Link: GPT-2 Fine-Tuned Mental Health
โจ If you find this model useful, give it a star on Hugging Face! โญ
