cardiffnlp/tweet_eval
Viewer • Updated • 201k • 38k • 143
How to use aXhyra/hate_trained_42 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="aXhyra/hate_trained_42") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("aXhyra/hate_trained_42")
model = AutoModelForSequenceClassification.from_pretrained("aXhyra/hate_trained_42")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("aXhyra/hate_trained_42")
model = AutoModelForSequenceClassification.from_pretrained("aXhyra/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.4835 | 1.0 | 563 | 0.4855 | 0.7556 |
| 0.3277 | 2.0 | 1126 | 0.5354 | 0.7704 |
| 0.2112 | 3.0 | 1689 | 0.6870 | 0.7751 |
| 0.1384 | 4.0 | 2252 | 0.8994 | 0.7712 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aXhyra/hate_trained_42")