Downloads · 30 days
19
5% of all-time downloads
sampathmannam/nilamind-gemma-3-4b-GGUF
nilamind-gemma-3-4b-GGUF is a text generation model from sampathmannam. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as gemma.
⚠️ 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…
Downloads · 30 days
19
5% of all-time downloads
All-time downloads
416
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.5 GB · 100%
From the Hugging Face model README
⚠️ 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.
A QLoRA fine-tune of 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.
It is shared as a research artifact — so others can study the recipe, reproduce it, and learn from its failure modes — not as a deployable mental-health assistant.
[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. |
Evaluated MindEval-style across 5 clinical-communication axes, with Claude used only as the judge/patient baseline (evaluating against, never training on — per Anthropic's terms).
hf download sampathmannam/nilamind-gemma-3-4b-GGUF v2-4b-Q4_K_M.gguf --local-dir .
# Research only. Add your own crisis-safety layer before ANY real use.
llama-cli -m v2-4b-Q4_K_M.gguf --chat-template gemma -cnv \
-p "You are Nila, a warm, brief, on-device mental-health companion. ..."
Built with Gemma. These weights are a derivative of Google's Gemma-3 and are governed by the Gemma Terms of Use and the Gemma Prohibited Use Policy — not a standard open-source license. By downloading or using them you agree to those terms (which prohibit harmful uses), and any redistribution must propagate them.
google/gemma-3-4b-it © Google, under the Gemma Terms.SAFETY.md for the crisis-safety posture this model is designed to sit behind.Shared in the spirit of open research. If you build on it: keep a real safety layer, run it with a seeded assistant greeting (its deployment shape), and don't present it as a usable therapist.