Instructions to use npark95/finetuned_BioClinicalBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use npark95/finetuned_BioClinicalBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="npark95/finetuned_BioClinicalBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("npark95/finetuned_BioClinicalBERT") model = AutoModelForSequenceClassification.from_pretrained("npark95/finetuned_BioClinicalBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +90 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: emilyalsentzer/Bio_ClinicalBERT
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- f1
|
| 9 |
+
model-index:
|
| 10 |
+
- name: finetuned_BioClinicalBERT
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# finetuned_BioClinicalBERT
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [emilyalsentzer/Bio_ClinicalBERT](https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT) on the None dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.4147
|
| 22 |
+
- F1: 0.9143
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 2e-05
|
| 42 |
+
- train_batch_size: 8
|
| 43 |
+
- eval_batch_size: 8
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 30
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 53 |
+
| 0.5879 | 1.0 | 24 | 0.4997 | 0.8767 |
|
| 54 |
+
| 0.52 | 2.0 | 48 | 0.4386 | 0.8889 |
|
| 55 |
+
| 0.3865 | 3.0 | 72 | 0.4487 | 0.7797 |
|
| 56 |
+
| 0.4456 | 4.0 | 96 | 0.5242 | 0.8 |
|
| 57 |
+
| 0.2789 | 5.0 | 120 | 0.4147 | 0.9143 |
|
| 58 |
+
| 0.2035 | 6.0 | 144 | 0.5301 | 0.8710 |
|
| 59 |
+
| 0.124 | 7.0 | 168 | 0.6356 | 0.8923 |
|
| 60 |
+
| 0.1422 | 8.0 | 192 | 0.9593 | 0.8308 |
|
| 61 |
+
| 0.123 | 9.0 | 216 | 2.0378 | 0.5833 |
|
| 62 |
+
| 0.0296 | 10.0 | 240 | 1.1534 | 0.8197 |
|
| 63 |
+
| 0.0047 | 11.0 | 264 | 0.6878 | 0.9254 |
|
| 64 |
+
| 0.0739 | 12.0 | 288 | 1.2483 | 0.8387 |
|
| 65 |
+
| 0.0016 | 13.0 | 312 | 1.9790 | 0.7143 |
|
| 66 |
+
| 0.0017 | 14.0 | 336 | 0.9967 | 0.8615 |
|
| 67 |
+
| 0.0015 | 15.0 | 360 | 2.0558 | 0.7143 |
|
| 68 |
+
| 0.0008 | 16.0 | 384 | 1.2408 | 0.8696 |
|
| 69 |
+
| 0.0006 | 17.0 | 408 | 1.6653 | 0.8 |
|
| 70 |
+
| 0.0003 | 18.0 | 432 | 1.1586 | 0.875 |
|
| 71 |
+
| 0.0002 | 19.0 | 456 | 1.1180 | 0.8955 |
|
| 72 |
+
| 0.0002 | 20.0 | 480 | 1.1362 | 0.8955 |
|
| 73 |
+
| 0.0002 | 21.0 | 504 | 1.1670 | 0.8955 |
|
| 74 |
+
| 0.0002 | 22.0 | 528 | 1.1915 | 0.8955 |
|
| 75 |
+
| 0.0002 | 23.0 | 552 | 1.2127 | 0.8955 |
|
| 76 |
+
| 0.0002 | 24.0 | 576 | 1.2162 | 0.8955 |
|
| 77 |
+
| 0.0002 | 25.0 | 600 | 1.2291 | 0.8955 |
|
| 78 |
+
| 0.0002 | 26.0 | 624 | 1.2454 | 0.8955 |
|
| 79 |
+
| 0.0002 | 27.0 | 648 | 1.2608 | 0.8955 |
|
| 80 |
+
| 0.0002 | 28.0 | 672 | 1.2348 | 0.8923 |
|
| 81 |
+
| 0.0002 | 29.0 | 696 | 1.2444 | 0.8923 |
|
| 82 |
+
| 0.0001 | 30.0 | 720 | 1.2437 | 0.8923 |
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
### Framework versions
|
| 86 |
+
|
| 87 |
+
- Transformers 4.48.0
|
| 88 |
+
- Pytorch 2.5.1+cu124
|
| 89 |
+
- Datasets 3.2.0
|
| 90 |
+
- Tokenizers 0.21.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 433270768
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c30d1ce5b045467fd746dad029479a965815f161780a6b543b399224d2065e4a
|
| 3 |
size 433270768
|