cardiffnlp/tweet_eval
Viewer • Updated • 201k • 35.4k • 140
How to use marcolatella/hate_trained_42 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="marcolatella/hate_trained_42") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcolatella/hate_trained_42")
model = AutoModelForSequenceClassification.from_pretrained("marcolatella/hate_trained_42")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcolatella/hate_trained_42")
model = AutoModelForSequenceClassification.from_pretrained("marcolatella/hate_trained_42")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.4833 | 1.0 | 563 | 0.4834 | 0.7543 |
| 0.3275 | 2.0 | 1126 | 0.5334 | 0.7755 |
| 0.2111 | 3.0 | 1689 | 0.6894 | 0.7674 |
| 0.1385 | 4.0 | 2252 | 0.8996 | 0.7665 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="marcolatella/hate_trained_42")