VampeeHuntee commited on
Commit
cf04340
1 Parent(s): b4bed3e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ base_model: vinai/phobert-base-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: phobert-base-v2_baseline_syllables
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # phobert-base-v2_baseline_syllables
16
+
17
+ This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on the covid19_ner dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.0934
20
+ - Patient Id: 0.9852
21
+ - Name: 0.9337
22
+ - Gender: 0.9489
23
+ - Age: 0.9644
24
+ - Job: 0.7601
25
+ - Location: 0.9449
26
+ - Organization: 0.8970
27
+ - Date: 0.9892
28
+ - Symptom And Disease: 0.8754
29
+ - Transportation: 1.0
30
+ - F1 Macro: 0.9299
31
+ - F1 Micro: 0.9455
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: 8
52
+ - eval_batch_size: 8
53
+ - seed: 42
54
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
55
+ - lr_scheduler_type: linear
56
+ - num_epochs: 5
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Patient Id | Name | Gender | Age | Job | Location | Organization | Date | Symptom And Disease | Transportation | F1 Macro | F1 Micro |
61
+ |:-------------:|:-----:|:----:|:---------------:|:----------:|:------:|:------:|:------:|:------:|:--------:|:------------:|:------:|:-------------------:|:--------------:|:--------:|:--------:|
62
+ | 0.4655 | 1.0 | 629 | 0.2020 | 0.9690 | 0.9276 | 0.8866 | 0.8962 | 0.0 | 0.9159 | 0.8135 | 0.9860 | 0.8368 | 0.9486 | 0.8180 | 0.9093 |
63
+ | 0.1235 | 2.0 | 1258 | 0.1219 | 0.9761 | 0.9125 | 0.9529 | 0.9642 | 0.0 | 0.9419 | 0.8810 | 0.9883 | 0.8545 | 0.9943 | 0.8466 | 0.9336 |
64
+ | 0.0713 | 3.0 | 1887 | 0.1015 | 0.9789 | 0.9355 | 0.9541 | 0.9699 | 0.7077 | 0.9428 | 0.8891 | 0.9878 | 0.8667 | 1.0 | 0.9232 | 0.9418 |
65
+ | 0.0502 | 4.0 | 2516 | 0.0950 | 0.9824 | 0.9291 | 0.9485 | 0.9657 | 0.7442 | 0.9455 | 0.8899 | 0.9865 | 0.8698 | 1.0 | 0.9262 | 0.9435 |
66
+ | 0.0405 | 5.0 | 3145 | 0.0934 | 0.9852 | 0.9337 | 0.9489 | 0.9644 | 0.7601 | 0.9449 | 0.8970 | 0.9892 | 0.8754 | 1.0 | 0.9299 | 0.9455 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.41.2
72
+ - Pytorch 2.1.2
73
+ - Datasets 2.19.2
74
+ - Tokenizers 0.19.1
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<mask>": 64000
3
+ }
bpe.codes ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vinai/phobert-base-v2",
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "O",
15
+ "1": "B-PATIENT_ID",
16
+ "2": "I-PATIENT_ID",
17
+ "3": "B-NAME",
18
+ "4": "I-NAME",
19
+ "5": "B-GENDER",
20
+ "6": "I-GENDER",
21
+ "7": "B-AGE",
22
+ "8": "I-AGE",
23
+ "9": "B-JOB",
24
+ "10": "I-JOB",
25
+ "11": "B-LOCATION",
26
+ "12": "I-LOCATION",
27
+ "13": "B-ORGANIZATION",
28
+ "14": "I-ORGANIZATION",
29
+ "15": "B-DATE",
30
+ "16": "I-DATE",
31
+ "17": "B-SYMPTOM_AND_DISEASE",
32
+ "18": "I-SYMPTOM_AND_DISEASE",
33
+ "19": "B-TRANSPORTATION",
34
+ "20": "I-TRANSPORTATION"
35
+ },
36
+ "initializer_range": 0.02,
37
+ "intermediate_size": 3072,
38
+ "label2id": {
39
+ "B-AGE": 7,
40
+ "B-DATE": 15,
41
+ "B-GENDER": 5,
42
+ "B-JOB": 9,
43
+ "B-LOCATION": 11,
44
+ "B-NAME": 3,
45
+ "B-ORGANIZATION": 13,
46
+ "B-PATIENT_ID": 1,
47
+ "B-SYMPTOM_AND_DISEASE": 17,
48
+ "B-TRANSPORTATION": 19,
49
+ "I-AGE": 8,
50
+ "I-DATE": 16,
51
+ "I-GENDER": 6,
52
+ "I-JOB": 10,
53
+ "I-LOCATION": 12,
54
+ "I-NAME": 4,
55
+ "I-ORGANIZATION": 14,
56
+ "I-PATIENT_ID": 2,
57
+ "I-SYMPTOM_AND_DISEASE": 18,
58
+ "I-TRANSPORTATION": 20,
59
+ "O": 0
60
+ },
61
+ "layer_norm_eps": 1e-05,
62
+ "max_position_embeddings": 258,
63
+ "model_type": "roberta",
64
+ "num_attention_heads": 12,
65
+ "num_hidden_layers": 12,
66
+ "pad_token_id": 1,
67
+ "position_embedding_type": "absolute",
68
+ "tokenizer_class": "PhobertTokenizer",
69
+ "torch_dtype": "float32",
70
+ "transformers_version": "4.41.2",
71
+ "type_vocab_size": 1,
72
+ "use_cache": true,
73
+ "vocab_size": 64001
74
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c45390425d82f1115199c4fc7b334a3ba8d8f61f91ce88c4be89664450f644d3
3
+ size 537719244
special_tokens_map.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": "<mask>",
6
+ "pad_token": "<pad>",
7
+ "sep_token": "</s>",
8
+ "unk_token": "<unk>"
9
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "64000": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "PhobertTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fd64e83a0b407677068417fc6031086a4b4ca2ea3aaff5997984cc45204dc5f
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff