Saltar al contenido
ModelVerificadoExterno
Abrir fuente

Cradle Dialogue Qwen3 32b 2epoch

A Qwen3-32B model fine-tuned for turn-level mental health crisis detection in multi-turn conversations. This is the best-performing checkpoint (epoch 2) from 3-epoch training, as reported in the CRADLE-Dialogue paper.

TipoText modelModelo baseQwen/Qwen3-32BVersiónRevision 05a3d22Publicador@SungJooCcalidad

Fuente del modelo

Tipo
Text model
Tamaño del archivo
Aún no registrado
Modelo base
Qwen/Qwen3-32B
Versión
vRevision 05a3d22
Actualizado
1 oct 2026
Publicador
@SungJoo
Descargas
24
Fuente
Hugging Face

Descripción de la fuente

cradle-dialogue-qwen3-32b-2epoch

A Qwen3-32B model fine-tuned for turn-level mental health crisis detection in multi-turn conversations. This is the best-performing checkpoint (epoch 2) from 3-epoch training, as reported in the CRADLE-Dialogue paper.

⚠️ Content Warning: This model is designed to detect sensitive topics including suicide ideation, self-harm, rape, domestic violence, and child abuse.

Model Description

Full fine-tune of Qwen/Qwen3-32B, trained on the CRADLE-Dialogue synthetic training corpus — 3,058 dialogues (48,557 turns) generated from Reddit posts via GPT-5 and annotated with structured Alert–Confirm labels.

Given a multi-turn dialogue and the model's own previous predictions, the model assigns a crisis label to the current user turn only.

Performance

Evaluated on the CRADLE-Dialogue test set (600 clinician-annotated dialogues):

SettingMetricScore
Turn-LevelMicro F151.31
Turn-LevelMacro F154.96
Turn-LevelMicro Recall54.99
Dialogue-LevelMicro F168.88
Dialogue-LevelMacro F169.29
Dialogue-Level (Confirm Only)Micro F176.03

Outperforms all open-source baselines and achieves competitive results against Claude-4.5-Sonnet and GPT-5.1.

Output Format

The model outputs exactly one line per inference call:

none
alert_ongoing
alert_past
confirm_SI_passive_ongoing
confirm_SH_past
confirm_DV_ongoing; confirm_RA_past   # multi-label, separated by "; "

Inference

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "SungJoo/cradle-dialogue-qwen3-32b-2epoch"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)

SYSTEM_MSG = (
    "You are a clinical dialogue safety annotator. "
    "Return EXACTLY ONE LINE: the label(s) or 'none'. "
    "No commentary, no reasoning, no markdown."
)

# Build your prompt using the full evaluation prompt template from the paper.
# At each turn, provide: full dialogue history + model's previous predictions + current user turn.
messages = [
    {"role": "system", "content": SYSTEM_MSG},
    {"role": "user", "content": YOUR_PROMPT},
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=64,
        do_sample=False,
    )

response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response.strip())

Training Details

ConfigValue
Base modelQwen/Qwen3-32B
Fine-tuning methodFull fine-tune (no LoRA)
Total epochs3 (this checkpoint: epoch 2, best val loss)
Learning rate5e-6
Batch size1 (per device)
Gradient accumulation16
Max sequence length4096
Precisionbfloat16
Hardware2× NVIDIA H200
LR schedulerCosine with warmup (ratio=0.05)

Intended Use

This model is intended for research purposes in clinical NLP and crisis detection. It is not a substitute for professional mental health assessment or crisis intervention.

Related Resources

Fuentes

1 fuente
Hugging FacePrincipalVersión 05a3d22dbf8a5c3b7f3a2eb279b1ee57b0dc30c1
huggingface.co/SungJoo/cradle-dialogue-qwen3-32b-2epoch/tree/05a3d22dbf8a5c3b7f3a2eb279b1ee57b0dc30c1

Verificado 1 oct

Extractos de fuentes

3 extractos

--- language: - en license: apache-2.0 base_model: Qwen/Qwen3-32B tags: - mental-health - crisis-detection - dialogue - clinical-nlp - fine-tuned - qwen3 datasets: - SungJoo/Cradle-Dialogue task_categories: - text-classification task_ids: - multi-label-classification --- # cradle-dialogue-qwen3-32b-2epoch A Qwen3-32B model fine-tuned for **turn-level mental health crisis detection** in multi-turn conversations. This is the best-performing checkpoint (epoch 2) from 3-epoch training, as reported in the CRADLE-Dialogue paper. > ⚠️ **Content Warning:** This model is designed to detect sensitive topics including suicide ideation, self-harm, rape, domestic violence, and child abuse. ## Model Description Full fine-tune of [Qwen/Qwen3-32B](https://huggingface.co/Qwen/Qwen3-32B), trained on the CRADLE-Dialogue synthetic training corpus — 3,058 dialogues (48,557 turns) generated from Reddit posts via GPT-5 and annotated with structured Alert–Confirm labels. Given a multi-turn dialogue and the model's own previous predictions, the model assigns a crisis label to the **current user turn only**. ## Performance Evaluated on the CRADLE-Dialogue test set (600 clinician-annotated dialogues): | Setting | Metric | Score | |---|---|---| | Turn-Level | Micro F1 | **51.31** | | Turn-Level | Macro F1 | 54.96 | | Turn-Level | Micro Recall | 54.99 | | Dialogue-Level | Micro F1 | **68.88** | | Dialogue-Level | Macro F1 | 69.29 | | Dialogue-Level (Confirm Only) | Micro F1 | **76.03** | Outperforms all open-source baselines and achieves competitive results against Claude-4.5-Sonnet and GPT-5.1. ## Output Format The model outputs **exactly one line** per inference call: ``` none alert_ongoing alert_past confirm_SI_passive_ongoing confirm_SH_past confirm_DV_ongoing; confirm_RA_past # multi-label, separated by "; " ``` ## Inference ```python from transformers import AutoTokenizer, AutoModelForCausalLM import torch model_id = "SungJoo/cradle-dialogue-qwen3-32b-2epoch" tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True, ) SYSTEM_MSG = ( "You are a clinical dialogue safety annotator. " "Return EXACTLY ONE LINE: the label(s) or 'none'. " "No commentary, no reasoning, no markdown." ) # Build your prompt using the full...

Source context: 24 downloads · 0 likes · Repo SungJoo/cradle-dialogue-qwen3-32b-2epoch

Source context: 3 downloads · 0 likes · Repo SungJoo/cradle-dialogue-qwen3-32b-2epoch