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.0909
- Precision: 0.7592
- Recall: 0.7118
- Micro F1: 0.7347
- Weighted F1: 0.7340
- Macro F1: 0.7366
- Accuracy: 0.9783
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.3688 | 1.0 | 263 | 0.0926 | 0.5252 | 0.5745 | 0.5487 | 0.5521 | 0.5566 | 0.9696 |
| 0.061 | 2.0 | 526 | 0.0809 | 0.6209 | 0.6739 | 0.6463 | 0.6534 | 0.6635 | 0.9724 |
| 0.0403 | 3.0 | 789 | 0.0825 | 0.6765 | 0.7254 | 0.7001 | 0.7015 | 0.7077 | 0.9752 |
| 0.0286 | 4.0 | 1052 | 0.0893 | 0.7351 | 0.6956 | 0.7148 | 0.7151 | 0.7191 | 0.9776 |
| 0.0223 | 5.0 | 1315 | 0.1081 | 0.7805 | 0.6391 | 0.7028 | 0.7019 | 0.7068 | 0.9762 |
| 0.0171 | 6.0 | 1578 | 0.0921 | 0.7592 | 0.7118 | 0.7347 | 0.7340 | 0.7366 | 0.9783 |
| 0.0133 | 7.0 | 1841 | 0.1039 | 0.7372 | 0.7209 | 0.7289 | 0.7290 | 0.7311 | 0.9776 |
| 0.0106 | 8.0 | 2104 | 0.1071 | 0.7397 | 0.7109 | 0.7250 | 0.7244 | 0.7272 | 0.9777 |
| 0.0092 | 9.0 | 2367 | 0.1090 | 0.6859 | 0.7416 | 0.7127 | 0.7130 | 0.7164 | 0.9770 |
Framework versions
- Transformers 4.48.2
- Pytorch 2.4.1+cu121
- Datasets 3.0.2
- Tokenizers 0.21.0
- Downloads last month
- 15