stanfordnlp/sst2
Viewer • Updated • 70k • 26.6k • 161
How to use VityaVitalich/bert-base-cased-sst2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="VityaVitalich/bert-base-cased-sst2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("VityaVitalich/bert-base-cased-sst2")
model = AutoModelForSequenceClassification.from_pretrained("VityaVitalich/bert-base-cased-sst2")This model is a fine-tuned version of bert-base-cased on the sst2 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.2267 | 1.0 | 527 | 0.2103 | 0.9140 |
| 0.1091 | 2.0 | 1054 | 0.2637 | 0.9174 |
| 0.0722 | 3.0 | 1581 | 0.2673 | 0.9174 |
| 0.0467 | 4.0 | 2108 | 0.2947 | 0.9266 |
| 0.0298 | 5.0 | 2635 | 0.3344 | 0.9209 |
Base model
google-bert/bert-base-cased