Instructions to use oytaub/hypnos-e2b-ptde-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use oytaub/hypnos-e2b-ptde-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Use Docker
docker model run hf.co/oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use oytaub/hypnos-e2b-ptde-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "oytaub/hypnos-e2b-ptde-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oytaub/hypnos-e2b-ptde-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
- Ollama
How to use oytaub/hypnos-e2b-ptde-GGUF with Ollama:
ollama run hf.co/oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use oytaub/hypnos-e2b-ptde-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use oytaub/hypnos-e2b-ptde-GGUF with Docker Model Runner:
docker model run hf.co/oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
- Lemonade
How to use oytaub/hypnos-e2b-ptde-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.hypnos-e2b-ptde-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use oytaub/hypnos-e2b-ptde-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use oytaub/hypnos-e2b-ptde-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "oytaub/hypnos-e2b-ptde-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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.
- Website: onirahypno.com
- Google Play: Onira on Google Play
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-itmirror, 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 inSHA256SUMS),restriction_tokens.json,eval_app_shaped_ptde.json.
- Downloads last month
- 123
4-bit