OCD Therapist 27B v0.3
Model Description
A fine-tuned large language model designed to simulate supportive therapeutic conversations for individuals with Obsessive-Compulsive Disorder (OCD). The model applies evidence-based therapeutic techniques including Exposure and Response Prevention (ERP), Cognitive Behavioral Therapy (CBT), and Acceptance and Commitment Therapy (ACT).
โ ๏ธ Important Disclaimer: This model is not a replacement for professional mental health care. It is intended as a supplementary educational and self-help tool. If you are experiencing a mental health crisis, please contact a mental health professional or crisis service immediately.
Intended Use
Primary Use Cases
- Psychoeducation: Learning about OCD, its mechanisms, and evidence-based treatment approaches
- Supplementary Support: Additional support between professional therapy sessions
- Accessibility: Providing basic therapeutic guidance to those without immediate access to professional care
Out-of-Scope Uses
- Clinical diagnosis of OCD or any mental health condition
- Crisis intervention or suicide prevention
- Replacement for professional therapy or psychiatric care
- Treatment of severe or treatment-resistant OCD without professional oversight
Training
Base Model
This model is a fine-tuned derivative of google/gemma-3-27b-it, subject to the Gemma Terms of Use.
Training Data
This model was fine-tuned on arsoban/ocd-ds-v0.3, a curated synthetic dataset of therapeutic conversations for OCD.
The dataset was created through a three-stage pipeline:
Session Skeleton Generation: Claude 3.7 Sonnet generated structured therapy session outlines containing patient backgrounds, symptom profiles, presenting concerns, and therapeutic approach notes.
Conversation Expansion: Gemini 2.5 Flash expanded each skeleton into full multi-turn therapeutic dialogues with varied conversation lengths, patient presentation styles, and response patterns.
Human Curation: All generated conversations were manually reviewed and filtered for clinical accuracy, therapeutic appropriateness, and conversation quality.
See the dataset card for detailed methodology.
Capabilities
The model is designed to:
- โ Provide psychoeducation about OCD and its treatment
- โ Explain evidence-based techniques (ERP, CBT, ACT, mindfulness)
- โ Offer supportive, empathetic responses to OCD-related concerns
- โ Help users understand the difference between obsessions and compulsions
- โ Guide users through basic therapeutic exercises
- โ Normalize the OCD experience without providing reassurance (which reinforces OCD)
- โ Recognize its limitations and recommend professional help when appropriate
Limitations
Known Limitations
- Not Clinically Validated: This model has not undergone clinical trials or validation studies
- Synthetic Training Data: The model was trained on synthetic conversations, which may not capture all nuances of real therapeutic interactions
- OCD Subtype Coverage: Performance may vary across different OCD subtypes
- No Crisis Training: The model is not specifically trained for crisis intervention
- No Personalization: The model does not remember previous conversations or adapt to individual users over time
- Potential for Hallucination: Like all LLMs, this model may generate plausible-sounding but incorrect information
Safety Considerations
- The model should always be presented with clear disclaimers about its limitations
- Users should be encouraged to seek professional help for diagnosis and treatment
- The model should not be the sole source of mental health support
- Deployment should include appropriate content filtering and safety measures
Qualitative Assessment
- Reviewed for clinical accuracy by domain-informed curator
- Tested for appropriate therapeutic boundaries
- Evaluated for harmful or inappropriate responses
Demo
A live demo is available at: https://ocd-therapist.codebyars.dev/
The demo is a simple chat interface where users can interact with the model. No authentication or conversation persistence is implemented.
Demo Infrastructure: Hosted on RunPod Serverless using vLLM Worker
Usage
With Transformers pipeline API
from transformers import pipeline
import torch
pipe = pipeline(
"text-generation",
model="arsoban/ocd-therapist-27b-v0.3",
device="cuda",
torch_dtype=torch.bfloat16
)
messages = [
{"role": "system", "content": "You are an AI assistant specialized in providing evidence-based therapy for OCD (Obsessive-Compulsive Disorder) ..."},
{"role": "user", "content": "I keep having intrusive thoughts and I can't make them stop."}
]
pipe(text=messages)
Recommended System Prompt
You are an AI assistant specialized in providing evidence-based therapy for OCD (Obsessive-Compulsive Disorder). Your goal is to help patients understand their condition, learn effective coping strategies, and work towards recovery using proven therapeutic approaches like ERP and CBT. Listen carefully, ask clarifying questions when needed, and provide compassionate support while maintaining a professional therapeutic relationship.
Contributors
- Arsenii Pyvovarov โ Model development, training pipeline, technical infrastructure
- Sofiia Yarema โ Training data curation, quality review, domain validation
Acknowledgments
- Training data generated with Claude 3.7 Sonnet (Anthropic) and Gemini 2.5 Flash (Google)
Citation
@model{ocd_therapist_27b_v03,
author = {Pyvovarov, Arsenii and Yarema, Sofiia},
title = {OCD Therapist 27B v0.3},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/arsoban/ocd-therapist-27b-v0.3}
}
Contact
For questions, issues, or collaboration inquiries, please open an issue on this repository or contact [email protected].
License
This model is distributed under the Gemma Terms of Use.
- Downloads last month
- 33