ag-news-twitter-19200-bert-base-uncased

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

  • F1: 0.9255
  • Acc: 0.9255
  • Loss: 0.5130

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
  • train_batch_size: 16
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 20

Training results

Training Loss Epoch Step F1 Acc Validation Loss
0.3437 1.0 1200 0.9111 0.9111 0.2769
0.2374 2.0 2400 0.9199 0.9199 0.2585
0.1792 3.0 3600 0.9244 0.9243 0.2789
0.1021 4.0 4800 0.9274 0.9271 0.3265
0.0697 5.0 6000 0.9267 0.9264 0.3897
0.0425 6.0 7200 0.9247 0.9249 0.4872
0.0266 7.0 8400 0.9255 0.9255 0.5130

Framework versions

  • Transformers 4.35.0
  • Pytorch 2.1.0+cu121
  • Datasets 2.14.6
  • Tokenizers 0.14.1
Downloads last month
29
Safetensors
Model size
109M params
Tensor type
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Model tree for Kyle1668/ag-news-19200-bert-base-uncased

Finetuned
(2307)
this model

Dataset used to train Kyle1668/ag-news-19200-bert-base-uncased

Collection including Kyle1668/ag-news-19200-bert-base-uncased

Evaluation results