Edit model card

bert-finetuned-ner4

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

  • Loss: 0.0752
  • Precision: 0.8481
  • Recall: 0.8888
  • F1: 0.8680
  • Accuracy: 0.9810

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

Training results

Training Loss Epoch Step Accuracy F1 Validation Loss Precision Recall
0.1685 1.0 2489 0.9538 0.7832 0.1281 0.7617 0.8060
0.1011 2.0 4978 0.9610 0.8197 0.1161 0.7879 0.8542
0.0965 3.0 7467 0.9623 0.8364 0.1201 0.7936 0.8840
0.0623 4.0 9956 0.9648 0.8428 0.1247 0.8048 0.8844
0.0349 5.0 12445 0.9655 0.8508 0.1321 0.8192 0.8851
0.096 4.0 12752 0.0766 0.8209 0.8152 0.8181 0.9751
0.0539 5.0 15940 0.0607 0.8384 0.8779 0.8577 0.9793
0.0511 6.0 19128 0.0604 0.8334 0.8845 0.8582 0.9801
0.0277 7.0 22316 0.0619 0.8475 0.8784 0.8627 0.9802
0.029 8.0 25504 0.0702 0.8554 0.8825 0.8687 0.9809
0.0178 9.0 28692 0.0723 0.8422 0.8894 0.8652 0.9808
0.0313 10.0 31880 0.0752 0.8481 0.8888 0.8680 0.9810

Framework versions

  • Transformers 4.42.4
  • Pytorch 2.3.1+cu121
  • Datasets 3.0.0
  • Tokenizers 0.19.1
Downloads last month
66
Safetensors
Model size
108M 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 Nathali99/bert-finetuned-ner4

Finetuned
(1752)
this model