Downloads · 30 days
0
alfiyahqthz/mentalbert-multiclass-das
mentalbert-multiclass-das is a machine learning model from alfiyahqthz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned for Depression/Anxiety/Stress classification.
Downloads · 30 days
0
Access
Public
Updated Feb 10, 2026
Repo size
878 MB
Likes
0
Public
Click a slice to open those files.
.bin439 MB · 100%
From the Hugging Face model README
Fine-tuned for Depression/Anxiety/Stress classification.
import torch
from transformers import AutoTokenizer
model = torch.load("pytorch_model.bin")
tokenizer = AutoTokenizer.from_pretrained("alfiyahqthz/mentalbert-multiclass-das")
text = "I feel depressed"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
logits = model(inputs['input_ids'], inputs['attention_mask'])
prediction = logits.argmax(dim=1).item()
# 0=Depression, 1=Anxiety, 2=Stress