nyu-mll/glue
Viewer • Updated • 1.49M • 487k • 498
How to use JeremiahZ/bert-base-uncased-sst2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="JeremiahZ/bert-base-uncased-sst2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("JeremiahZ/bert-base-uncased-sst2")
model = AutoModelForSequenceClassification.from_pretrained("JeremiahZ/bert-base-uncased-sst2")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("JeremiahZ/bert-base-uncased-sst2")
model = AutoModelForSequenceClassification.from_pretrained("JeremiahZ/bert-base-uncased-sst2")This model is a fine-tuned version of bert-base-uncased on the GLUE 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.1668 | 1.0 | 2105 | 0.2513 | 0.9174 |
| 0.1119 | 2.0 | 4210 | 0.2478 | 0.9323 |
| 0.0699 | 3.0 | 6315 | 0.2764 | 0.9266 |
Base model
google-bert/bert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="JeremiahZ/bert-base-uncased-sst2")