Edit model card

distilbert-base-cased-finetuned-sentiment

This model is a fine-tuned version of distilbert-base-cased on the Twitter Sentiment Datasets dataset. It achieves the following results on the evaluation set:

  • Loss: 0.5508
  • Accuracy: 0.7852

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: 64
  • eval_batch_size: 64
  • seed: 42
  • optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_steps: 500
  • num_epochs: 5
  • mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step Validation Loss Accuracy
0.7352 1.0 625 0.5608 0.7643
0.5016 2.0 1250 0.5322 0.7808
0.3913 3.0 1875 0.5508 0.7852
0.3087 4.0 2500 0.5895 0.7826
0.2502 5.0 3125 0.6327 0.7807

Framework versions

  • Transformers 4.46.3
  • Pytorch 2.5.1+cu121
  • Datasets 3.1.0
  • Tokenizers 0.20.3
Downloads last month
13
Safetensors
Model size
65.8M 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 luluw/distilbert-base-cased-finetuned-sentiment

Finetuned
(222)
this model