Text Classification
Transformers
PyTorch
Safetensors
English
empathy_classifier
feature-extraction
empathy
mental-health
psychology
custom_code
Instructions to use RyanDDD/empathy-mental-health-reddit-ER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RyanDDD/empathy-mental-health-reddit-ER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="RyanDDD/empathy-mental-health-reddit-ER", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RyanDDD/empathy-mental-health-reddit-ER", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "EmpathyModel" | |
| ], | |
| "attn_heads": 1, | |
| "auto_map": { | |
| "AutoConfig": "modeling_empathy.EmpathyModelConfig", | |
| "AutoModel": "modeling_empathy.EmpathyModel" | |
| }, | |
| "empathy_num_labels": 3, | |
| "empathy_type": "ER", | |
| "hidden_dropout_prob": 0.2, | |
| "hidden_size": 768, | |
| "max_length": 64, | |
| "model_type": "empathy_classifier", | |
| "rationale_num_labels": 2, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.44.2" | |
| } | |