Text Classification
Transformers
TensorBoard
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run Sharpaxis/Mental-Health-RoBERTa on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Sharpaxis/Mental-Health-RoBERTa. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Sharpaxis/Mental-Health-RoBERTa on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Sharpaxis/Mental-Health-RoBERTa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sharpaxis/Mental-Health-RoBERTa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sharpaxis/Mental-Health-RoBERTa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sharpaxis/Mental-Health-RoBERTa") model = AutoModelForSequenceClassification.from_pretrained("Sharpaxis/Mental-Health-RoBERTa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Mental-Health-RoBERTa
This model is a fine-tuned version of FacebookAI/roberta-base on an Mental Health Issues detection dataset. It achieves the following results on the evaluation set:
- Loss: 0.3713
- F1: 0.8578
- Acc: 0.8573
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | F1 | Acc |
|---|---|---|---|---|---|
| 0.5312 | 1.0 | 1255 | 0.4397 | 0.8295 | 0.8287 |
| 0.3378 | 2.0 | 2510 | 0.3662 | 0.8535 | 0.8534 |
| 0.262 | 3.0 | 3765 | 0.3713 | 0.8578 | 0.8573 |
Framework versions
- Transformers 4.45.1
- Pytorch 2.4.0
- Datasets 3.0.1
- Tokenizers 0.20.0
Labels
'Normal':0,'Depression':1,'Suicidal':2,'Anxiety':3,'Bipolar':4,'Stress':5,'Personality disorder':6
- Downloads last month
- 16
Model tree for Sharpaxis/Mental-Health-RoBERTa
Base model
FacebookAI/roberta-base