cardiffnlp/tweet_eval
Viewer • Updated • 201k • 35.4k • 141
How to use marcolatella/hate_trained_31415 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="marcolatella/hate_trained_31415") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcolatella/hate_trained_31415")
model = AutoModelForSequenceClassification.from_pretrained("marcolatella/hate_trained_31415")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcolatella/hate_trained_31415")
model = AutoModelForSequenceClassification.from_pretrained("marcolatella/hate_trained_31415")This model is a fine-tuned version of distilbert-base-uncased on the tweet_eval 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 | Validation Loss | F1 |
|---|---|---|---|---|
| 0.4817 | 1.0 | 563 | 0.4975 | 0.7678 |
| 0.3311 | 2.0 | 1126 | 0.4965 | 0.7773 |
| 0.2303 | 3.0 | 1689 | 0.7102 | 0.7613 |
| 0.1429 | 4.0 | 2252 | 0.8507 | 0.7719 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="marcolatella/hate_trained_31415")