muratti18462 commited on
Commit
4197b5b
·
verified ·
1 Parent(s): fc6172d

End of training

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: alvaroalon2/biobert_chemical_ner
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: murat_chem_model_extra_data_2epoch
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # murat_chem_model_extra_data_2epoch
16
+
17
+ This model is a fine-tuned version of [alvaroalon2/biobert_chemical_ner](https://huggingface.co/alvaroalon2/biobert_chemical_ner) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.0100
20
+ - Chemical: {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401265, 'support': 952}
21
+ - Micro avg: {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401265, 'support': 952}
22
+ - Macro avg: {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401265, 'support': 952}
23
+ - Weighted avg: {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401264, 'support': 952}
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 5e-06
43
+ - train_batch_size: 8
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - gradient_accumulation_steps: 4
47
+ - total_train_batch_size: 32
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - lr_scheduler_warmup_ratio: 0.1
51
+ - num_epochs: 2
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Chemical | Micro avg | Macro avg | Weighted avg |
57
+ |:-------------:|:------:|:-----:|:---------------:|:---------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------:|
58
+ | 0.0381 | 1.0000 | 16252 | 0.0113 | {'precision': 0.9494204425711275, 'recall': 0.9464285714285714, 'f1-score': 0.9479221462388217, 'support': 952} | {'precision': 0.9494204425711275, 'recall': 0.9464285714285714, 'f1-score': 0.9479221462388217, 'support': 952} | {'precision': 0.9494204425711275, 'recall': 0.9464285714285714, 'f1-score': 0.9479221462388217, 'support': 952} | {'precision': 0.9494204425711275, 'recall': 0.9464285714285714, 'f1-score': 0.9479221462388217, 'support': 952} |
59
+ | 0.0105 | 1.9999 | 32504 | 0.0100 | {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401265, 'support': 952} | {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401265, 'support': 952} | {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401265, 'support': 952} | {'precision': 0.9535374868004224, 'recall': 0.9485294117647058, 'f1-score': 0.9510268562401264, 'support': 952} |
60
+
61
+
62
+ ### Framework versions
63
+
64
+ - Transformers 4.44.2
65
+ - Pytorch 2.3.0+cu121
66
+ - Datasets 2.21.0
67
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "alvaroalon2/biobert_chemical_ner",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "BertForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "B-CHEMICAL",
15
+ "1": "I-CHEMICAL",
16
+ "2": "O"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "B-CHEMICAL": 0,
22
+ "I-CHEMICAL": 1,
23
+ "O": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "bert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 0,
31
+ "position_embedding_type": "absolute",
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.44.2",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 28996
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:270278a1be6217e0ad0c767347b1a8e87697c0ba92104e74b5b1e784abe9546d
3
+ size 430911284
runs/Feb24_15-55-01_ip-10-3-48-151.eu-central-1.compute.internal/events.out.tfevents.1740412550.ip-10-3-48-151.eu-central-1.compute.internal ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d5b62ca80967ef5454f23a28ce22b015439946587122ab8f321e200967e878b
3
+ size 6885
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32357ecee5d5f5fa1e73161f982d2ee70b61852bc0c812c6d57e642f26f70b1a
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff