Therapeutic register Qwen3-1.7B
locriani/therapeutic-register-qwen3-1.7b is a research artifact studying whether a small model can learn a plain, warm, DBT-style register without a system prompt. It is NOT a clinical tool and NOT for crisis use. The R9 crisis rules have NOT been clinician-reviewed. Emergency services and crisis lines are the real resource, including 988 in the US or the local emergency number.
The target is short, plain replies that validate first and match emotional intensity: steady support in a storm, coaching when calm, no agreement with absolutist or delusion-framed claims, no invented history, and a plain boundary for requests outside scope. This is a behavior target, not a guarantee. R1-R12 are in the dataset's SPEC.md.
Intended use and access
Use for research on register learning, instruction persistence and judge sensitivity with synthetic conversations. It is English and single-register; neither its tone nor its training establishes therapeutic competence. Do not use it for clinical decisions, diagnosis, medication advice, crisis response or replacing professional care.
Release state: this repository is public and ungated, so anyone can download it without a Hugging Face login (the owner removed the gating on Nov 1, 2026). Open access does not certify safety or clinician review.
R := this is a synthetic-data research artifact C := crisis rules have clinician review
S := clinical or crisis safety has been established O := the repository is public and ungated
1. R and not C [training provenance; project R9 review status]
2. Register evaluation does not establish S [evaluation measures code/judge adherence only]
3. O does not establish C or S [access settings control downloads, not clinical validation]
4. O [owner's command; Hugging Face repo settings, 2026-11-01]
∴ intended use is research; this model is not a clinical or crisis resource.
Run and evaluate
From the project checkout, with its pinned dependencies and Codex CLI configured, run:
python eval.py --behavior therapeutic --model locriani/therapeutic-register-qwen3-1.7b --eval-set <scenarios.jsonl> --compare-base --judge-model codex
Replace <scenarios.jsonl> with behaviors/therapeutic/scenarios/seed_scenarios.jsonl or behaviors/therapeutic/scenarios/heldout_scenarios.jsonl (also distributed in the dataset's eval/). The command generates replies, applies code checks, judges and compares with the pinned base. The repo is public and ungated, so no Hugging Face login is needed; an HF_TOKEN is optional and only raises download rate limits. --behavior therapeutic may be dropped: eval.py reads the behavior from the model's train_info.json, so python eval.py --model locriani/therapeutic-register-qwen3-1.7b --eval-set <path> works with two flags. It writes results and revision pins through eval.py; Codex judging uses gpt-6.1-sol.
For direct generation, use the Qwen3 chat template with enable_thinking=False, no behavior system prompt, and greedy decoding (do_sample=False). The merged tokenizer defaults thinking off. No-system-prompt behavior is what was trained and evaluated; short conflicting-system variants exist in the synthetic data, but arbitrary prompts can change behavior.
Training and pins
The final adapter is ther3_n4170: 4,170 training rows and 480 validation rows from locriani/therapeutic-register-data. Three waves of agent-written synthetic conversations from Codex, Gemini, Claude and Cursor providers were filtered turn by turn with code checks and the Codex judge, merged, deduplicated and filtered for evaluation overlap. The dataset card documents the split, rejects, license and teacher-terms caveat. No real therapy transcript or live user history was used.
QLoRA on Qwen3-1.7B: 3 epochs, learning rate 2e-4, seed 0, 4,170 rows, as recorded in train_info.json (source record: logs/curve/ther3_n4170_train_info.json). The project recipe uses a 4-bit NF4 base with bf16 compute and LoRA r=16, alpha=32, dropout 0.05 on q/k/v/o/gate/up/down projections; loss is on the last assistant reply and thinking is off. The published model merges the adapter into the base for plain Transformers loading.
Base model: Qwen/Qwen3-1.7B, revision 70d244cc86ccca08cf5af4e1e306ecf908b1ad5e. The weights commit is d38fc13cb57555ecf44164a73c3cac641023ac4c; pin it for reproduction. Evaluation judge: Codex gpt-6.1-sol.
Results
Exact figures below come from results/curve_table_therapeutic.md. Spec adherence is the full-pass rate on clean categories A,B,G,H; robustness is the full-pass rate on stress categories C,D,E,F,I,J,K. Intervals are Wilson 95%. There are 72 seed and 94 held-out scenarios. Stress counts all of C-K, including the I, J and K categories added later. The N=4,170 and GPT-6.1-sol rows pool three judge runs of one set of replies, so their denominators are tripled: 300 = 3 x 100 stress scenarios (seed + held-out), 171 = 3 x 57 held-out stress, 111 = 3 x 37 held-out clean. Single-run rows are not directly comparable by count, only by rate.
| Model / prompt | Eval slice | Clean: spec adherence | Stress: robustness |
|---|---|---|---|
| Untuned Qwen3-1.7B, no system prompt | Held-out, one judge run | 0/37 (0%) [0.00, 0.09] | 0/57 (0%) [0.00, 0.06] |
| Untuned Qwen3-1.7B, no system prompt | Seed, one judge run | 0/29 (0%) [0.00, 0.12] | 0/43 (0%) [0.00, 0.08] |
| Tuned Qwen3-1.7B, N=4,170, no system prompt | Seed + held-out, 3 judge runs pooled | 121/198 (61%) [0.54, 0.68] | 137/300 (46%) [0.40, 0.51] |
| Tuned Qwen3-1.7B, N=4,170, no system prompt | Held-out, 3 judge runs pooled | 68/111 (61%) [0.52, 0.70] | 85/171 (50%) [0.42, 0.57] |
| GPT-6.1-sol via Codex, rule prompt | Held-out, 3 judge runs pooled | 57/111 (51%) [0.42, 0.60] | 71/171 (42%) [0.34, 0.49] |
| GPT-6.1-sol via Codex, few-shot prompt | Held-out, 3 judge runs pooled | 72/111 (65%) [0.56, 0.73] | 77/171 (45%) [0.38, 0.53] |
| GPT-6.1-sol via Codex, structured prompt | Held-out, 3 judge runs pooled | 67/111 (60%) [0.51, 0.69] | 78/171 (46%) [0.38, 0.53] |
| GPT-6.1-sol via Codex, fullspec (30 KB protocol) prompt | Held-out, 3 judge runs pooled | 52/111 (47%) [0.38, 0.56] | 40/171 (23%) [0.18, 0.30] |
| GPT-6.1-sol via Codex, few-shot prompt | Seed, 3 judge runs pooled | 54/87 (62%) [0.52, 0.72] | 47/129 (36%) [0.29, 0.45] |
| GPT-6.1-sol via Codex, structured prompt | Seed, 3 judge runs pooled | 53/87 (61%) [0.50, 0.71] | 65/129 (50%) [0.42, 0.59] |
| Claude Opus 5.5, few-shot prompt | Held-out, 3 judge runs pooled | 34/111 (31%) [0.23, 0.40] | 56/171 (33%) [0.26, 0.40] |
| Gemini 4 Argon, few-shot prompt | Held-out, 3 judge runs pooled | 33/111 (30%) [0.22, 0.39] | 28/171 (16%) [0.12, 0.23] |
Honest reading: the tuned 1.7B model with no system prompt is level with the best prompted GPT-6.1-sol cells (few-shot and structured). Clean rate 61% against 61-65%; stress 46% against 41-48% pooled, and 50% against 45-46% held-out. All intervals overlap. No advantage over the best prompt is shown, and no claim of beating the prompted ceiling is made.
What fine-tuning did show: the untuned base scores 0%, the tuned model about 61% clean and 46% stress, so a 1.7B model with no prompt matches what a frontier model needs a few-shot or structured prompt to do. The 30 KB protocol prompt does worse than a one-paragraph prompt (stress 23% against 42-46% for GPT; the same direction for Opus and Gemini). Nothing, tuned or prompted, is near a 90% reliability bar, so prompting has a real ceiling and the tuned model sits at it, not above it.
The pooled counts are three Codex judge runs of one set of replies (judge noise only; generation is one sample), not three independent training or generation runs, so tripling judge decisions understates the true uncertainty. GPT rule, few-shot, structured and fullspec, Opus few-shot and Gemini few-shot have three judge runs; the other prompted cells in the project tables are single runs. Codex gpt-6.1-sol is also the judge, and the GPT cells share its family.
T := tuned pooled rates are level with the best prompted GPT cells O := their intervals overlap
W := evidence shows the tuned model beats the best prompt B := base reaches the tuned rate without tuning
1. T and O [results/curve_table_therapeutic.md and results/ablation_therapeutic.md]
2. Repeated judging reuses one set of replies [pooling note above]
3. not B [base 0/37 clean, 0/57 stress held-out]
4. O and reused replies do not establish W [limits of this comparison]
∴ tuning moved the base from 0% to about the best-prompt level; no advantage over prompting is shown.
Limits
Synthetic-only, English, single-register data and a small invented evaluation suite limit generalization. Replies can misread intensity, co-sign distortions, invent history, break scope boundaries or give unsafe advice. A warm tone can create unwarranted trust.
Codex gpt-6.1-sol both filtered the training data and judged evaluation. Cross-family judges agreed with its ingest verdicts on only 267 of 428 conversation turns (62%; behaviors/therapeutic/agreement.py), as recorded in the project README; absolute scores are judge-relative. No clinician assessment or real-world outcome study is claimed.
The R9 crisis rules have NOT been clinician-reviewed. This model is a research artifact, NOT a clinical tool and NOT for crisis use. Use real emergency services or crisis resources, including 988 in the US or the local emergency number, instead of relying on a generated reply.
License
Model weights: Apache-2.0, inherited from Qwen3. Dataset: CC BY 4.0. The dataset card's teacher-provider terms caveat still applies to reuse of generated replies; the project license does not waive those terms.