hung200504 commited on
Commit
93d687f
1 Parent(s): 15536c3

bert-squad

Browse files
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: hung200504/bert-squadv2
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: bert-covid-21
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # bert-covid-21
15
+
16
+ This model is a fine-tuned version of [hung200504/bert-squadv2](https://huggingface.co/hung200504/bert-squadv2) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.6103
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 3e-05
38
+ - train_batch_size: 8
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 1
44
+
45
+ ### Training results
46
+
47
+ | Training Loss | Epoch | Step | Validation Loss |
48
+ |:-------------:|:-----:|:----:|:---------------:|
49
+ | 4.2561 | 0.03 | 5 | 1.1801 |
50
+ | 1.1175 | 0.06 | 10 | 0.9406 |
51
+ | 1.2258 | 0.08 | 15 | 0.7456 |
52
+ | 0.8306 | 0.11 | 20 | 0.5948 |
53
+ | 0.5743 | 0.14 | 25 | 0.5835 |
54
+ | 0.4958 | 0.17 | 30 | 0.7125 |
55
+ | 0.4448 | 0.2 | 35 | 0.6664 |
56
+ | 0.8538 | 0.22 | 40 | 0.7098 |
57
+ | 0.8115 | 0.25 | 45 | 0.6869 |
58
+ | 0.9364 | 0.28 | 50 | 0.5814 |
59
+ | 1.0413 | 0.31 | 55 | 0.5434 |
60
+ | 0.7219 | 0.34 | 60 | 0.5274 |
61
+ | 0.6852 | 0.37 | 65 | 0.5764 |
62
+ | 0.4603 | 0.39 | 70 | 0.6586 |
63
+ | 0.8428 | 0.42 | 75 | 0.7742 |
64
+ | 0.3679 | 0.45 | 80 | 0.7430 |
65
+ | 1.0074 | 0.48 | 85 | 0.6630 |
66
+ | 0.8531 | 0.51 | 90 | 0.5403 |
67
+ | 0.4513 | 0.53 | 95 | 0.5452 |
68
+ | 0.3039 | 0.56 | 100 | 0.6193 |
69
+ | 1.7221 | 0.59 | 105 | 0.6734 |
70
+ | 0.8286 | 0.62 | 110 | 0.5892 |
71
+ | 0.6836 | 0.65 | 115 | 0.5413 |
72
+ | 0.2059 | 0.67 | 120 | 0.5407 |
73
+ | 0.8272 | 0.7 | 125 | 0.5446 |
74
+ | 0.3456 | 0.73 | 130 | 0.5652 |
75
+ | 1.1423 | 0.76 | 135 | 0.5697 |
76
+ | 0.2456 | 0.79 | 140 | 0.5737 |
77
+ | 0.7639 | 0.81 | 145 | 0.5767 |
78
+ | 0.5946 | 0.84 | 150 | 0.5565 |
79
+ | 0.0976 | 0.87 | 155 | 0.5857 |
80
+ | 0.3246 | 0.9 | 160 | 0.6162 |
81
+ | 1.039 | 0.93 | 165 | 0.6297 |
82
+ | 0.6297 | 0.96 | 170 | 0.6217 |
83
+ | 1.1724 | 0.98 | 175 | 0.6103 |
84
+
85
+
86
+ ### Framework versions
87
+
88
+ - Transformers 4.34.1
89
+ - Pytorch 2.1.0+cu118
90
+ - Datasets 2.14.6
91
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "hung200504/bert-squadv2",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
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
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.34.1",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0862481a53c07636d5d78c7edc7f0d81f8388000aabc4b76924ab9b657804d09
3
+ size 435640934
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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 384,
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "only_second",
63
+ "unk_token": "[UNK]"
64
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:174a711d5c39302b7a40ed673b70c0e4b345c84962066656bc8d38bf3031d324
3
+ size 4536
vocab.txt ADDED
The diff for this file is too large to render. See raw diff