Downloads · 30 days
0
amirbhat/motivbot-multilingual-mdeberta-v1
motivbot-multilingual-mdeberta-v1 is a machine learning model from amirbhat. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model uses mDeBERTa‑v3‑base as backbone, with CLS+mean pooling and structured features (Age, Gender, PHQ‑9, RSES). It was trained on a 5‑fold ensemble; this is the best single fold (Fold 4) with a validation tern…
Downloads · 30 days
0
Access
Public
Updated Jun 17, 2026
Repo size
592 MB
Likes
0
Public
Click a slice to open those files.
.bin576 MB · 97%
From the Hugging Face model README
This model uses mDeBERTa‑v3‑base as backbone, with CLS+mean pooling and structured features (Age, Gender, PHQ‑9, RSES).
It was trained on a 5‑fold ensemble; this is the best single fold (Fold 4) with a validation ternary macro‑F1 of 0.6538.
import torch
import json
from transformers import AutoTokenizer
from modeling import MentalHealthClassifierV6
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
with open("model_config.json") as f:
config = json.load(f)
with open("preprocess_stats.json") as f:
stats = json.load(f)
model = MentalHealthClassifierV6(model_name=config["model_name"])
model.load_state_dict(torch.load("pytorch_model.bin", map_location=device))
model.to(device).eval()
tokenizer = AutoTokenizer.from_pretrained(".")
# Normalise structured features using stats:
age_norm = (age - stats['num_mean']['Age']) / stats['num_std']['Age']
# ... similarly for PHQ9, RSES, Gender