Downloads · 30 days
0
mcgowee/empathetic-t5
empathetic-t5 is a machine learning model from mcgowee. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Model type: t5-small fine-tuned for empathetic response generation Repository: https://huggingface.co/mcgowee/empathetic-t5 License: Apache-2.0
Downloads · 30 days
0
Access
Public
Updated Jun 8, 2025
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.pt968 MB · 57%
From the Hugging Face model README
Model type: t5-small fine-tuned for empathetic response generation
Repository: https://huggingface.co/mcgowee/empathetic-t5
License: Apache-2.0
Empathetic-T5 is a sequence-to-sequence model based on t5-small, fine-tuned to generate contextually appropriate empathetic replies given user input and an emotion label. fileciteturn1file2
Source dataset: empathetic_dialogues_v2 from Hugging Face (Adapting et al., 2023) fileciteturn1file2
Source fields:
chat_history: user utterances split into individual promptsemotion: emotion label associated with each promptTarget field:
system_response: the coach-like empathetic replyModel architecture: t5-small (Text-to-Text Transfer Transformer) fileciteturn1file2
Training script: train_t5.py
Hyperparameters:
num_train_epochs: 3eval_strategy: "epoch"Libraries:
transformersnumpyPreprocessing:
split_chat_into_pairs to break down multi-turn dialogues into (input, response) pairsTraining process: Model was trained on local or rented GPU; limited hyperparameter tuning was performed due to time constraints fileciteturn1file2
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
tokenizer = AutoTokenizer.from_pretrained("mcgowee/empathetic-t5")
model = AutoModelForSeq2SeqLM.from_pretrained("mcgowee/empathetic-t5")
empathic_pipeline = pipeline(
"text2text-generation",
model=model,
tokenizer=tokenizer,
device=0 # use -1 for CPU
)
prompt = "I just had a terrible day and nobody seems to care."
response = empathic_pipeline(prompt, max_length=64)
print(response[0]['generated_text'])
Intended uses:
Limitations & Risks:
@misc{mcgowee_empathetic-t5_2025,
title = {Empathetic-T5: T5 Model Fine-Tuned for Empathetic Response Generation},
author = {Earl McGowen (mcgowee)},
year = {2025},
howpublished = {\\url{https://huggingface.co/mcgowee/empathetic-t5}}
}