CoolFace
Modelpublic

arman1o1/roberta_ag_news_model

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes11downloads
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. -->

roberta-base-ag-news-classifier

This model is a fine-tuned version of FacebookAI/roberta-base on fancyzhx/ag_news) dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.2021
  • —Accuracy: 0.9541
  • —F1: 0.9541

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: 16
  • —evalbatchsize: 32
  • —seed: 42
  • —optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 3
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyF1
0.21481.075000.18500.94260.9425
0.16462.0150000.17780.95010.9501
0.10723.0225000.20210.95410.9541

Framework versions

  • —Transformers 4.57.1
  • —Pytorch 2.9.0a0+git1c57644
  • —Datasets 4.3.0
  • —Tokenizers 0.22.1