nyu-mll/glue
Viewer • Updated • 1.49M • 420k • 522
How to use pszemraj/electra-small-discriminator-CoLA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="pszemraj/electra-small-discriminator-CoLA") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pszemraj/electra-small-discriminator-CoLA")
model = AutoModelForSequenceClassification.from_pretrained("pszemraj/electra-small-discriminator-CoLA", device_map="auto")This model is a fine-tuned version of google/electra-small-discriminator on the GLUE COLA dataset. It achieves the following results on the evaluation set:
trying to optimize accuracy/speed:
{
"epoch": 8.0,
"eval_loss": 0.4402828514575958,
"eval_matthews_correlation": 0.5510400717227824,
"eval_runtime": 0.9341,
"eval_samples": 1043,
"eval_samples_per_second": 1116.545,
"eval_steps_per_second": 70.654
}
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|---|---|---|---|---|
| 0.6139 | 1.0 | 17 | 0.5997 | 0.0 |
| 0.5315 | 2.0 | 34 | 0.4890 | 0.5154 |
| 0.4244 | 3.0 | 51 | 0.4469 | 0.5433 |
| 0.3568 | 4.0 | 68 | 0.4403 | 0.5510 |
| 0.319 | 5.0 | 85 | 0.4517 | 0.5654 |
| 0.2887 | 6.0 | 102 | 0.4656 | 0.5728 |
| 0.2771 | 7.0 | 119 | 0.4558 | 0.5883 |
| 0.2729 | 8.0 | 136 | 0.4569 | 0.5858 |
Base model
google/electra-small-discriminator