Mental-Health
Collection
4 items • Updated
How to use AlexanderHolmes0/mental_health_model_long with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="AlexanderHolmes0/mental_health_model_long") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("AlexanderHolmes0/mental_health_model_long")
model = AutoModelForSequenceClassification.from_pretrained("AlexanderHolmes0/mental_health_model_long")This model is a fine-tuned version of allenai/longformer-base-4096 on the None dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 0.7146 | 1.0 | 1077 | 0.7423 | 0.6509 |
Base model
allenai/longformer-base-4096