PITA-Gemma-4-31B-it: language model for dialogue audit and clinical safety
2 min readupdated
PITA-Gemma-4-31B-it is a 31.27-billion-parameter language model built on google/gemma-4-31B-it. It is tailored for cross-platform dialogue auditing in mental health, clinical safety screening, and hotline pre-intake triage. The model is trained to recognize social and psychological constructs, verify ethical boundaries, and generate concise, structured responses. It is useful for researchers, support system developers, and quality assurance specialists working in psychological counseling.
Key features
- Cross-platform recognition: precise identification of 157 social work concepts in dialogues from both licensed therapists and community forums.
- Safety screening: improved detection of clinical and ethical violations without prior fine-tuning on such cases.
- Exact citation: high overlap with human-annotated empathy and support fragments in dialogues.
- Concise answers: optimized response length for hotline initial contact (averaging 49.4 words instead of the base model's 90.8).
What you can do
- Counseling audit: analyze text transcripts of sessions for adherence to professional standards.
- Safety check: automatically detect potential ethical boundary violations in assistant-user dialogues.
- Specialist training: use the model for case simulations and reviews during hotline counselor training.
- Cross-validation: apply the model alongside other architectures for dual quality control of text dialogues.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "JohnWang10086/PITA-Gemma-4-31B-it"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto"
)
messages = [
{
"role": "system",
"content": "You are a clinical social-work dialogue auditor. Return JSON.",
},
{
"role": "user",
"content": "Dialogue: Counselor: You can text my personal phone late tonight.",
},
]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Read more
DetailsBenchmarks: accurate skill transfer on AnnoMI (76.25% accuracy) and ESConv (75.14% accuracy), F1 for boundaries 0.895.
Hardware: requires a high-performance graphics card with bfloat16 support and sufficient VRAM for a 31B parameter model.
Limitations: not a medical device, does not replace specialists, and is not intended for standalone psychiatric diagnosis.










Comments