Team Ai
Modelpublic

valurank/distilroberta-topic-classification

sourceHugging Faceotherupdated 3y agoView on Hugging Face
3likes30downloads
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. -->

distilroberta-topic-classification

This model is a fine-tuned version of distilroberta-topic-base on a dataset of headlines. It achieves the following results on the evaluation set:

  • —Loss: 2.235735
  • —F1: 0.756

Training and evaluation data

The following data sources were used:

  • —22k News articles classified into 120 different topics from Hugging face

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 32
  • —evalbatchsize: 32
  • —seed: 12345
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 16
  • —num_epochs: 10
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossF1
2.38511.05612.34450.6495
2.14412.011222.19800.7019
1.99923.016832.17200.7189
1.83844.022442.14250.7403
1.74685.028052.16660.7453
1.63606.033662.17790.7456
1.59357.039272.20030.7555
1.54608.044882.21570.7575
1.55109.050492.23000.7536
1.509710.056102.23570.7547

Framework versions

  • —Transformers 4.35.2
  • —Pytorch 2.1.0
  • —Datasets 2.15.0
  • —Tokenizers 0.15.0