Rodrigo1771 commited on
Commit
e522f44
1 Parent(s): 720ef27

Model save

Browse files
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: michiyasunaga/BioLinkBERT-base
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - drugtemist-en-9-ner
9
+ metrics:
10
+ - precision
11
+ - recall
12
+ - f1
13
+ - accuracy
14
+ model-index:
15
+ - name: output
16
+ results:
17
+ - task:
18
+ name: Token Classification
19
+ type: token-classification
20
+ dataset:
21
+ name: drugtemist-en-9-ner
22
+ type: drugtemist-en-9-ner
23
+ config: DrugTEMIST English NER
24
+ split: validation
25
+ args: DrugTEMIST English NER
26
+ metrics:
27
+ - name: Precision
28
+ type: precision
29
+ value: 0.924860853432282
30
+ - name: Recall
31
+ type: recall
32
+ value: 0.9291705498602051
33
+ - name: F1
34
+ type: f1
35
+ value: 0.9270106927010694
36
+ - name: Accuracy
37
+ type: accuracy
38
+ value: 0.9986534758462869
39
+ ---
40
+
41
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
42
+ should probably proofread and complete it, then remove this comment. -->
43
+
44
+ # output
45
+
46
+ This model is a fine-tuned version of [michiyasunaga/BioLinkBERT-base](https://huggingface.co/michiyasunaga/BioLinkBERT-base) on the drugtemist-en-9-ner dataset.
47
+ It achieves the following results on the evaluation set:
48
+ - Loss: 0.0071
49
+ - Precision: 0.9249
50
+ - Recall: 0.9292
51
+ - F1: 0.9270
52
+ - Accuracy: 0.9987
53
+
54
+ ## Model description
55
+
56
+ More information needed
57
+
58
+ ## Intended uses & limitations
59
+
60
+ More information needed
61
+
62
+ ## Training and evaluation data
63
+
64
+ More information needed
65
+
66
+ ## Training procedure
67
+
68
+ ### Training hyperparameters
69
+
70
+ The following hyperparameters were used during training:
71
+ - learning_rate: 5e-05
72
+ - train_batch_size: 32
73
+ - eval_batch_size: 8
74
+ - seed: 42
75
+ - gradient_accumulation_steps: 2
76
+ - total_train_batch_size: 64
77
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
78
+ - lr_scheduler_type: linear
79
+ - num_epochs: 10.0
80
+
81
+ ### Training results
82
+
83
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
84
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
85
+ | No log | 1.0 | 437 | 0.0047 | 0.8995 | 0.9254 | 0.9123 | 0.9985 |
86
+ | 0.0144 | 2.0 | 874 | 0.0053 | 0.8960 | 0.9310 | 0.9132 | 0.9985 |
87
+ | 0.0038 | 3.0 | 1311 | 0.0046 | 0.9298 | 0.9376 | 0.9336 | 0.9988 |
88
+ | 0.0022 | 4.0 | 1748 | 0.0055 | 0.9202 | 0.9245 | 0.9224 | 0.9986 |
89
+ | 0.0019 | 5.0 | 2185 | 0.0053 | 0.9118 | 0.9348 | 0.9231 | 0.9986 |
90
+ | 0.0014 | 6.0 | 2622 | 0.0054 | 0.9194 | 0.9254 | 0.9224 | 0.9986 |
91
+ | 0.0009 | 7.0 | 3059 | 0.0073 | 0.9324 | 0.9254 | 0.9289 | 0.9986 |
92
+ | 0.0009 | 8.0 | 3496 | 0.0065 | 0.9341 | 0.9254 | 0.9298 | 0.9987 |
93
+ | 0.0005 | 9.0 | 3933 | 0.0069 | 0.9326 | 0.9292 | 0.9309 | 0.9987 |
94
+ | 0.0004 | 10.0 | 4370 | 0.0071 | 0.9249 | 0.9292 | 0.9270 | 0.9987 |
95
+
96
+
97
+ ### Framework versions
98
+
99
+ - Transformers 4.44.2
100
+ - Pytorch 2.4.0+cu121
101
+ - Datasets 2.21.0
102
+ - Tokenizers 0.19.1
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0e9b7f7630f311550a3e42bb3a45e2155b1a45f5d218787c96ea8bea18b050e2
3
  size 430601004
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c227910d768dbd90ba8158a67db65006d02f1b89339511867cb8f7b7a54ffdf7
3
  size 430601004
tb/events.out.tfevents.1725569221.c3806e32a2f8.1237.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e6da49b53a120114e75d0d744ced735640cf88d600ba1b5bf4ad0a826bdf468
3
- size 11057
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f9cec8af530df398a51ff7168730972e3993dfaf523d0e065f72ac25030d32e
3
+ size 11883
train.log CHANGED
@@ -1267,3 +1267,16 @@ Training completed. Do not forget to share your model on huggingface.co/models =
1267
  [INFO|trainer.py:2632] 2024-09-05 21:04:20,556 >> Loading best model from /content/dissertation/scripts/ner/output/checkpoint-1311 (score: 0.9336426914153132).
1268
 
1269
 
1270
  [INFO|trainer.py:4283] 2024-09-05 21:04:20,741 >> Waiting for the current checkpoint push to be finished, this might take a couple of minutes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1267
  [INFO|trainer.py:2632] 2024-09-05 21:04:20,556 >> Loading best model from /content/dissertation/scripts/ner/output/checkpoint-1311 (score: 0.9336426914153132).
1268
 
1269
 
1270
  [INFO|trainer.py:4283] 2024-09-05 21:04:20,741 >> Waiting for the current checkpoint push to be finished, this might take a couple of minutes.
1271
+ [INFO|trainer.py:3503] 2024-09-05 21:04:33,780 >> Saving model checkpoint to /content/dissertation/scripts/ner/output
1272
+ [INFO|configuration_utils.py:472] 2024-09-05 21:04:33,782 >> Configuration saved in /content/dissertation/scripts/ner/output/config.json
1273
+ [INFO|modeling_utils.py:2799] 2024-09-05 21:04:35,047 >> Model weights saved in /content/dissertation/scripts/ner/output/model.safetensors
1274
+ [INFO|tokenization_utils_base.py:2684] 2024-09-05 21:04:35,048 >> tokenizer config file saved in /content/dissertation/scripts/ner/output/tokenizer_config.json
1275
+ [INFO|tokenization_utils_base.py:2693] 2024-09-05 21:04:35,049 >> Special tokens file saved in /content/dissertation/scripts/ner/output/special_tokens_map.json
1276
+ [INFO|trainer.py:3503] 2024-09-05 21:04:35,062 >> Saving model checkpoint to /content/dissertation/scripts/ner/output
1277
+ [INFO|configuration_utils.py:472] 2024-09-05 21:04:35,063 >> Configuration saved in /content/dissertation/scripts/ner/output/config.json
1278
+ [INFO|modeling_utils.py:2799] 2024-09-05 21:04:36,304 >> Model weights saved in /content/dissertation/scripts/ner/output/model.safetensors
1279
+ [INFO|tokenization_utils_base.py:2684] 2024-09-05 21:04:36,305 >> tokenizer config file saved in /content/dissertation/scripts/ner/output/tokenizer_config.json
1280
+ [INFO|tokenization_utils_base.py:2693] 2024-09-05 21:04:36,305 >> Special tokens file saved in /content/dissertation/scripts/ner/output/special_tokens_map.json
1281
+ {'eval_loss': 0.00707679707556963, 'eval_precision': 0.924860853432282, 'eval_recall': 0.9291705498602051, 'eval_f1': 0.9270106927010694, 'eval_accuracy': 0.9986534758462869, 'eval_runtime': 13.4189, 'eval_samples_per_second': 517.629, 'eval_steps_per_second': 64.76, 'epoch': 10.0}
1282
+ {'train_runtime': 1039.0289, 'train_samples_per_second': 269.165, 'train_steps_per_second': 4.206, 'train_loss': 0.002938754050150616, 'epoch': 10.0}
1283
+