Instructions to use Jayi2424/mhdc-mentalroberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jayi2424/mhdc-mentalroberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Jayi2424/mhdc-mentalroberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Jayi2424/mhdc-mentalroberta") model = AutoModelForSequenceClassification.from_pretrained("Jayi2424/mhdc-mentalroberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
MHDC MentalRoBERTa
Fine-tuned from mental/mental-roberta-base for 10-way classification of mental-health conditions and cyberbullying in social-media posts.
This repository is the retrained model: config, tokenizer, and weights from one fine-tuning run. It replaces an earlier upload that was only a converted checkpoint.
Held-out test set, 6,000 imbalanced posts: accuracy 0.912, macro F1 0.756.
Ajayi, Kachweka, Deku, and Aiken, PMLR 317:15-26, 2026. Best Paper, AAAI-26 AIMedHealth Bridge. https://proceedings.mlr.press/v317/ajayi26a.html
A screening aid with a person in the loop, not a diagnostic tool.
Labels
0 age_cb 1 anxiety 2 bipolar 3 ethnicity_cb 4 gender_cb 5 non_suicide 6 personality_disorder 7 religion_cb 8 stress 9 suicide
Use
from transformers import pipeline
clf = pipeline("text-classification", model="Jayi2424/mhdc-mentalroberta")
print(clf("I have not slept and I feel worthless."))
- Downloads last month
- 9
Model tree for Jayi2424/mhdc-mentalroberta
Base model
mental/mental-roberta-base