Instructions to use Mardiyyah/CeLLaTe-ner-with_vague with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mardiyyah/CeLLaTe-ner-with_vague with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Mardiyyah/CeLLaTe-ner-with_vague")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Mardiyyah/CeLLaTe-ner-with_vague") model = AutoModelForTokenClassification.from_pretrained("Mardiyyah/CeLLaTe-ner-with_vague", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CeLLaTe-ner-with_vague
This model is a fine-tuned version of microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext on the OTAR3088/CeLLaTe_ner_with_vague_iob dataset. It achieves the following results on the evaluation set:
- Loss: 0.1384
- Precision: 0.7410
- Recall: 0.7466
- Micro F1: 0.7438
- Weighted F1: 0.7441
- Macro F1: 0.7467
- Accuracy: 0.9796
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.372 | 1.0 | 263 | 0.1041 | 0.4126 | 0.5045 | 0.4539 | 0.4562 | 0.4676 | 0.9641 |
| 0.0619 | 2.0 | 526 | 0.0694 | 0.7120 | 0.7106 | 0.7113 | 0.7127 | 0.7182 | 0.9780 |
| 0.0395 | 3.0 | 789 | 0.0865 | 0.6947 | 0.6757 | 0.6850 | 0.6821 | 0.6860 | 0.9774 |
| 0.0291 | 4.0 | 1052 | 0.0830 | 0.7218 | 0.7286 | 0.7252 | 0.7264 | 0.7316 | 0.9786 |
| 0.0217 | 5.0 | 1315 | 0.0905 | 0.7533 | 0.7059 | 0.7288 | 0.7280 | 0.7317 | 0.9791 |
| 0.0174 | 6.0 | 1578 | 0.0918 | 0.7054 | 0.7324 | 0.7186 | 0.7191 | 0.7196 | 0.9781 |
| 0.0127 | 7.0 | 1841 | 0.1033 | 0.7289 | 0.7234 | 0.7262 | 0.7264 | 0.7283 | 0.9783 |
| 0.0106 | 8.0 | 2104 | 0.1121 | 0.7531 | 0.7111 | 0.7315 | 0.7310 | 0.7334 | 0.9791 |
| 0.0093 | 9.0 | 2367 | 0.1107 | 0.7275 | 0.7409 | 0.7341 | 0.7350 | 0.7366 | 0.9787 |
| 0.007 | 10.0 | 2630 | 0.1197 | 0.7146 | 0.7376 | 0.7259 | 0.7271 | 0.7305 | 0.9782 |
| 0.0065 | 11.0 | 2893 | 0.1172 | 0.7442 | 0.7319 | 0.7380 | 0.7388 | 0.7401 | 0.9794 |
| 0.0055 | 12.0 | 3156 | 0.1200 | 0.7534 | 0.7267 | 0.7398 | 0.7406 | 0.7429 | 0.9795 |
| 0.0048 | 13.0 | 3419 | 0.1293 | 0.7225 | 0.7485 | 0.7353 | 0.7355 | 0.7383 | 0.9791 |
| 0.0039 | 14.0 | 3682 | 0.1361 | 0.7401 | 0.7191 | 0.7295 | 0.7298 | 0.7330 | 0.9786 |
| 0.0036 | 15.0 | 3945 | 0.1344 | 0.7466 | 0.7371 | 0.7419 | 0.7417 | 0.7435 | 0.9794 |
| 0.0034 | 16.0 | 4208 | 0.1365 | 0.7312 | 0.7395 | 0.7353 | 0.7359 | 0.7389 | 0.9790 |
| 0.0029 | 17.0 | 4471 | 0.1374 | 0.7416 | 0.7395 | 0.7405 | 0.7408 | 0.7427 | 0.9793 |
| 0.0029 | 18.0 | 4734 | 0.1384 | 0.7410 | 0.7466 | 0.7438 | 0.7441 | 0.7467 | 0.9796 |
| 0.0025 | 19.0 | 4997 | 0.1429 | 0.7455 | 0.7366 | 0.7410 | 0.7412 | 0.7437 | 0.9794 |
| 0.0023 | 20.0 | 5260 | 0.1427 | 0.7411 | 0.7404 | 0.7408 | 0.7412 | 0.7429 | 0.9793 |
Framework versions
- Transformers 4.48.2
- Pytorch 2.4.1+cu121
- Datasets 3.0.2
- Tokenizers 0.21.0
- Downloads last month
- 18