Downloads · 30 days
0
KARTIK008/gemma-2b-empathy-lora
gemma-2b-empathy-lora is a machine learning model from KARTIK008. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
--- language: - en libraryname: peft basemodel: google/gemma-2-2b-it tags: - lora - peft - empathy - mental-health - conversational - chat ---
Downloads · 30 days
0
Access
Public
Updated Jan 31, 2026
Repo size
51.4 MB
Likes
0
Public
Click a slice to open those files.
.json34.4 MB · 67%
From the Hugging Face model README
language:
This repository contains a LoRA (Low-Rank Adaptation) adapter fine-tuned on top of the google/gemma-2-2b-it base model to improve empathetic and emotionally supportive conversational responses.
The adapter modifies the response style and tone of the base model without altering its underlying knowledge or reasoning capabilities.
This model is intended as a supportive conversational assistant, not as a replacement for professional mental health care.
google/gemma-2-2b-itOnly the LoRA adapter weights are provided in this repository.
The base model must be loaded separately.
This adapter was trained using LoRA (Low-Rank Adaptation) via the PEFT framework.
This approach allows efficient fine-tuning on limited compute while preserving base model performance.
Two publicly available datasets were combined to balance emotional sensitivity and professional tone:
Approximately 12,000 processed dialogue pairs were used for training.
No dataset files are redistributed in this repository.
Training converged stably without divergence or overfitting.
This model is intended for:
This model must NOT be used for:
Applications should implement external safety checks and escalation logic.
Users are responsible for deploying this model responsibly.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it")
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-2b-it")
model = PeftModel.from_pretrained(
base_model,
"<your-username>/<your-repo-name>"
)
model.eval()