Team Ai
Modelpublic

badrabbitt/text_classification_gpt2

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

textclassificationgpt2

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

  • —Loss: 0.3501
  • —Accuracy: 0.9052

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: 5e-05
  • —trainbatchsize: 4
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_ratio: 0.01
  • —num_epochs: 1

Training results

Training LossEpochStepValidation LossAccuracy
0.03080.16250.55020.8852
1.66690.212500.35010.9052
1.93260.318750.48680.9
1.26780.425000.38230.9028
0.00150.531250.41670.8964
2.52430.637500.39380.9152
0.5310.743750.35120.9156
0.00270.850000.38060.9148
1.13690.956250.35430.9264
0.06671.062500.35020.9272

Framework versions

  • —Transformers 4.40.1
  • —Pytorch 2.2.1+cu121
  • —Datasets 2.19.0
  • —Tokenizers 0.19.1