Team Ai
Modelpublic

bastao/PeroVaz_PT-BR_Classifier

sourceHugging Facemitupdated 2y agoView on Hugging Face
1likes815downloads
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. -->

PeroVazPT-BR Classifier

Model Description

The PeroVazPT-BR Classifier is designed to classify text between European Portuguese (PT) and Brazilian Portuguese (BR).

This model is a fine-tuned version of prajjwal1/bert-tiny on the VeraCruz Dataset. The model was trained on the VeraCruz Dataset, a collection of text samples from both languages. The model was trained on a total of 500,000 examples, a evenly split between European Portuguese and Brazilian Portuguese, ensuring a balanced representation of both language variants.

It achieves the following results on an evaluation set of 50,000 examples:

  • —Loss: 0.1791
  • —Accuracy: 0.9461

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 256
  • —evalbatchsize: 256
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —steps: 2500
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracy
0.47720.065000.25010.9080
0.34120.1310000.22750.9135
0.31220.1915000.25780.9014
0.29750.2520000.19920.9396
0.28770.3125000.17910.9461

Framework versions

  • —Transformers 4.40.0.dev0
  • —Pytorch 2.2.1
  • —Datasets 2.18.0
  • —Tokenizers 0.15.2