Team Ai
Modelpublic

polyglot-tagger/multilabel-language-identification

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes75downloads
Model Card

Polyglot Tagger: Multi-label Language Identification

Refer to polyglot-tagger/language-identification. It is trained on the same dataset as a text-classifier rather than as a token classifier.

This model is a fine-tuned version of xlm-roberta-base. It achieves the following results on the evaluation set:

  • —Loss: 0.0123
  • —Precision: 0.9859
  • —Recall: 0.9831
  • —F1: 0.9845
  • —Accuracy: 0.9412

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 32
  • —evalbatchsize: 32
  • —seed: 42
  • —gradientaccumulationsteps: 18
  • —totaltrainbatch_size: 576
  • —optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • —lrschedulertype: linear
  • —num_epochs: 2
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepAccuracyF1Validation LossPrecisionRecall
0.21860.292525000.85600.96510.03950.97780.9528
0.13310.585150000.02320.98030.97170.97600.9070
0.10440.877675000.01720.98280.97740.98010.9218
0.08511.1700100000.01500.98440.98010.98220.9311
0.07831.4626125000.01360.98590.98090.98340.9354
0.07051.7551150000.01260.98610.98260.98430.9399
0.06922.0170940.01230.98590.98310.98450.9412

Framework versions

  • —Transformers 5.5.4
  • —Pytorch 2.11.0+cu128
  • —Datasets 4.8.4
  • —Tokenizers 0.22.2