KpRT commited on
Commit
664e795
·
verified ·
1 Parent(s): bd31a8a
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: KpRT/task-t1
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - f1
8
+ model-index:
9
+ - name: task-t2
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # task-t2
17
+
18
+ This model is a fine-tuned version of [KpRT/task-t1](https://huggingface.co/KpRT/task-t1) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.3666
21
+ - F1: 0.7591
22
+ - Chronic Disease F1: 0.7643
23
+ - Chronic Disease Num: 2090
24
+ - Cancer F1: 0.6815
25
+ - Cancer Num: 896
26
+ - Allergy F1: 0.7304
27
+ - Allergy Num: 200
28
+ - Treatment F1: 0.7803
29
+ - Treatment Num: 3185
30
+ - Other F1: 0
31
+ - Other Num: 0
32
+
33
+ ## Model description
34
+
35
+ More information needed
36
+
37
+ ## Intended uses & limitations
38
+
39
+ More information needed
40
+
41
+ ## Training and evaluation data
42
+
43
+ More information needed
44
+
45
+ ## Training procedure
46
+
47
+ ### Training hyperparameters
48
+
49
+ The following hyperparameters were used during training:
50
+ - learning_rate: 2e-05
51
+ - train_batch_size: 16
52
+ - eval_batch_size: 16
53
+ - seed: 42
54
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
55
+ - lr_scheduler_type: linear
56
+ - num_epochs: 2
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Chronic Disease F1 | Chronic Disease Num | Cancer F1 | Cancer Num | Allergy F1 | Allergy Num | Treatment F1 | Treatment Num | Other F1 | Other Num |
61
+ |:-------------:|:------:|:----:|:---------------:|:------:|:------------------:|:-------------------:|:---------:|:----------:|:----------:|:-----------:|:------------:|:-------------:|:--------:|:---------:|
62
+ | 0.4565 | 0.3049 | 100 | 0.4226 | 0.7177 | 0.7053 | 2090 | 0.6397 | 896 | 0.6633 | 200 | 0.7524 | 3185 | 0 | 0 |
63
+ | 0.4055 | 0.6098 | 200 | 0.3888 | 0.7396 | 0.7399 | 2090 | 0.6684 | 896 | 0.5989 | 200 | 0.7673 | 3185 | 0 | 0 |
64
+ | 0.4327 | 0.9146 | 300 | 0.3818 | 0.7441 | 0.7441 | 2090 | 0.6614 | 896 | 0.7506 | 200 | 0.7684 | 3185 | 0 | 0 |
65
+ | 0.3348 | 1.2195 | 400 | 0.3783 | 0.7518 | 0.7459 | 2090 | 0.6825 | 896 | 0.7032 | 200 | 0.7778 | 3185 | 0 | 0 |
66
+ | 0.3207 | 1.5244 | 500 | 0.3701 | 0.7597 | 0.7619 | 2090 | 0.6830 | 896 | 0.7457 | 200 | 0.7825 | 3185 | 0 | 0 |
67
+ | 0.3224 | 1.8293 | 600 | 0.3666 | 0.7591 | 0.7643 | 2090 | 0.6815 | 896 | 0.7304 | 200 | 0.7803 | 3185 | 0 | 0 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.42.4
73
+ - Pytorch 2.3.1+cu121
74
+ - Datasets 2.20.0
75
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "KpRT/task-t1",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "O",
14
+ "1": "B-treatment",
15
+ "2": "I-treatment",
16
+ "3": "B-chronic_disease",
17
+ "4": "I-chronic_disease",
18
+ "5": "B-cancer",
19
+ "6": "I-cancer",
20
+ "7": "B-allergy",
21
+ "8": "I-allergy",
22
+ "9": "B-other",
23
+ "10": "I-other"
24
+ },
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 3072,
27
+ "label2id": {
28
+ "B-allergy_name": 7,
29
+ "B-cancer": 5,
30
+ "B-chronic_disease": 3,
31
+ "B-other": 9,
32
+ "B-treatment": 1,
33
+ "I-allergy_name": 8,
34
+ "I-cancer": 6,
35
+ "I-chronic_disease": 4,
36
+ "I-other": 10,
37
+ "I-treatment": 2,
38
+ "O": 0
39
+ },
40
+ "layer_norm_eps": 1e-12,
41
+ "max_position_embeddings": 512,
42
+ "model_type": "bert",
43
+ "num_attention_heads": 12,
44
+ "num_hidden_layers": 12,
45
+ "pad_token_id": 0,
46
+ "position_embedding_type": "absolute",
47
+ "torch_dtype": "float32",
48
+ "transformers_version": "4.42.4",
49
+ "type_vocab_size": 2,
50
+ "use_cache": true,
51
+ "vocab_size": 30522
52
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a2de3bdafb2b5f62b5f9b456df86643d623575937419b722482cfe6f86c8c34
3
+ size 435623772
runs/Jul21_06-42-55_5891dff67884/events.out.tfevents.1721544177.5891dff67884.2327.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63a500efd383921f65a4226d4d67c8b1df2ba5ca1d7a6715ea7a7a0920541e9c
3
+ size 12215
runs/Jul21_06-51-39_5891dff67884/events.out.tfevents.1721544700.5891dff67884.2327.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c107b6e612f32195fe82fb5648faa9b00f581dc86288fde366beaca4e97a1c97
3
+ size 8954
runs/Jul21_06-53-51_5891dff67884/events.out.tfevents.1721544832.5891dff67884.2327.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0847a24b9fdbfd04020ff5dc7cbf21115874e2c9d0c8e5f48577c865c83e5fb6
3
+ size 12215
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
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
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "max_length": 512,
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "stride": 0,
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "truncation_side": "right",
57
+ "truncation_strategy": "longest_first",
58
+ "unk_token": "[UNK]"
59
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce0b04498ef91344b0c9158285150e49f7f9a26def6e43ef0bc6e966e6c02cd2
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff