adalbertojunior commited on
Commit
7fb122e
1 Parent(s): 973bc1f

Upload 13 files

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: pucpr/biobertpt-all
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - adalbertojunior/substance_quantity
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: test-ner-4
14
+ results:
15
+ - task:
16
+ name: Token Classification
17
+ type: token-classification
18
+ dataset:
19
+ name: adalbertojunior/substance_quantity
20
+ type: adalbertojunior/substance_quantity
21
+ metrics:
22
+ - name: Precision
23
+ type: precision
24
+ value: 1.0
25
+ - name: Recall
26
+ type: recall
27
+ value: 1.0
28
+ - name: F1
29
+ type: f1
30
+ value: 1.0
31
+ - name: Accuracy
32
+ type: accuracy
33
+ value: 1.0
34
+ ---
35
+
36
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
37
+ should probably proofread and complete it, then remove this comment. -->
38
+
39
+ # test-ner-4
40
+
41
+ This model is a fine-tuned version of [pucpr/biobertpt-all](https://huggingface.co/pucpr/biobertpt-all) on the adalbertojunior/substance_quantity dataset.
42
+ It achieves the following results on the evaluation set:
43
+ - Loss: 0.0001
44
+ - Precision: 1.0
45
+ - Recall: 1.0
46
+ - F1: 1.0
47
+ - Accuracy: 1.0
48
+
49
+ ## Model description
50
+
51
+ More information needed
52
+
53
+ ## Intended uses & limitations
54
+
55
+ More information needed
56
+
57
+ ## Training and evaluation data
58
+
59
+ More information needed
60
+
61
+ ## Training procedure
62
+
63
+ ### Training hyperparameters
64
+
65
+ The following hyperparameters were used during training:
66
+ - learning_rate: 5e-05
67
+ - train_batch_size: 8
68
+ - eval_batch_size: 8
69
+ - seed: 42
70
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
71
+ - lr_scheduler_type: linear
72
+ - num_epochs: 3.0
73
+
74
+ ### Training results
75
+
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.34.0
81
+ - Pytorch 2.0.1+cu118
82
+ - Datasets 2.11.0
83
+ - Tokenizers 0.14.1
added_tokens.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "[CLS]": 101,
3
+ "[MASK]": 103,
4
+ "[PAD]": 0,
5
+ "[SEP]": 102,
6
+ "[UNK]": 100
7
+ }
all_results.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_f1": 1.0,
5
+ "eval_loss": 5.960646376479417e-05,
6
+ "eval_precision": 1.0,
7
+ "eval_recall": 1.0,
8
+ "eval_runtime": 8.1734,
9
+ "eval_samples": 500,
10
+ "eval_samples_per_second": 61.174,
11
+ "eval_steps_per_second": 7.708,
12
+ "train_loss": 0.009698579121523807,
13
+ "train_runtime": 643.1965,
14
+ "train_samples": 7375,
15
+ "train_samples_per_second": 34.399,
16
+ "train_steps_per_second": 4.3
17
+ }
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "pucpr/biobertpt-all",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "eos_token_ids": null,
11
+ "finetuning_task": "ner",
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "B-ADMFORM",
17
+ "1": "B-DOSAGE",
18
+ "2": "B-MEDTYPE",
19
+ "3": "B-PACKAGINGTYPE",
20
+ "4": "B-QUANTITY",
21
+ "5": "B-SUBSTANCE",
22
+ "6": "I-DOSAGE",
23
+ "7": "I-MEDTYPE",
24
+ "8": "I-QUANTITY",
25
+ "9": "I-SUBSTANCE",
26
+ "10": "O"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
+ "label2id": {
31
+ "B-ADMFORM": 0,
32
+ "B-DOSAGE": 1,
33
+ "B-MEDTYPE": 2,
34
+ "B-PACKAGINGTYPE": 3,
35
+ "B-QUANTITY": 4,
36
+ "B-SUBSTANCE": 5,
37
+ "I-DOSAGE": 6,
38
+ "I-MEDTYPE": 7,
39
+ "I-QUANTITY": 8,
40
+ "I-SUBSTANCE": 9,
41
+ "O": 10
42
+ },
43
+ "layer_norm_eps": 1e-12,
44
+ "max_position_embeddings": 512,
45
+ "model_type": "bert",
46
+ "num_attention_heads": 12,
47
+ "num_hidden_layers": 12,
48
+ "output_past": true,
49
+ "pad_token_id": null,
50
+ "pooler_fc_size": 768,
51
+ "pooler_num_attention_heads": 12,
52
+ "pooler_num_fc_layers": 3,
53
+ "pooler_size_per_head": 128,
54
+ "pooler_type": "first_token_transform",
55
+ "position_embedding_type": "absolute",
56
+ "torch_dtype": "float32",
57
+ "transformers_version": "4.34.0",
58
+ "type_vocab_size": 2,
59
+ "use_cache": true,
60
+ "vocab_size": 119547
61
+ }
eval_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_f1": 1.0,
5
+ "eval_loss": 5.960646376479417e-05,
6
+ "eval_precision": 1.0,
7
+ "eval_recall": 1.0,
8
+ "eval_runtime": 8.1734,
9
+ "eval_samples": 500,
10
+ "eval_samples_per_second": 61.174,
11
+ "eval_steps_per_second": 7.708
12
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cf2f8f3e73597f20dbebdfda987bf9a5200b96da60c13f8929c2e6df8b4abca
3
+ size 709152937
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,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "additional_special_tokens": [],
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": false,
49
+ "mask_token": "[MASK]",
50
+ "max_len": 512,
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "BertTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.009698579121523807,
4
+ "train_runtime": 643.1965,
5
+ "train_samples": 7375,
6
+ "train_samples_per_second": 34.399,
7
+ "train_steps_per_second": 4.3
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2766,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.54,
13
+ "learning_rate": 4.096167751265365e-05,
14
+ "loss": 0.0465,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 1.08,
19
+ "learning_rate": 3.192335502530731e-05,
20
+ "loss": 0.0003,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 1.63,
25
+ "learning_rate": 2.2885032537960955e-05,
26
+ "loss": 0.0054,
27
+ "step": 1500
28
+ },
29
+ {
30
+ "epoch": 2.17,
31
+ "learning_rate": 1.3846710050614606e-05,
32
+ "loss": 0.0012,
33
+ "step": 2000
34
+ },
35
+ {
36
+ "epoch": 2.71,
37
+ "learning_rate": 4.808387563268257e-06,
38
+ "loss": 0.0002,
39
+ "step": 2500
40
+ },
41
+ {
42
+ "epoch": 3.0,
43
+ "step": 2766,
44
+ "total_flos": 5781661149312000.0,
45
+ "train_loss": 0.009698579121523807,
46
+ "train_runtime": 643.1965,
47
+ "train_samples_per_second": 34.399,
48
+ "train_steps_per_second": 4.3
49
+ }
50
+ ],
51
+ "logging_steps": 500,
52
+ "max_steps": 2766,
53
+ "num_train_epochs": 3,
54
+ "save_steps": 500,
55
+ "total_flos": 5781661149312000.0,
56
+ "trial_name": null,
57
+ "trial_params": null
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7be351dad52ae38555c807b33e9ba864be6302c3616d6696c5bd7735b534441
3
+ size 4091
vocab.txt ADDED
The diff for this file is too large to render. See raw diff