Downloads · 30 days
12
3% of all-time downloads
ntsmarkv/bygheart-empathy-llama3.1-8b
bygheart-empathy-llama3.1-8b is a text generation model from ntsmarkv. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama3.1.
Achieved 4.54/5 empathy score - exceeding production targets!
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
360
Public
Repo size
185 MB
Likes
4
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
Achieved 4.54/5 empathy score - exceeding production targets!
This is a fine-tuned version of Llama 3.1 8B Instruct, specifically optimized for empathetic conversations and emotional support. The model has been trained using the BygHeart empathy framework across 5 key dimensions:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
# Load BygHeart empathy adapter
model = PeftModel.from_pretrained(base_model, "ntsmarkv/bygheart-empathy-llama3.1-8b")
# Generate empathetic response
prompt = '''<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are BygHeart, an empathetic AI specialized in providing emotional support.<|eot_id|><|start_header_id|>user<|end_header_id|>
I'm feeling overwhelmed with work stress.<|eot_id|><|start_header_id|>assistant<|end_header_id|>
'''
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
This model is designed for:
@model{bygheart-empathy-llama3.1-8b,
title={BygHeart Empathy Model - Llama 3.1 8B},
author={BygHeart Team},
year={2024},
url={https://huggingface.co/ntsmarkv/bygheart-empathy-llama3.1-8b}
}
This model is based on Llama 3.1 and follows the same license terms.