Downloads · 30 days
27
84% of all-time downloads
Funk888/gemma-empathy-lora
gemma-empathy-lora is a text generation model from Funk888. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as gemma.
A small LoRA adapter that tunes google/gemma-3-27b-it toward warmer, more empathetic conversational responses. Trained on 1 June 2026 as the first component of MindMirror, a Thai voice companion for CBT-style emotiona…
Downloads · 30 days
27
84% of all-time downloads
All-time downloads
32
Public
Repo size
4.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors3.3 GB · 67%
From the Hugging Face model README
A small LoRA adapter that tunes google/gemma-3-27b-it toward warmer, more empathetic
conversational responses. Trained on 1 June 2026 as the first component of MindMirror, a
Thai voice companion for CBT-style emotional support.
Status: early proof-of-concept. Not evaluated. Not recommended for use. The training set was very small and no held-out evaluation was run. This adapter is published for transparency about the project's development history, not as a usable model.
MindMirror needs two things that are trained separately: a model that sounds like a counselor, and a model that can hear Thai speech.
Ultravox freezes the LLM backbone and trains only the audio adapter, which means all personality and conversational behaviour has to live in the backbone itself. So the plan was to develop and validate the counseling behaviour entirely in text first, then merge that adapter into Gemma and use the merged model as the Ultravox backbone.
This adapter is the text-only half of that plan — the first attempt at it.
| Type | LoRA adapter (PEFT) |
| Base model | google/gemma-3-27b-it |
| Task | causal language modeling |
| Rank / alpha | r=16, α=32 |
| Dropout | 0.05 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Modality | text only (no audio) |
| Steps | 228 (3 epochs) |
| Batch size | 1 per device |
| Learning rate | 2e-4 |
| Loss | 33.03 → 3.14 |
| Mean token accuracy | 0.469 → 0.886 |
| Date | 1 June 2026 |
Working back from steps and epochs, the training set was on the order of ~76 examples. That is small enough that the accuracy figure above should be read as fitting the training data, not as a measure of generalization.
CBT and emotional-support dialogue data. The exact corpus used for this run was not recorded at the time, so it is not stated here rather than guessed. Candidate sources considered during this phase of the project were CACTUS, ESConv and EmpatheticDialogues, with Thai translation applied.
from transformers import AutoModelForCausalLM
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("google/gemma-3-27b-it", device_map="auto")
model = PeftModel.from_pretrained(base, "Funk888/gemma-empathy-lora")
To use as an Ultravox backbone, merge into bf16 weights first — a LoRA cannot be merged directly into a 4-bit or AWQ-quantized model:
merged = model.merge_and_unload()
None. No held-out set, no baseline, no human rating. Training loss and token accuracy both improved, but with a training set this small neither number distinguishes learning from memorization.
Metrics that would be meaningful for a model like this:
Base model is google/gemma-3-27b-it, distributed under the Gemma Terms of Use, which apply to
any use of this adapter with that backbone.
Built with PEFT 0.14.0.
Funk Jaitus (@Funk888)