CoolFace
Modelpublic

Woolv7007/Egyptian_text_classification

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes6downloads
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. -->

arabert-hate-speech

This model is a fine-tuned version of aubmindlab/bert-base-arabertv2 on an unknown dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.5588
  • —Accuracy: 0.9451
  • —Precision: 0.9464
  • —Recall: 0.9451
  • —F1: 0.9450

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 32
  • —evalbatchsize: 64
  • —seed: 42
  • —gradientaccumulationsteps: 2
  • —totaltrainbatch_size: 64
  • —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: 20
  • —mixedprecisiontraining: Native AMP
  • —labelsmoothingfactor: 0.1

Training results

Training LossEpochStepValidation LossAccuracyPrecisionRecallF1
1.69931.01001.58440.38450.36950.38450.3545
1.25932.02001.02780.76620.77660.76620.7634
0.80763.03000.65580.90560.90760.90560.9059
0.64134.04000.58660.92820.93100.92820.9280
0.57345.05000.55560.94510.94570.94510.9450
0.52036.06000.58250.93380.93890.93380.9344
0.48437.07000.55880.94510.94640.94510.9450

Framework versions

  • —Transformers 4.52.4
  • —Pytorch 2.6.0+cu124
  • —Datasets 3.6.0
  • —Tokenizers 0.21.1