Views
No views yet
⚠️ Research preview — NOT for clinical, production, or unsupervised use. This is an experimental, known-imperfect small model. It is not a medical device, not a therapist, and not a crisis service, and it has no built-in crisis-safety layer — it must sit behind a separate safety layer (see Limitations). Please read this whole card before using it.
google/gemma-3-4b-it,
distilled toward the warm, brief voice of Nila — the on-device companion in
NilaMind, a privacy-first mental-health app that runs
entirely on the phone. This repo holds the Q4_K_M GGUF (~2.3 GB) that the app loads on-device via
llama.cpp / llama-cpp-capacitor.[system, user] and no prior assistant turn — which the app never does. In the deployment prompt shape,
where Nila's greeting is seeded as the first assistant turn, replies stay in character (re-verified
with a 26-generation probe across single-turn, multi-turn, and minimal-reply conversations: 0
role-confusion). The training data was also checked — 0% of assistant turns are in the patient's
voice. Always run this model with a seeded assistant greeting, the way the app does.google/gemma-3-4b-it (Gemma-3, instruction-tuned).r=16, α=16, lr=1e-5, ≤3 epochs, bf16 (Gemma-3 requires bf16;
fp16 produces inf grads), plus a small (~3%) safety/refusal mix to preserve refusals after
fine-tuning (Qi et al. 2023, arXiv:2310.03693; Bianchi et al. 2023, arXiv:2309.07875).v2-4b-Q4_K_M.gguf (~2.3 GB), for llama.cpp / llama-cpp-capacitor; uses the Gemma-3
chat template.| Result | |
|---|---|
| ✅ Brevity | Replies ~0.37× the length of the prior 1B model (over-long replies fixed). |
| ✅ No overfitting | Validation loss converged (~0.22); no train/val divergence. |
| ✅ In-character (deployment shape) | Stays in Nila's voice when run with a seeded greeting; the earlier "~25–33% role-confusion" was a single-turn eval-harness artifact (training data is 0% patient-voice). See Limitations. |
| ⚠️ Repetitive | Formulaic/repetitive phrasing is the real practical limitation; small-model errors apply. |
1hf download sampathmannam/nilamind-gemma-3-4b-GGUF v2-4b-Q4_K_M.gguf --local-dir .
2
3# Research only. Add your own crisis-safety layer before ANY real use.
4llama-cli -m v2-4b-Q4_K_M.gguf --chat-template gemma -cnv \
5 -p "You are Nila, a warm, brief, on-device mental-health companion. ..."google/gemma-3-4b-it © Google, under the Gemma Terms.SAFETY.md for the crisis-safety posture this model is designed to sit behind.