hung200504 commited on
Commit
9a59773
1 Parent(s): d2de7ac

bert-cased

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: phiyodr/bert-base-finetuned-squad2
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - covid_qa_deepset
7
+ model-index:
8
+ - name: bert-covidqa
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
+ # bert-covidqa
16
+
17
+ This model is a fine-tuned version of [phiyodr/bert-base-finetuned-squad2](https://huggingface.co/phiyodr/bert-base-finetuned-squad2) on the covid_qa_deepset dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.6451
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 3e-05
39
+ - train_batch_size: 16
40
+ - eval_batch_size: 16
41
+ - seed: 42
42
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 1
45
+
46
+ ### Training results
47
+
48
+ | Training Loss | Epoch | Step | Validation Loss |
49
+ |:-------------:|:-----:|:----:|:---------------:|
50
+ | 0.5829 | 0.04 | 5 | 1.0001 |
51
+ | 0.7899 | 0.09 | 10 | 0.7849 |
52
+ | 0.5929 | 0.13 | 15 | 0.7851 |
53
+ | 0.691 | 0.18 | 20 | 0.7549 |
54
+ | 0.6383 | 0.22 | 25 | 0.7199 |
55
+ | 0.3216 | 0.26 | 30 | 0.7625 |
56
+ | 0.3273 | 0.31 | 35 | 0.8644 |
57
+ | 0.5909 | 0.35 | 40 | 0.7117 |
58
+ | 0.2556 | 0.39 | 45 | 0.6681 |
59
+ | 0.6896 | 0.44 | 50 | 0.7138 |
60
+ | 0.6066 | 0.48 | 55 | 0.6614 |
61
+ | 0.2602 | 0.53 | 60 | 0.6791 |
62
+ | 0.4034 | 0.57 | 65 | 0.7168 |
63
+ | 0.5511 | 0.61 | 70 | 0.7783 |
64
+ | 0.6313 | 0.66 | 75 | 0.7269 |
65
+ | 0.261 | 0.7 | 80 | 0.7106 |
66
+ | 0.4904 | 0.75 | 85 | 0.6735 |
67
+ | 0.4706 | 0.79 | 90 | 0.6370 |
68
+ | 0.4174 | 0.83 | 95 | 0.6355 |
69
+ | 0.3762 | 0.88 | 100 | 0.6356 |
70
+ | 0.5128 | 0.92 | 105 | 0.6429 |
71
+ | 0.553 | 0.96 | 110 | 0.6451 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.34.1
77
+ - Pytorch 2.1.0+cu118
78
+ - Datasets 2.14.5
79
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "phiyodr/bert-base-finetuned-squad2",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
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
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.34.1",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3671b3922eb3695dca708eb38a079fb7c7e5621ecfbf3f04bec0c85a903ea311
3
+ size 435640934
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
+ "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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
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
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:125def5c9e7eebd2be54a04b241736f9cc1c05ce9088ca93a652ead4f0ddd94f
3
+ size 4536
vocab.txt ADDED
The diff for this file is too large to render. See raw diff