Pontonkid commited on
Commit
ea9a319
1 Parent(s): e3311d7

Training in progress, epoch 1

Browse files
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: arnabdhar/tinybert-ner
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - ncbi_disease
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: checkpoint-1000
14
+ results:
15
+ - task:
16
+ name: Token Classification
17
+ type: token-classification
18
+ dataset:
19
+ name: ncbi_disease
20
+ type: ncbi_disease
21
+ config: ncbi_disease
22
+ split: test
23
+ args: ncbi_disease
24
+ metrics:
25
+ - name: Precision
26
+ type: precision
27
+ value: 0.4722222222222222
28
+ - name: Recall
29
+ type: recall
30
+ value: 0.40729166666666666
31
+ - name: F1
32
+ type: f1
33
+ value: 0.43736017897091717
34
+ - name: Accuracy
35
+ type: accuracy
36
+ value: 0.9466873494713638
37
+ ---
38
+
39
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
40
+ should probably proofread and complete it, then remove this comment. -->
41
+
42
+ # checkpoint-1000
43
+
44
+ This model is a fine-tuned version of [arnabdhar/tinybert-ner](https://huggingface.co/arnabdhar/tinybert-ner) on the ncbi_disease dataset.
45
+ It achieves the following results on the evaluation set:
46
+ - Loss: 0.1611
47
+ - Precision: 0.4722
48
+ - Recall: 0.4073
49
+ - F1: 0.4374
50
+ - Accuracy: 0.9467
51
+
52
+ ## Model description
53
+
54
+ More information needed
55
+
56
+ ## Intended uses & limitations
57
+
58
+ More information needed
59
+
60
+ ## Training and evaluation data
61
+
62
+ More information needed
63
+
64
+ ## Training procedure
65
+
66
+ ### Training hyperparameters
67
+
68
+ The following hyperparameters were used during training:
69
+ - learning_rate: 2e-05
70
+ - train_batch_size: 16
71
+ - eval_batch_size: 16
72
+ - seed: 42
73
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
74
+ - lr_scheduler_type: linear
75
+ - num_epochs: 4
76
+
77
+ ### Training results
78
+
79
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
80
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
81
+ | No log | 1.0 | 340 | 0.2055 | 0.2744 | 0.1521 | 0.1957 | 0.9318 |
82
+ | 0.2656 | 2.0 | 680 | 0.1761 | 0.4051 | 0.3 | 0.3447 | 0.9417 |
83
+ | 0.1738 | 3.0 | 1020 | 0.1638 | 0.4582 | 0.4 | 0.4271 | 0.9455 |
84
+ | 0.1738 | 4.0 | 1360 | 0.1611 | 0.4722 | 0.4073 | 0.4374 | 0.9467 |
85
+
86
+
87
+ ### Framework versions
88
+
89
+ - Transformers 4.35.2
90
+ - Pytorch 2.1.0+cu118
91
+ - Datasets 2.15.0
92
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-Disease",
14
+ "2": "I-Disease"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "B-Disease": 1,
20
+ "I-Disease": 2,
21
+ "O": 0
22
+ },
23
+ "layer_norm_eps": 1e-12,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "bert",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 0,
29
+ "position_embedding_type": "absolute",
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.35.2",
32
+ "type_vocab_size": 2,
33
+ "use_cache": true,
34
+ "vocab_size": 30522
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16f34b2e185653aa2f1e3ec3eeda8458f0a1271a561148e2b60a9e40de1e3f14
3
+ size 435599164
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5981d85e93edd4f4c002d716f412c863acbe96eebe06b95193b5a3d9f11abc6
3
+ size 34991162
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ffd64f9c59f4cc6191772b63cbbf114d3a28b67901f6e4da062e33b80e64799
3
+ size 14244
runs/Nov27_16-49-42_0289733fd6c3/events.out.tfevents.1701103794.0289733fd6c3.579.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f608d4ce7f77121fe7fc1a2689ce7a95afb73adadede076d70fababc8dd828f
3
+ size 6980
runs/Nov27_17-15-13_0289733fd6c3/events.out.tfevents.1701105421.0289733fd6c3.579.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61e03a50b9a6d5f87bfb39753d39c57852817b97ecad3dc01f24c34e659a5246
3
+ size 4899
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e408cd00542e53b37c9d20a61603e57ee2b15e617c35a98de110fa7b5570e590
3
+ size 1064
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
trainer_state.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.4705882352941178,
5
+ "eval_steps": 500,
6
+ "global_step": 1000,
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.74,
13
+ "learning_rate": 3.774509803921569e-05,
14
+ "loss": 0.2314,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 1.47,
19
+ "learning_rate": 2.5490196078431373e-05,
20
+ "loss": 0.1472,
21
+ "step": 1000
22
+ }
23
+ ],
24
+ "logging_steps": 500,
25
+ "max_steps": 2040,
26
+ "num_train_epochs": 3,
27
+ "save_steps": 500,
28
+ "total_flos": 1149951689880.0,
29
+ "trial_name": null,
30
+ "trial_params": null
31
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea94b55f433bbe2f8ea757c1ea53f6910e6153d92f90350b3fe20600a342e2bb
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff