CoolFace
Modelpublic

Maximofn/GPT2-small-finetuned-amazon-reviews-en-classification

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

GPT2-small-finetuned-amazon-reviews-en-classification

This model is a fine-tuned version of openai-community/gpt2 on mteb/amazon_reviews_multi dataset.

It is the result of the post Fine tunning SML

It achieves the following results on the evaluation set:

  • —Loss: 0.7974
  • —Accuracy: 0.6626

Model description

This model provides classification of reviews in english

Intended uses & limitations

Classifiction of reviews in english

Training and evaluation data

It is training on mteb/amazon_reviews_multi dataset

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 28
  • —evalbatchsize: 40
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —num_epochs: 3
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracy
0.80741.071430.82030.652
0.75192.0142860.80220.6546
0.71813.0214290.81020.6578

Framework versions

  • —Transformers 4.42.3
  • —Pytorch 2.3.0+cu121
  • —Datasets 2.20.0
  • —Tokenizers 0.19.1