Instructions to use Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-spanmask with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-spanmask with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-spanmask")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-spanmask") model = AutoModelForTokenClassification.from_pretrained("Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-spanmask", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-spanmask
This model is a fine-tuned version of Mardiyyah/CeLLaTe-tapt-bioformer16l-tokenizer-adapted-spanmask on the OTAR3088/CeLLaTe-ner-2class-iob_final dataset. It achieves the following results on the evaluation set:
- Loss: 0.0943
- Precision: 0.8043
- Recall: 0.7313
- Micro F1: 0.7660
- Weighted F1: 0.7659
- Macro F1: 0.7753
- Accuracy: 0.9816
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: 16
- seed: 3407
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Use OptimizerNames.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_ratio: 0.01
- num_epochs: 20
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | Micro F1 | Weighted F1 | Macro F1 | Accuracy |
|---|---|---|---|---|---|---|---|---|---|
| 0.2582 | 1.0 | 263 | 0.0767 | 0.5507 | 0.5793 | 0.5646 | 0.5635 | 0.5281 | 0.9732 |
| 0.0491 | 2.0 | 526 | 0.0643 | 0.7355 | 0.7313 | 0.7334 | 0.7340 | 0.7456 | 0.9795 |
| 0.0341 | 3.0 | 789 | 0.0696 | 0.8133 | 0.7159 | 0.7615 | 0.7613 | 0.7683 | 0.9816 |
| 0.0261 | 4.0 | 1052 | 0.0733 | 0.7831 | 0.6903 | 0.7338 | 0.7340 | 0.7422 | 0.9803 |
| 0.0215 | 5.0 | 1315 | 0.0808 | 0.7674 | 0.6815 | 0.7219 | 0.7220 | 0.7313 | 0.9794 |
| 0.0166 | 6.0 | 1578 | 0.0800 | 0.7508 | 0.7088 | 0.7292 | 0.7296 | 0.7374 | 0.9797 |
| 0.0135 | 7.0 | 1841 | 0.0821 | 0.7691 | 0.7189 | 0.7432 | 0.7434 | 0.7510 | 0.9806 |
| 0.011 | 8.0 | 2104 | 0.0944 | 0.8043 | 0.7313 | 0.7660 | 0.7659 | 0.7753 | 0.9816 |
| 0.0097 | 9.0 | 2367 | 0.0939 | 0.7937 | 0.7286 | 0.7598 | 0.7598 | 0.7730 | 0.9810 |
| 0.0083 | 10.0 | 2630 | 0.1036 | 0.7823 | 0.6793 | 0.7272 | 0.7273 | 0.7384 | 0.9798 |
| 0.0067 | 11.0 | 2893 | 0.1027 | 0.7611 | 0.7145 | 0.7371 | 0.7373 | 0.7453 | 0.9800 |
| 0.0062 | 12.0 | 3156 | 0.1097 | 0.7412 | 0.6700 | 0.7038 | 0.7042 | 0.7120 | 0.9785 |
| 0.0057 | 13.0 | 3419 | 0.1006 | 0.7868 | 0.7348 | 0.7599 | 0.7599 | 0.7708 | 0.9812 |
Framework versions
- Transformers 4.48.2
- Pytorch 2.4.1+cu121
- Datasets 3.0.2
- Tokenizers 0.21.0
- Downloads last month
- 12