peterua/OmniGEC-ModelTraining
Viewer • Updated • 179k • 23 • 2
How to use lapa-llm/gec-score-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="lapa-llm/gec-score-model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("lapa-llm/gec-score-model")
model = AutoModelForSequenceClassification.from_pretrained("lapa-llm/gec-score-model")This model is a fine-tuned version of intfloat/multilingual-e5-base on the peterua/OmniGEC-ModelTraining dataset.
Training script is available here: https://github.com/lapa-llm/lapa-llm/blob/main/pretraining/quality-classifiers/gec_score.py
It achieves the following results on the evaluation set:
This model outputs a score how grammatical correct is the provided text.
Pretraining data filtering.
Training script is located here: https://github.com/lapa-llm/lapa-llm/blob/main/pretraining/quality-classifiers/gec_score.py
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 Macro | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 0 | 0 | 0.2963 | 0.5503 | 0.5013 | 0.3409 | 0.5013 |
| 0.2297 | 7.4074 | 400 | 0.2287 | 0.6545 | 0.6336 | 0.6208 | 0.6336 |
| 0.2051 | 14.8148 | 800 | 0.2041 | 0.6722 | 0.6660 | 0.6630 | 0.6660 |
| 0.1957 | 22.2222 | 1200 | 0.1982 | 0.6889 | 0.6885 | 0.6883 | 0.6885 |
| 0.1939 | 29.6296 | 1600 | 0.1963 | 0.6971 | 0.6964 | 0.6962 | 0.6964 |
| 0.1916 | 37.0370 | 2000 | 0.1946 | 0.7005 | 0.7004 | 0.7004 | 0.7004 |
| 0.1907 | 44.4444 | 2400 | 0.1944 | 0.7018 | 0.7017 | 0.7017 | 0.7017 |
| 0.1888 | 51.8519 | 2800 | 0.1944 | 0.6990 | 0.6984 | 0.6982 | 0.6984 |
| 0.1884 | 59.2593 | 3200 | 0.1941 | 0.7031 | 0.7030 | 0.7030 | 0.7030 |
Base model
intfloat/multilingual-e5-base