Downloads · 30 days
30
3% of all-time downloads
Kiran2004/GPT2_MentalHealth_ChatBot
GPT2_MentalHealth_ChatBot is a text generation model from Kiran2004. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
30
3% of all-time downloads
All-time downloads
986
Public
Parameters
124M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of openai-community/gpt2 on an MentalHealthConversational dataset. It is designed to generate text based on provided depression related prompts and can be used for a variety of natural language generation tasks. It's been trained on question-answer pairs, including unanswerable questions, for the task of Depression related Conversations for 10 Epochs and obtained following loss:
The model's performance can be evaluated using various metrics such as F1 score, BLEU score, and ROUGE score.
from transformers import pipeline, GPT2Tokenizer, GPT2LMHeadModel
# Load tokenizer and model
model_name = "Kiran2004/GPT2_MentalHealth_ChatBot"
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = GPT2LMHeadModel.from_pretrained(model_name)
# Generate text
generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
prompt = "Your prompt goes here"
output = generator(prompt, max_length=50, num_return_sequences=1)
print(output[0]["generated_text"])
The following hyperparameters were used during training: