CoolFace
Modelpublic

DL-Project/hatespeech_distilbert

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes4downloads
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. -->

hatespeech_distilbert

This model is a fine-tuned version of distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:

  • Loss: 0.9977
  • Accuracy: 0.7737
  • Recall: 0.8118
  • Precision: 0.7526
  • F1: 0.7811

And the following results on the test set:

  • Loss: 1.0640
  • Accuracy: 0.7544
  • Recall: 0.7930
  • Precision: 0.7406
  • F1: 0.7659

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: 8e-05
  • trainbatchsize: 32
  • evalbatchsize: 32
  • seed: 42
  • gradientaccumulationsteps: 4
  • totaltrainbatch_size: 128
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • lrschedulerwarmup_ratio: 0.1
  • num_epochs: 10

Training results

Training LossEpochStepValidation LossAccuracyRecallPrecisionF1
0.48630.9935770.46780.77010.74210.78410.7625
0.39352.01550.45950.78340.73400.81240.7712
0.27922.99352320.52850.78500.72910.81880.7713
0.14084.03100.71300.77850.79400.76840.7810
0.09454.99353870.82300.78060.75510.79370.7739
0.05416.04650.99770.77370.81180.75260.7811
0.03316.99355421.11070.77530.78590.76780.7768
0.01518.06201.17030.77890.75430.79150.7724
0.01068.99356971.27410.77850.76160.78640.7738
0.00519.93557701.29640.77530.78510.76830.7766

Framework versions

  • Transformers 4.40.2
  • Pytorch 2.2.1+cu121
  • Datasets 2.19.1
  • Tokenizers 0.19.1