KpRT commited on
Commit
211f974
·
verified ·
1 Parent(s): 1e1b975
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: KpRT/task-t2
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - f1
8
+ model-index:
9
+ - name: task-t3
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-t3
17
+
18
+ This model is a fine-tuned version of [KpRT/task-t2](https://huggingface.co/KpRT/task-t2) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.3985
21
+ - F1: 0.7669
22
+ - Chronic Disease F1: 0.7755
23
+ - Chronic Disease Num: 2507
24
+ - Cancer F1: 0.7152
25
+ - Cancer Num: 753
26
+ - Allergy F1: 0.7833
27
+ - Allergy Num: 271
28
+ - Treatment F1: 0.7715
29
+ - Treatment Num: 2963
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.236 | 0.3135 | 100 | 0.4006 | 0.7553 | 0.7577 | 2507 | 0.7027 | 753 | 0.7767 | 271 | 0.7650 | 2963 | 0 | 0 |
63
+ | 0.2141 | 0.6270 | 200 | 0.4293 | 0.7513 | 0.7662 | 2507 | 0.6703 | 753 | 0.7850 | 271 | 0.7577 | 2963 | 0 | 0 |
64
+ | 0.2483 | 0.9404 | 300 | 0.4024 | 0.7628 | 0.7710 | 2507 | 0.6994 | 753 | 0.7765 | 271 | 0.7712 | 2963 | 0 | 0 |
65
+ | 0.19 | 1.2539 | 400 | 0.4005 | 0.7666 | 0.7764 | 2507 | 0.7010 | 753 | 0.8069 | 271 | 0.7720 | 2963 | 0 | 0 |
66
+ | 0.1997 | 1.5674 | 500 | 0.3986 | 0.7698 | 0.7786 | 2507 | 0.7137 | 753 | 0.7946 | 271 | 0.7750 | 2963 | 0 | 0 |
67
+ | 0.2297 | 1.8809 | 600 | 0.3985 | 0.7669 | 0.7755 | 2507 | 0.7152 | 753 | 0.7833 | 271 | 0.7715 | 2963 | 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-t2",
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:b869479c9ef0a8a6aa23e9b5a936bffb8d4003cad0468619410630c615e0ccf8
3
+ size 435623772
runs/Jul21_07-00-42_5891dff67884/events.out.tfevents.1721545244.5891dff67884.2327.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:753086277c79902950767e1731c9fda0007331c8cde3697da48b5bc995948c43
3
+ size 12215
runs/Jul21_07-05-55_5891dff67884/events.out.tfevents.1721545557.5891dff67884.2327.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03a393007b06bd67bc95c3714e0b96fa4f4a01b4facd922a9c409fe131cc04d8
3
+ size 12216
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:7d820e997d050c2da2f77e2da6b7bc18260932510c59e698c86d2a8237a83355
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff