cardiffnlp/tweet_eval
Viewer • Updated • 201k • 35.4k • 141
How to use marcolatella/hate_trained_1234567 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="marcolatella/hate_trained_1234567") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcolatella/hate_trained_1234567")
model = AutoModelForSequenceClassification.from_pretrained("marcolatella/hate_trained_1234567")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcolatella/hate_trained_1234567")
model = AutoModelForSequenceClassification.from_pretrained("marcolatella/hate_trained_1234567")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.4835 | 1.0 | 563 | 0.4882 | 0.7534 |
| 0.3236 | 2.0 | 1126 | 0.5286 | 0.7590 |
| 0.2191 | 3.0 | 1689 | 0.6103 | 0.7717 |
| 0.1408 | 4.0 | 2252 | 0.7927 | 0.7751 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="marcolatella/hate_trained_1234567")