cardiffnlp/tweet_eval
Viewer • Updated • 201k • 34.8k • 146
How to use austinmw/distilbert-base-uncased-finetuned-tweets-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="austinmw/distilbert-base-uncased-finetuned-tweets-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("austinmw/distilbert-base-uncased-finetuned-tweets-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("austinmw/distilbert-base-uncased-finetuned-tweets-sentiment", device_map="auto")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 | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.7126 | 1.0 | 713 | 0.6578 | 0.7185 | 0.7181 |
| 0.5514 | 2.0 | 1426 | 0.6249 | 0.7005 | 0.7046 |
| 0.4406 | 3.0 | 2139 | 0.7053 | 0.731 | 0.7296 |
| 0.3511 | 4.0 | 2852 | 0.7580 | 0.718 | 0.7180 |
| 0.2809 | 5.0 | 3565 | 0.8192 | 0.7295 | 0.7303 |