CoolFace
Modelpublic

lapa-llm/gec-score-model

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes30downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

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:

  • Loss: 0.1941
  • Precision: 0.7031
  • Recall: 0.7030
  • F1 Macro: 0.7030
  • Accuracy: 0.7030

Model description

This model outputs a score how grammatical correct is the provided text.

Intended uses & limitations

Pretraining data filtering.

Training and evaluation data

Training script is located here: https://github.com/lapa-llm/lapa-llm/blob/main/pretraining/quality-classifiers/gec_score.py

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 3e-05
  • trainbatchsize: 32
  • evalbatchsize: 128
  • seed: 0
  • distributed_type: multi-GPU
  • num_devices: 8
  • totaltrainbatch_size: 256
  • totalevalbatch_size: 1024
  • optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • lrschedulertype: cosine
  • lrschedulerwarmup_steps: 500
  • num_epochs: 60

Training results

Training LossEpochStepValidation LossPrecisionRecallF1 MacroAccuracy
No log000.29630.55030.50130.34090.5013
0.22977.40744000.22870.65450.63360.62080.6336
0.205114.81488000.20410.67220.66600.66300.6660
0.195722.222212000.19820.68890.68850.68830.6885
0.193929.629616000.19630.69710.69640.69620.6964
0.191637.037020000.19460.70050.70040.70040.7004
0.190744.444424000.19440.70180.70170.70170.7017
0.188851.851928000.19440.69900.69840.69820.6984
0.188459.259332000.19410.70310.70300.70300.7030

Framework versions

  • Transformers 4.56.1
  • Pytorch 2.6.0a0+ecf3bae40a.nv25.01
  • Datasets 4.0.0
  • Tokenizers 0.22.0