Downloads · 30 days
17
5% of all-time downloads
JaeJiMin/daily_hug
daily_hug is a text generation model from JaeJiMin. Use it when you need the model to write or continue text. The card lists the license as mit.
dailyhug is a conversational model designed to engage users in friendly, everyday conversations in Korean. While the model predominantly focuses on light and casual discussions, it is also capable of identifying signs…
Downloads · 30 days
17
5% of all-time downloads
All-time downloads
328
Public
Parameters
2.5B
5.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 99%
From the Hugging Face model README
daily_hug is a conversational model designed to engage users in friendly, everyday conversations in Korean. While the model predominantly focuses on light and casual discussions, it is also capable of identifying signs of serious mental health issues. When such signs are detected, the model will gently suggest that there may be an issue worth considering. This makes daily_hug both a supportive conversational partner and a helpful companion in times of need.
The model is based on the Gemma architecture and has been fine-tuned with a conversational dataset to make its responses friendly, natural, and empathetic. The dataset used is JaeJiMin/korean_chat_friendly.
The goal of daily_hug is to provide:
This model can be used for casual conversations with an added benefit of providing mental health awareness without making explicit suggestions or diagnosis.
The daily_hug model was fine-tuned using a combination of low-rank adaptation (LoRA) and the PeftModel from Hugging Face's transformers library. This approach allowed for efficient training on limited hardware resources without sacrificing model performance. The base model, google/gemma-2b-it, was adapted to engage in casual Korean conversations with added empathy and mental health awareness.
daily_hug was the google/gemma-2b-it model, a large language model optimized for natural language generation tasks.paged_adamw_8bit) to handle large model parameters effectively.This training process allowed the model to balance efficiency with performance, creating a conversational agent that can engage in friendly dialogue while subtly detecting signs of mental distress when necessary.
To use the model, you can load it with the transformers library in Python as follows:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("jaewanlee/daily_hug")
model = AutoModelForCausalLM.from_pretrained("jaewanlee/daily_hug")
# Example input
input_text = "안녕! 오늘 하루 어땠어?"
# Tokenize and generate response
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
# Decode and print response
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
You can chat with the model using this simple script. The model responds to casual conversation and, if it detects signs of distress, may offer gentle mental health-related suggestions.
While the model can provide conversational support and suggest mental health awareness, it is not a replacement for professional mental health advice. If you or someone you know is experiencing severe mental health issues, please seek help from a qualified professional.
If you use this model, please cite the following:
@misc{daily_hug,
author = {Jaewan Lee and Sangji You},
title = {daily_hug: A Friendly Korean Chatbot with Mental Health Insights},
year = {2024},
url = {https://huggingface.co/jaewanlee/daily_hug}
}