Instructions to use Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-baseline 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-baseline 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-baseline")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-baseline") model = AutoModelForTokenClassification.from_pretrained("Mardiyyah/CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-baseline", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CeLLaTe-ner-2class-tapt-bioformer16l-tokenizer-adapted-baseline
This model is a fine-tuned version of Mardiyyah/CeLLaTe-tapt-bioformer16l-tokenizer-adapted-baseline on the OTAR3088/CeLLaTe-ner-2class-iob_final dataset. It achieves the following results on the evaluation set:
- Loss: 0.0961
- Precision: 0.7950
- Recall: 0.7211
- Micro F1: 0.7563
- Weighted F1: 0.7563
- Macro F1: 0.7681
- Accuracy: 0.9811
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.2593 | 1.0 | 263 | 0.0754 | 0.5879 | 0.6128 | 0.6001 | 0.5979 | 0.5824 | 0.9738 |
| 0.0486 | 2.0 | 526 | 0.0650 | 0.7291 | 0.7018 | 0.7152 | 0.7157 | 0.7239 | 0.9795 |
| 0.0333 | 3.0 | 789 | 0.0688 | 0.7916 | 0.7194 | 0.7538 | 0.7539 | 0.7613 | 0.9813 |
| 0.0251 | 4.0 | 1052 | 0.0709 | 0.7664 | 0.7141 | 0.7393 | 0.7396 | 0.7467 | 0.9805 |
| 0.0206 | 5.0 | 1315 | 0.0811 | 0.7762 | 0.6982 | 0.7352 | 0.7353 | 0.7436 | 0.9802 |
| 0.0162 | 6.0 | 1578 | 0.0844 | 0.7535 | 0.6947 | 0.7229 | 0.7231 | 0.7302 | 0.9798 |
| 0.0126 | 7.0 | 1841 | 0.0851 | 0.7727 | 0.7233 | 0.7472 | 0.7473 | 0.7514 | 0.9809 |
| 0.0106 | 8.0 | 2104 | 0.0945 | 0.7934 | 0.7256 | 0.7579 | 0.7579 | 0.7649 | 0.9811 |
| 0.009 | 9.0 | 2367 | 0.0968 | 0.7950 | 0.7211 | 0.7563 | 0.7563 | 0.7681 | 0.9811 |
| 0.0077 | 10.0 | 2630 | 0.1055 | 0.7646 | 0.6899 | 0.7253 | 0.7255 | 0.7309 | 0.9796 |
| 0.0066 | 11.0 | 2893 | 0.1105 | 0.7284 | 0.6709 | 0.6985 | 0.6988 | 0.7038 | 0.9787 |
| 0.0059 | 12.0 | 3156 | 0.1171 | 0.7294 | 0.6317 | 0.6771 | 0.6772 | 0.6820 | 0.9775 |
| 0.0056 | 13.0 | 3419 | 0.1070 | 0.7835 | 0.7141 | 0.7472 | 0.7474 | 0.7595 | 0.9807 |
| 0.0047 | 14.0 | 3682 | 0.1137 | 0.7844 | 0.7053 | 0.7428 | 0.7429 | 0.7544 | 0.9805 |
Framework versions
- Transformers 4.48.2
- Pytorch 2.4.1+cu121
- Datasets 3.0.2
- Tokenizers 0.21.0
- Downloads last month
- -