hung200504
commited on
Commit
路
cb513a2
1
Parent(s):
dda9158
bert-squad
Browse files- README.md +162 -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,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: hung200504/bert-squadv2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: bert-covid-10
|
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-10
|
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.7771
|
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: 3
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
+
| 4.5591 | 0.03 | 5 | 1.2013 |
|
50 |
+
| 1.26 | 0.06 | 10 | 1.4395 |
|
51 |
+
| 1.0119 | 0.08 | 15 | 1.0122 |
|
52 |
+
| 1.2415 | 0.11 | 20 | 0.9416 |
|
53 |
+
| 1.2023 | 0.14 | 25 | 0.9744 |
|
54 |
+
| 0.6522 | 0.17 | 30 | 1.0264 |
|
55 |
+
| 0.7933 | 0.2 | 35 | 0.9108 |
|
56 |
+
| 0.8563 | 0.22 | 40 | 0.8834 |
|
57 |
+
| 1.7054 | 0.25 | 45 | 0.7498 |
|
58 |
+
| 1.2612 | 0.28 | 50 | 0.9725 |
|
59 |
+
| 1.5539 | 0.31 | 55 | 0.7606 |
|
60 |
+
| 0.9714 | 0.34 | 60 | 0.7498 |
|
61 |
+
| 0.9315 | 0.37 | 65 | 0.8180 |
|
62 |
+
| 0.785 | 0.39 | 70 | 0.7489 |
|
63 |
+
| 0.8412 | 0.42 | 75 | 0.7245 |
|
64 |
+
| 0.771 | 0.45 | 80 | 0.7001 |
|
65 |
+
| 0.9954 | 0.48 | 85 | 0.7978 |
|
66 |
+
| 0.8955 | 0.51 | 90 | 0.7512 |
|
67 |
+
| 0.5199 | 0.53 | 95 | 0.7987 |
|
68 |
+
| 0.8306 | 0.56 | 100 | 0.7427 |
|
69 |
+
| 1.674 | 0.59 | 105 | 0.7486 |
|
70 |
+
| 1.07 | 0.62 | 110 | 0.7545 |
|
71 |
+
| 1.1531 | 0.65 | 115 | 0.7376 |
|
72 |
+
| 0.4512 | 0.67 | 120 | 0.7090 |
|
73 |
+
| 1.2562 | 0.7 | 125 | 0.8047 |
|
74 |
+
| 0.3477 | 0.73 | 130 | 0.8520 |
|
75 |
+
| 1.2624 | 0.76 | 135 | 0.8251 |
|
76 |
+
| 0.9207 | 0.79 | 140 | 0.9866 |
|
77 |
+
| 0.8576 | 0.81 | 145 | 0.8059 |
|
78 |
+
| 0.9542 | 0.84 | 150 | 0.7819 |
|
79 |
+
| 0.566 | 0.87 | 155 | 0.7930 |
|
80 |
+
| 0.5193 | 0.9 | 160 | 0.7936 |
|
81 |
+
| 1.1654 | 0.93 | 165 | 0.7043 |
|
82 |
+
| 0.6106 | 0.96 | 170 | 0.7801 |
|
83 |
+
| 1.0075 | 0.98 | 175 | 0.8119 |
|
84 |
+
| 0.3914 | 1.01 | 180 | 0.6728 |
|
85 |
+
| 0.582 | 1.04 | 185 | 0.7447 |
|
86 |
+
| 0.5797 | 1.07 | 190 | 0.7109 |
|
87 |
+
| 0.2599 | 1.1 | 195 | 0.7113 |
|
88 |
+
| 0.6996 | 1.12 | 200 | 0.7092 |
|
89 |
+
| 0.6947 | 1.15 | 205 | 0.6919 |
|
90 |
+
| 0.9602 | 1.18 | 210 | 0.6917 |
|
91 |
+
| 0.3383 | 1.21 | 215 | 0.7037 |
|
92 |
+
| 0.2811 | 1.24 | 220 | 0.6921 |
|
93 |
+
| 0.5086 | 1.26 | 225 | 0.7445 |
|
94 |
+
| 0.6181 | 1.29 | 230 | 0.7626 |
|
95 |
+
| 0.5704 | 1.32 | 235 | 0.7376 |
|
96 |
+
| 0.4165 | 1.35 | 240 | 0.7283 |
|
97 |
+
| 0.6875 | 1.38 | 245 | 0.7215 |
|
98 |
+
| 0.3372 | 1.4 | 250 | 0.7111 |
|
99 |
+
| 0.8581 | 1.43 | 255 | 0.7325 |
|
100 |
+
| 0.2464 | 1.46 | 260 | 0.7388 |
|
101 |
+
| 0.4273 | 1.49 | 265 | 0.7421 |
|
102 |
+
| 0.5893 | 1.52 | 270 | 0.7215 |
|
103 |
+
| 0.3417 | 1.54 | 275 | 0.7113 |
|
104 |
+
| 0.3248 | 1.57 | 280 | 0.7255 |
|
105 |
+
| 0.3868 | 1.6 | 285 | 0.7591 |
|
106 |
+
| 0.6292 | 1.63 | 290 | 0.7761 |
|
107 |
+
| 0.8929 | 1.66 | 295 | 0.7377 |
|
108 |
+
| 0.5528 | 1.69 | 300 | 0.7600 |
|
109 |
+
| 0.7983 | 1.71 | 305 | 0.7501 |
|
110 |
+
| 0.5109 | 1.74 | 310 | 0.7427 |
|
111 |
+
| 0.2947 | 1.77 | 315 | 0.7341 |
|
112 |
+
| 0.735 | 1.8 | 320 | 0.7268 |
|
113 |
+
| 0.4768 | 1.83 | 325 | 0.7358 |
|
114 |
+
| 0.5174 | 1.85 | 330 | 0.7587 |
|
115 |
+
| 0.7559 | 1.88 | 335 | 0.7637 |
|
116 |
+
| 0.7588 | 1.91 | 340 | 0.8034 |
|
117 |
+
| 0.6151 | 1.94 | 345 | 0.7513 |
|
118 |
+
| 0.6112 | 1.97 | 350 | 0.7014 |
|
119 |
+
| 0.9156 | 1.99 | 355 | 0.6862 |
|
120 |
+
| 0.6369 | 2.02 | 360 | 0.6850 |
|
121 |
+
| 0.5036 | 2.05 | 365 | 0.7085 |
|
122 |
+
| 0.2256 | 2.08 | 370 | 0.7550 |
|
123 |
+
| 0.2673 | 2.11 | 375 | 0.7604 |
|
124 |
+
| 0.3033 | 2.13 | 380 | 0.7795 |
|
125 |
+
| 0.496 | 2.16 | 385 | 0.7891 |
|
126 |
+
| 0.3478 | 2.19 | 390 | 0.7892 |
|
127 |
+
| 0.5106 | 2.22 | 395 | 0.7879 |
|
128 |
+
| 0.1652 | 2.25 | 400 | 0.7844 |
|
129 |
+
| 0.3427 | 2.28 | 405 | 0.7969 |
|
130 |
+
| 0.4543 | 2.3 | 410 | 0.8061 |
|
131 |
+
| 0.3494 | 2.33 | 415 | 0.8045 |
|
132 |
+
| 0.4218 | 2.36 | 420 | 0.7992 |
|
133 |
+
| 0.7607 | 2.39 | 425 | 0.7786 |
|
134 |
+
| 0.5569 | 2.42 | 430 | 0.7579 |
|
135 |
+
| 0.1897 | 2.44 | 435 | 0.7475 |
|
136 |
+
| 0.292 | 2.47 | 440 | 0.7457 |
|
137 |
+
| 0.3637 | 2.5 | 445 | 0.7530 |
|
138 |
+
| 0.2565 | 2.53 | 450 | 0.7574 |
|
139 |
+
| 0.2058 | 2.56 | 455 | 0.7601 |
|
140 |
+
| 0.2844 | 2.58 | 460 | 0.7562 |
|
141 |
+
| 0.7811 | 2.61 | 465 | 0.7556 |
|
142 |
+
| 0.4162 | 2.64 | 470 | 0.7603 |
|
143 |
+
| 0.4668 | 2.67 | 475 | 0.7696 |
|
144 |
+
| 0.2115 | 2.7 | 480 | 0.7681 |
|
145 |
+
| 0.3403 | 2.72 | 485 | 0.7623 |
|
146 |
+
| 0.0648 | 2.75 | 490 | 0.7618 |
|
147 |
+
| 0.789 | 2.78 | 495 | 0.7654 |
|
148 |
+
| 0.3259 | 2.81 | 500 | 0.7690 |
|
149 |
+
| 0.4558 | 2.84 | 505 | 0.7713 |
|
150 |
+
| 0.4416 | 2.87 | 510 | 0.7708 |
|
151 |
+
| 0.0154 | 2.89 | 515 | 0.7714 |
|
152 |
+
| 0.0503 | 2.92 | 520 | 0.7730 |
|
153 |
+
| 0.3909 | 2.95 | 525 | 0.7750 |
|
154 |
+
| 0.1983 | 2.98 | 530 | 0.7771 |
|
155 |
+
|
156 |
+
|
157 |
+
### Framework versions
|
158 |
+
|
159 |
+
- Transformers 4.34.1
|
160 |
+
- Pytorch 2.1.0+cu118
|
161 |
+
- Datasets 2.14.6
|
162 |
+
- 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:5513d096b7fd52a959e12c4ad9ed8edb79ca461f0970c53d4f3182fee38dd503
|
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:fdb63eee00b2b18b925afebd3690baa3d32b4c28da46f7423151d91be057874a
|
3 |
+
size 4536
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|