Text Classification
Transformers
Safetensors
roberta
mental-health
multi-label
mental-roberta-base
text-embeddings-inference
Instructions to use mahir2021/mental-roberta-depEMO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mahir2021/mental-roberta-depEMO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mahir2021/mental-roberta-depEMO")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mahir2021/mental-roberta-depEMO") model = AutoModelForSequenceClassification.from_pretrained("mahir2021/mental-roberta-depEMO", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download hyperparameters.json from mahir2021/mental-roberta-depEMO: direct link, hf CLI and curl.
- Browser
- Download file 168 Bytes
-
https://huggingface.co/mahir2021/mental-roberta-depEMO/resolve/main/hyperparameters.json
- Command line
-
hf download hf://mahir2021/mental-roberta-depEMO/hyperparameters.json
-
curl -L -o hyperparameters.json https://huggingface.co/mahir2021/mental-roberta-depEMO/resolve/main/hyperparameters.json
168 Bytes
| { | |
| "seed": 42, | |
| "max_len": 256, | |
| "hidden_dim": 256, | |
| "dropout": 0.3, | |
| "batch_train": 16, | |
| "batch_eval": 32, | |
| "epochs": 5, | |
| "lr": 2e-05, | |
| "weight_decay": 0.01 | |
| } |