Commit
路
c18e5e2
1
Parent(s):
0686567
bert-squad
Browse files- README.md +127 -0
- config.json +25 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +64 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: hung200504/bert-squadv2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: bert-covid-17
|
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-17
|
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.7620
|
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: 4
|
39 |
+
- eval_batch_size: 4
|
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.8507 | 0.01 | 5 | 1.7050 |
|
50 |
+
| 2.5037 | 0.03 | 10 | 1.1213 |
|
51 |
+
| 0.0842 | 0.04 | 15 | 1.4939 |
|
52 |
+
| 2.8332 | 0.06 | 20 | 1.4768 |
|
53 |
+
| 1.2692 | 0.07 | 25 | 1.2021 |
|
54 |
+
| 0.2025 | 0.08 | 30 | 1.1680 |
|
55 |
+
| 2.51 | 0.1 | 35 | 1.2461 |
|
56 |
+
| 1.1259 | 0.11 | 40 | 1.1270 |
|
57 |
+
| 1.0897 | 0.13 | 45 | 1.0785 |
|
58 |
+
| 1.3906 | 0.14 | 50 | 1.1147 |
|
59 |
+
| 0.927 | 0.15 | 55 | 1.1139 |
|
60 |
+
| 0.3758 | 0.17 | 60 | 1.3199 |
|
61 |
+
| 1.1277 | 0.18 | 65 | 1.3911 |
|
62 |
+
| 1.0594 | 0.2 | 70 | 1.3420 |
|
63 |
+
| 1.2825 | 0.21 | 75 | 1.2110 |
|
64 |
+
| 0.808 | 0.23 | 80 | 1.1443 |
|
65 |
+
| 1.5312 | 0.24 | 85 | 0.9526 |
|
66 |
+
| 2.018 | 0.25 | 90 | 0.9191 |
|
67 |
+
| 1.5825 | 0.27 | 95 | 1.3486 |
|
68 |
+
| 1.1372 | 0.28 | 100 | 0.9432 |
|
69 |
+
| 1.7199 | 0.3 | 105 | 0.8875 |
|
70 |
+
| 1.6011 | 0.31 | 110 | 0.9181 |
|
71 |
+
| 1.2766 | 0.32 | 115 | 0.8318 |
|
72 |
+
| 1.1237 | 0.34 | 120 | 0.8442 |
|
73 |
+
| 0.5508 | 0.35 | 125 | 0.9121 |
|
74 |
+
| 1.4098 | 0.37 | 130 | 0.9341 |
|
75 |
+
| 0.6475 | 0.38 | 135 | 1.0059 |
|
76 |
+
| 0.935 | 0.39 | 140 | 1.0911 |
|
77 |
+
| 0.9492 | 0.41 | 145 | 1.0617 |
|
78 |
+
| 1.0106 | 0.42 | 150 | 0.8882 |
|
79 |
+
| 0.8134 | 0.44 | 155 | 0.8288 |
|
80 |
+
| 0.58 | 0.45 | 160 | 0.8277 |
|
81 |
+
| 0.9716 | 0.46 | 165 | 0.8748 |
|
82 |
+
| 1.7163 | 0.48 | 170 | 0.9919 |
|
83 |
+
| 1.5798 | 0.49 | 175 | 0.8783 |
|
84 |
+
| 0.4907 | 0.51 | 180 | 0.8564 |
|
85 |
+
| 0.5704 | 0.52 | 185 | 1.1316 |
|
86 |
+
| 0.6746 | 0.54 | 190 | 1.2307 |
|
87 |
+
| 1.3695 | 0.55 | 195 | 1.0486 |
|
88 |
+
| 0.4738 | 0.56 | 200 | 0.9003 |
|
89 |
+
| 1.4755 | 0.58 | 205 | 0.8812 |
|
90 |
+
| 2.2741 | 0.59 | 210 | 0.8017 |
|
91 |
+
| 1.2088 | 0.61 | 215 | 0.7571 |
|
92 |
+
| 0.7497 | 0.62 | 220 | 0.7528 |
|
93 |
+
| 1.2208 | 0.63 | 225 | 0.7363 |
|
94 |
+
| 0.9775 | 0.65 | 230 | 0.7547 |
|
95 |
+
| 1.0131 | 0.66 | 235 | 0.7881 |
|
96 |
+
| 0.5256 | 0.68 | 240 | 0.8114 |
|
97 |
+
| 0.9784 | 0.69 | 245 | 0.8149 |
|
98 |
+
| 1.512 | 0.7 | 250 | 0.7748 |
|
99 |
+
| 0.0092 | 0.72 | 255 | 0.8031 |
|
100 |
+
| 0.4212 | 0.73 | 260 | 0.8552 |
|
101 |
+
| 1.401 | 0.75 | 265 | 0.8860 |
|
102 |
+
| 1.9551 | 0.76 | 270 | 0.8160 |
|
103 |
+
| 1.2076 | 0.77 | 275 | 0.7408 |
|
104 |
+
| 0.348 | 0.79 | 280 | 0.7252 |
|
105 |
+
| 0.6292 | 0.8 | 285 | 0.7186 |
|
106 |
+
| 0.8604 | 0.82 | 290 | 0.7170 |
|
107 |
+
| 0.8213 | 0.83 | 295 | 0.7139 |
|
108 |
+
| 0.5231 | 0.85 | 300 | 0.7190 |
|
109 |
+
| 0.7271 | 0.86 | 305 | 0.7393 |
|
110 |
+
| 0.3221 | 0.87 | 310 | 0.7759 |
|
111 |
+
| 1.0033 | 0.89 | 315 | 0.8094 |
|
112 |
+
| 0.1807 | 0.9 | 320 | 0.8364 |
|
113 |
+
| 1.9334 | 0.92 | 325 | 0.8349 |
|
114 |
+
| 1.2876 | 0.93 | 330 | 0.8080 |
|
115 |
+
| 0.8867 | 0.94 | 335 | 0.7826 |
|
116 |
+
| 0.6698 | 0.96 | 340 | 0.7800 |
|
117 |
+
| 1.2023 | 0.97 | 345 | 0.7761 |
|
118 |
+
| 1.4764 | 0.99 | 350 | 0.7647 |
|
119 |
+
| 0.3514 | 1.0 | 355 | 0.7620 |
|
120 |
+
|
121 |
+
|
122 |
+
### Framework versions
|
123 |
+
|
124 |
+
- Transformers 4.34.1
|
125 |
+
- Pytorch 2.1.0+cu118
|
126 |
+
- Datasets 2.14.6
|
127 |
+
- 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:04039cd711ce3d57ec009d679cc66f06eff7d8b93f49cb3e6aa8c4f7e92347d2
|
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:b53fae32370f6b2b28f82c8770361ae7a7822602382ba8712f119b849cfd53e7
|
3 |
+
size 4536
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|