Downloads · 30 days
17
12% of all-time downloads
howardbaik/gemma-4-E4B-it-mentalchat16k
gemma-4-E4B-it-mentalchat16k is a image-text-to-text model from howardbaik. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers.
A supervised fine-tune of google/gemma-4-E4B-it on the MentalChat16K dataset, intended for research on empathetic conversational behavior in small instruction-tuned models.
Downloads · 30 days
17
12% of all-time downloads
All-time downloads
146
Public
Parameters
7.9B
15.9 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors15.9 GB · 100%
From the Hugging Face model README
A supervised fine-tune of google/gemma-4-E4B-it on the MentalChat16K dataset, intended for research on empathetic conversational behavior in small instruction-tuned models.
google/gemma-4-E4B-itShenLab/MentalChat16K — ~16K counselor-style conversational turns combining synthetic data and anonymized interview transcripts.Research into lightweight empathetic dialogue agents, evaluation of counseling-style response quality in small LLMs, and as a baseline for further alignment or safety work.
Users should assume the model is not safety-aligned for mental-health deployment and test extensively before any downstream use.
from transformers import AutoProcessor, AutoModelForImageTextToText
import torch
model_id = "howardbaik/gemma-4-E4B-it-mentalchat16k"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto"
)
messages = [
{"role": "user", "content": [{"type": "text", "text": "I've been feeling overwhelmed at work lately."}]},
]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt"
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
MentalChat16K (≈16K dialogues). Training and validation sets (70/30 split).
SFTTrainer with SFTConfiguse_reentrant=False)adamw_torch_fusedskip_prepare_dataset=True, remove_unused_columns=False)If you use this model, please cite the base model and dataset:
@misc{gemma4,
title = {Gemma 4},
author = {{Google DeepMind}},
year = {2026},
url = {https://huggingface.co/google/gemma-4-E4B-it}
}
@dataset{mentalchat16k,
title = {MentalChat16K},
author = {Shen Lab},
url = {https://huggingface.co/datasets/ShenLab/MentalChat16K}
}
Howard Baik — https://huggingface.co/howardbaik