cardiffnlp/tweet_eval
Viewer • Updated • 201k • 37.5k • 143
How to use pietrotrope/hate_trained with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="pietrotrope/hate_trained") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pietrotrope/hate_trained")
model = AutoModelForSequenceClassification.from_pretrained("pietrotrope/hate_trained")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pietrotrope/hate_trained")
model = AutoModelForSequenceClassification.from_pretrained("pietrotrope/hate_trained")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.4767 | 1.0 | 2250 | 0.5334 | 0.7717 |
| 0.4342 | 2.0 | 4500 | 0.7633 | 0.7627 |
| 0.3813 | 3.0 | 6750 | 0.9452 | 0.7614 |
| 0.3118 | 4.0 | 9000 | 0.9661 | 0.7730 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="pietrotrope/hate_trained")