nyu-mll/glue
Viewer • Updated • 1.49M • 591k • 625
How to use gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola")
model = AutoModelForSequenceClassification.from_pretrained("gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola")
model = AutoModelForSequenceClassification.from_pretrained("gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola", device_map="auto")This model is a fine-tuned version of google/bert_uncased_L-4_H-256_A-4 on the GLUE COLA 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 | Matthews Correlation | Accuracy |
|---|---|---|---|---|---|
| 0.6358 | 1.0 | 34 | 0.6182 | 0.0 | 0.6913 |
| 0.6077 | 2.0 | 68 | 0.6184 | 0.0 | 0.6913 |
| 0.5982 | 3.0 | 102 | 0.6035 | 0.0 | 0.6913 |
| 0.575 | 4.0 | 136 | 0.5997 | 0.1458 | 0.7009 |
| 0.5391 | 5.0 | 170 | 0.5992 | 0.2018 | 0.7028 |
| 0.4999 | 6.0 | 204 | 0.6159 | 0.2088 | 0.7085 |
| 0.4722 | 7.0 | 238 | 0.5974 | 0.2782 | 0.7248 |
| 0.4437 | 8.0 | 272 | 0.5943 | 0.2651 | 0.7028 |
| 0.4204 | 9.0 | 306 | 0.6239 | 0.2618 | 0.7210 |
| 0.3956 | 10.0 | 340 | 0.6360 | 0.2655 | 0.7191 |
| 0.3671 | 11.0 | 374 | 0.6876 | 0.2592 | 0.7200 |
| 0.3546 | 12.0 | 408 | 0.7041 | 0.2665 | 0.7239 |
| 0.333 | 13.0 | 442 | 0.6849 | 0.2891 | 0.7229 |
Base model
google/bert_uncased_L-4_H-256_A-4
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gokulsrinivasagan/bert_uncased_L-4_H-256_A-4_cola")