nyu-mll/glue
Viewer • Updated • 1.49M • 468k • 504
How to use pszemraj/electra-base-discriminator-CoLA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="pszemraj/electra-base-discriminator-CoLA") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pszemraj/electra-base-discriminator-CoLA")
model = AutoModelForSequenceClassification.from_pretrained("pszemraj/electra-base-discriminator-CoLA")This model is a fine-tuned version of google/electra-base-discriminator on the GLUE COLA dataset. It achieves the following results on the evaluation set:
Trying to find a decent optimum between accuracy/quality and inference speed.
{
"epoch": 8.0,
"eval_loss": 0.3541961908340454,
"eval_matthews_correlation": 0.6579677841732349,
"eval_runtime": 1.9552,
"eval_samples": 1043,
"eval_samples_per_second": 533.451,
"eval_steps_per_second": 33.756
}
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|---|---|---|---|---|
| 0.4004 | 1.0 | 67 | 0.3569 | 0.6340 |
| 0.2843 | 2.0 | 134 | 0.3542 | 0.6580 |
| 0.1228 | 3.0 | 201 | 0.4201 | 0.6412 |
| 0.0989 | 4.0 | 268 | 0.4780 | 0.6757 |
| 0.0681 | 5.0 | 335 | 0.4900 | 0.6925 |
| 0.0506 | 6.0 | 402 | 0.5837 | 0.6785 |
| 0.0093 | 7.0 | 469 | 0.6298 | 0.6652 |
| 0.0244 | 8.0 | 536 | 0.6292 | 0.6750 |