Dagobert42 commited on
Commit
14184ac
1 Parent(s): 441f2fd

Push google/mobilebert-uncased trained on biored-original_splits.pt

Browse files
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ base_model: mobilebert-uncased
6
+ tags:
7
+ - low-resource NER
8
+ - token_classification
9
+ - biomedicine
10
+ - medical NER
11
+ - generated_from_trainer
12
+ datasets:
13
+ - medicine
14
+ metrics:
15
+ - accuracy
16
+ - precision
17
+ - recall
18
+ - f1
19
+ model-index:
20
+ - name: Dagobert42/mobilebert-uncased-biored-finetuned
21
+ results: []
22
+ ---
23
+
24
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
25
+ should probably proofread and complete it, then remove this comment. -->
26
+
27
+ # Dagobert42/mobilebert-uncased-biored-finetuned
28
+
29
+ This model is a fine-tuned version of [mobilebert-uncased](https://huggingface.co/mobilebert-uncased) on the bigbio/biored dataset.
30
+ It achieves the following results on the evaluation set:
31
+ - Loss: 0.7686
32
+ - Accuracy: 0.7387
33
+ - Precision: 0.2041
34
+ - Recall: 0.2219
35
+ - F1: 0.1908
36
+ - Weighted F1: 0.683
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 2e-05
56
+ - train_batch_size: 8
57
+ - eval_batch_size: 8
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 50
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Weighted F1 |
66
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:-----------:|
67
+ | No log | 1.0 | 25 | 1.2311 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
68
+ | No log | 2.0 | 50 | 1.0356 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
69
+ | No log | 3.0 | 75 | 1.0300 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
70
+ | No log | 4.0 | 100 | 1.0246 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
71
+ | No log | 5.0 | 125 | 1.0162 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
72
+ | No log | 6.0 | 150 | 1.0039 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
73
+ | No log | 7.0 | 175 | 0.9806 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
74
+ | No log | 8.0 | 200 | 0.9148 | 0.7114 | 0.1016 | 0.1429 | 0.1188 | 0.5914 |
75
+ | No log | 9.0 | 225 | 0.8715 | 0.7187 | 0.2116 | 0.1604 | 0.1484 | 0.6172 |
76
+ | No log | 10.0 | 250 | 0.8303 | 0.7261 | 0.1555 | 0.1972 | 0.1737 | 0.6508 |
77
+ | No log | 11.0 | 275 | 0.8216 | 0.7292 | 0.1572 | 0.2018 | 0.1764 | 0.6554 |
78
+ | No log | 12.0 | 300 | 0.8044 | 0.7299 | 0.2295 | 0.2081 | 0.1786 | 0.6605 |
79
+ | No log | 13.0 | 325 | 0.8108 | 0.732 | 0.2304 | 0.2091 | 0.1797 | 0.662 |
80
+ | No log | 14.0 | 350 | 0.7920 | 0.7306 | 0.2062 | 0.22 | 0.1877 | 0.6711 |
81
+ | No log | 15.0 | 375 | 0.8025 | 0.7332 | 0.2164 | 0.2153 | 0.1836 | 0.6674 |
82
+ | No log | 16.0 | 400 | 0.7937 | 0.7335 | 0.1982 | 0.2248 | 0.2039 | 0.6813 |
83
+
84
+
85
+ ### Framework versions
86
+
87
+ - Transformers 4.35.2
88
+ - Pytorch 2.0.1+cu117
89
+ - Datasets 2.12.0
90
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/mobilebert-uncased",
3
+ "architectures": [
4
+ "MobileBertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_activation": false,
8
+ "classifier_dropout": null,
9
+ "embedding_size": 128,
10
+ "hidden_act": "relu",
11
+ "hidden_dropout_prob": 0.0,
12
+ "hidden_size": 512,
13
+ "id2label": {
14
+ "0": "null",
15
+ "1": "GeneOrGeneProduct",
16
+ "2": "DiseaseOrPhenotypicFeature",
17
+ "3": "ChemicalEntity",
18
+ "4": "OrganismTaxon",
19
+ "5": "SequenceVariant",
20
+ "6": "CellLine"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 512,
24
+ "intra_bottleneck_size": 128,
25
+ "key_query_shared_bottleneck": true,
26
+ "label2id": {
27
+ "CellLine": 6,
28
+ "ChemicalEntity": 3,
29
+ "DiseaseOrPhenotypicFeature": 2,
30
+ "GeneOrGeneProduct": 1,
31
+ "OrganismTaxon": 4,
32
+ "SequenceVariant": 5,
33
+ "null": 0
34
+ },
35
+ "layer_norm_eps": 1e-12,
36
+ "max_position_embeddings": 512,
37
+ "model_type": "mobilebert",
38
+ "normalization_type": "no_norm",
39
+ "num_attention_heads": 4,
40
+ "num_feedforward_networks": 4,
41
+ "num_hidden_layers": 24,
42
+ "pad_token_id": 0,
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.35.2",
45
+ "trigram_input": true,
46
+ "true_hidden_size": 128,
47
+ "type_vocab_size": 2,
48
+ "use_bottleneck": true,
49
+ "use_bottleneck_attention": false,
50
+ "vocab_size": 30522
51
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b96fb4143c4d20903757eeceec5b505268946dbb173fdfb2b520ad4ecde10729
3
+ size 98480380
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[PAD]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "100": {
13
+ "content": "[UNK]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "101": {
21
+ "content": "[CLS]",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "102": {
29
+ "content": "[SEP]",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "103": {
37
+ "content": "[MASK]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "MobileBertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c46b669772226cd7bce858b7531b3b0ac2681805b2bd702e5228fed1a203250
3
+ size 4219
vocab.txt ADDED
The diff for this file is too large to render. See raw diff