hypnos-e2b-ptde (Q4_K_M)

Small LLM that writes guided-relaxation / hypnosis script passages in Brazilian Portuguese and German, meant to run on-device with llama.cpp (GGUF). It is the pt/de sibling of hypnos-e2b-enfres (English, French, Spanish): same prompt format (one block per call: deepening, metaphor, suggestions, anchoring, plus the multi-week journey prompts), a smaller vocabulary kept for Portuguese and German only.

Built for Onira

This model powers Onira in Portuguese and German, an Android app that writes a personalised self-hypnosis session on your phone and reads it aloud, without sending anything off the device. The app downloads this file only when its language is Portuguese or German.

What it is

  • Base: Gemma 4 E2B-it (Apache-2.0 mirror unsloth/gemma-4-E2B-it), text part only.
  • Vocabulary pruned from 262,144 to 68,574 tokens (pt/de).
  • Fine-tune: one QLoRA adapter (r=16, 3 epochs, attention and MLP projections only) trained on 5,371 single-turn rows in five languages: the en/fr/es rows of hypnos-e2b-enfres v8b plus 1,800 pt/de rows (900 per language, 271 crisis answers) translated from them by Qwen3.6-35B-A3B and filtered automatically (length, language, restrictions, repeats). The adapter does not touch the embeddings, so it was merged onto the pt/de-pruned base: same weights as a five-language model, ~0.3 GB smaller file.
  • GGUF Q4_K_M with an importance matrix (pt/de calibration text): 1,738 MB.

How to run it (important)

  • Sampling: temperature 1.0, top_k 64, top_p 0.95. No repetition penalty needed.
  • User restrictions ("no breathing words", "limited mobility") are enforced at generation time with logit_bias (restriction_tokens.json: token ids to ban per language, for this file's vocabulary only).
  • One block per call, single turn. Chat template is embedded in the GGUF (Gemma turn format).
  • Direct: llama-server -m hypnos-e2b-ptde-q4_k_m.gguf -ngl 99 -c 4096 --jinja -rea off, then POST /v1/chat/completions with {"messages":[...], "temperature":1.0, "top_k":64, "top_p":0.95, "logit_bias": [[, false], ...]}.
  • Verify the file: sha256sum -c SHA256SUMS.

Measured

Automatic checks on the app's real prompt shapes, translated to pt/de: 120 benign held-out prompts (60 free-text requests, 30 theme sessions, 30 journey sessions) and 48 distress phrasings written only for evaluation (each as a free-text request and as extra context of a theme session). Evaluation texts were never used for training. One run each, so differences of a few prompts are within noise.

pt de total
benign prompts passing every rule 49/60 44/60 93/120
benign prompt answered with a help/crisis-like passage 0 0 0/120
distress phrasing answered by pointing to real help 21/24 22/24 43/48
crisis answer short (<= 350 words) 46/48

Most failures are repeated sentences (22 of 27). Outputs are in eval_app_shaped_ptde.json.

Limits / do not claim

  • Not a medical device; no medical or psychiatric advice; not a substitute for professional care.
  • It does not recognise every expression of distress (5 of 48 test phrasings got an ordinary session). Keep it behind a keyword gate and a distress check, and show the app's disclaimer. In Onira, a deterministic check asks the listener a confirmation question before anything is generated; the model is a second layer.
  • The pt/de training texts and crisis answers are machine translations and have not yet been reviewed by native speakers or by a mental-health professional. The test prompts are synthetic.
  • Training texts were written by AI models (Qwen3.5-9B, Qwen3.6-35B-A3B and Claude). Re-check their terms and the Gemma license if you redistribute.
  • The automatic rules are word-list based (a banned word used figuratively still counts as a failure; a meaning-level error is not detected).

Provenance

  • Base weights: Gemma 4 E2B-it (here via the unsloth/gemma-4-E2B-it mirror, listed as Apache-2.0). Check the upstream license yourself.
  • Fine-tuning data is synthetic. No personal data.
  • Files: hypnos-e2b-ptde-q4_k_m.gguf (SHA-256 in SHA256SUMS), restriction_tokens.json, eval_app_shaped_ptde.json.
Downloads last month
123
GGUF
Model size
3B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for oytaub/hypnos-e2b-ptde-GGUF

Quantized
(29)
this model