hung200504 commited on
Commit
2bc1b38
1 Parent(s): 2c39eb3

bert-cased

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ base_model: deepset/bert-base-cased-squad2
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - covid_qa_deepset
8
+ model-index:
9
+ - name: bert-covidqa-1
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
+ # bert-covidqa-1
17
+
18
+ This model is a fine-tuned version of [deepset/bert-base-cased-squad2](https://huggingface.co/deepset/bert-base-cased-squad2) on the covid_qa_deepset dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.4528
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 3e-05
40
+ - train_batch_size: 16
41
+ - eval_batch_size: 16
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 1
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss |
50
+ |:-------------:|:-----:|:----:|:---------------:|
51
+ | 1.0353 | 0.04 | 5 | 0.7327 |
52
+ | 1.1116 | 0.09 | 10 | 0.5674 |
53
+ | 0.8086 | 0.13 | 15 | 0.5025 |
54
+ | 0.814 | 0.18 | 20 | 0.5620 |
55
+ | 0.4168 | 0.22 | 25 | 0.6628 |
56
+ | 0.7069 | 0.26 | 30 | 0.5637 |
57
+ | 0.4168 | 0.31 | 35 | 0.4855 |
58
+ | 0.5636 | 0.35 | 40 | 0.4708 |
59
+ | 0.398 | 0.39 | 45 | 0.4712 |
60
+ | 0.4681 | 0.44 | 50 | 0.5235 |
61
+ | 0.34 | 0.48 | 55 | 0.5863 |
62
+ | 0.2484 | 0.53 | 60 | 0.6422 |
63
+ | 0.4526 | 0.57 | 65 | 0.6614 |
64
+ | 0.2941 | 0.61 | 70 | 0.6210 |
65
+ | 0.7383 | 0.66 | 75 | 0.5334 |
66
+ | 0.7337 | 0.7 | 80 | 0.4612 |
67
+ | 0.4082 | 0.75 | 85 | 0.4447 |
68
+ | 0.3517 | 0.79 | 90 | 0.4429 |
69
+ | 0.341 | 0.83 | 95 | 0.4446 |
70
+ | 0.2751 | 0.88 | 100 | 0.4536 |
71
+ | 0.4916 | 0.92 | 105 | 0.4566 |
72
+ | 0.4895 | 0.96 | 110 | 0.4528 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.34.1
78
+ - Pytorch 2.1.0+cu118
79
+ - Datasets 2.14.5
80
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "deepset/bert-base-cased-squad2",
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
+ "language": "english",
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "name": "Bert",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 0,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.34.1",
25
+ "type_vocab_size": 2,
26
+ "use_cache": true,
27
+ "vocab_size": 28996
28
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d1b50a725249eff5982d518f9922bc012c1be79380aec2cd9eec792179c17d
3
+ size 430953062
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4ceb195ce20b408c3f534fee2c04b0b18d73a633b570814b73d8f9d496b9877
3
+ size 4536
vocab.txt ADDED
The diff for this file is too large to render. See raw diff