nyu-mll/glue
Viewer • Updated • 1.49M • 472k • 497
How to use gokuls/BERT-tiny-sst2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gokuls/BERT-tiny-sst2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gokuls/BERT-tiny-sst2")
model = AutoModelForSequenceClassification.from_pretrained("gokuls/BERT-tiny-sst2")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gokuls/BERT-tiny-sst2")
model = AutoModelForSequenceClassification.from_pretrained("gokuls/BERT-tiny-sst2")This model is a fine-tuned version of google/bert_uncased_L-2_H-128_A-2 on the glue 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.3914 | 1.0 | 4210 | 0.4383 | 0.8211 |
| 0.2577 | 2.0 | 8420 | 0.4422 | 0.8372 |
| 0.212 | 3.0 | 12630 | 0.5460 | 0.8085 |
| 0.1862 | 4.0 | 16840 | 0.5885 | 0.8245 |
| 0.1671 | 5.0 | 21050 | 0.7159 | 0.8096 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gokuls/BERT-tiny-sst2")