stanfordnlp/sst2
Viewer • Updated • 70k • 30k • 162
How to use thawait/distilbert-base-uncased-finetuned-sst2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="thawait/distilbert-base-uncased-finetuned-sst2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("thawait/distilbert-base-uncased-finetuned-sst2")
model = AutoModelForSequenceClassification.from_pretrained("thawait/distilbert-base-uncased-finetuned-sst2")This model is a fine-tuned version of distilbert-base-uncased on an unknown 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 |
|---|---|---|---|---|
| 0.1310 | 1.0 | 4210 | 0.3863 | 0.9060 |
| 0.1051 | 2.0 | 8420 | 0.3819 | 0.8991 |
| 0.0686 | 3.0 | 12630 | 0.3867 | 0.9094 |
| 0.0413 | 4.0 | 16840 | 0.4998 | 0.9106 |
| 0.0247 | 5.0 | 21050 | 0.5736 | 0.9071 |
Base model
distilbert/distilbert-base-uncased