hung200504
commited on
Commit
•
8c9e4ea
1
Parent(s):
7391c1d
bert-cased
Browse files- README.md +121 -0
- added_tokens.json +7 -0
- config.json +28 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +59 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-4.0
|
3 |
+
base_model: deepset/bert-base-cased-squad2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: bert-12
|
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-12
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [deepset/bert-base-cased-squad2](https://huggingface.co/deepset/bert-base-cased-squad2) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 5.4923
|
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: 2e-06
|
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 |
+
| 10.7735 | 0.05 | 5 | 11.9148 |
|
50 |
+
| 10.2311 | 0.09 | 10 | 11.2495 |
|
51 |
+
| 9.7299 | 0.14 | 15 | 10.3860 |
|
52 |
+
| 9.6068 | 0.18 | 20 | 9.5703 |
|
53 |
+
| 8.4179 | 0.23 | 25 | 8.8146 |
|
54 |
+
| 7.4033 | 0.28 | 30 | 8.1396 |
|
55 |
+
| 6.9589 | 0.32 | 35 | 7.5510 |
|
56 |
+
| 6.7006 | 0.37 | 40 | 7.0590 |
|
57 |
+
| 6.4072 | 0.41 | 45 | 6.6821 |
|
58 |
+
| 5.9393 | 0.46 | 50 | 6.4175 |
|
59 |
+
| 5.9838 | 0.5 | 55 | 6.2292 |
|
60 |
+
| 5.7825 | 0.55 | 60 | 6.1019 |
|
61 |
+
| 5.4686 | 0.6 | 65 | 6.0218 |
|
62 |
+
| 5.4427 | 0.64 | 70 | 5.9665 |
|
63 |
+
| 5.3708 | 0.69 | 75 | 5.9212 |
|
64 |
+
| 5.5801 | 0.73 | 80 | 5.8795 |
|
65 |
+
| 5.3894 | 0.78 | 85 | 5.8378 |
|
66 |
+
| 5.4065 | 0.83 | 90 | 5.7994 |
|
67 |
+
| 5.2206 | 0.87 | 95 | 5.7603 |
|
68 |
+
| 5.2044 | 0.92 | 100 | 5.7286 |
|
69 |
+
| 5.1113 | 0.96 | 105 | 5.7037 |
|
70 |
+
| 5.0342 | 1.01 | 110 | 5.6786 |
|
71 |
+
| 4.8333 | 1.06 | 115 | 5.6551 |
|
72 |
+
| 5.0003 | 1.1 | 120 | 5.6361 |
|
73 |
+
| 4.7931 | 1.15 | 125 | 5.6200 |
|
74 |
+
| 4.8148 | 1.19 | 130 | 5.6066 |
|
75 |
+
| 4.9347 | 1.24 | 135 | 5.5940 |
|
76 |
+
| 5.0362 | 1.28 | 140 | 5.5797 |
|
77 |
+
| 4.8616 | 1.33 | 145 | 5.5692 |
|
78 |
+
| 4.3509 | 1.38 | 150 | 5.5624 |
|
79 |
+
| 4.6121 | 1.42 | 155 | 5.5595 |
|
80 |
+
| 4.3364 | 1.47 | 160 | 5.5624 |
|
81 |
+
| 4.5721 | 1.51 | 165 | 5.5667 |
|
82 |
+
| 4.4084 | 1.56 | 170 | 5.5684 |
|
83 |
+
| 4.3097 | 1.61 | 175 | 5.5703 |
|
84 |
+
| 4.3166 | 1.65 | 180 | 5.5751 |
|
85 |
+
| 4.257 | 1.7 | 185 | 5.5807 |
|
86 |
+
| 3.9935 | 1.74 | 190 | 5.5841 |
|
87 |
+
| 4.1078 | 1.79 | 195 | 5.5872 |
|
88 |
+
| 4.2609 | 1.83 | 200 | 5.5840 |
|
89 |
+
| 4.4875 | 1.88 | 205 | 5.5797 |
|
90 |
+
| 4.1496 | 1.93 | 210 | 5.5747 |
|
91 |
+
| 4.333 | 1.97 | 215 | 5.5652 |
|
92 |
+
| 3.9003 | 2.02 | 220 | 5.5594 |
|
93 |
+
| 3.838 | 2.06 | 225 | 5.5551 |
|
94 |
+
| 3.8715 | 2.11 | 230 | 5.5525 |
|
95 |
+
| 4.1982 | 2.16 | 235 | 5.5462 |
|
96 |
+
| 3.9447 | 2.2 | 240 | 5.5395 |
|
97 |
+
| 3.8479 | 2.25 | 245 | 5.5352 |
|
98 |
+
| 3.9253 | 2.29 | 250 | 5.5338 |
|
99 |
+
| 4.0716 | 2.34 | 255 | 5.5316 |
|
100 |
+
| 4.0531 | 2.39 | 260 | 5.5295 |
|
101 |
+
| 4.1593 | 2.43 | 265 | 5.5262 |
|
102 |
+
| 3.8605 | 2.48 | 270 | 5.5230 |
|
103 |
+
| 4.1406 | 2.52 | 275 | 5.5170 |
|
104 |
+
| 4.1568 | 2.57 | 280 | 5.5105 |
|
105 |
+
| 3.5203 | 2.61 | 285 | 5.5061 |
|
106 |
+
| 3.8279 | 2.66 | 290 | 5.5042 |
|
107 |
+
| 4.3043 | 2.71 | 295 | 5.5008 |
|
108 |
+
| 3.9359 | 2.75 | 300 | 5.4978 |
|
109 |
+
| 3.6847 | 2.8 | 305 | 5.4954 |
|
110 |
+
| 3.5765 | 2.84 | 310 | 5.4940 |
|
111 |
+
| 4.035 | 2.89 | 315 | 5.4927 |
|
112 |
+
| 3.4865 | 2.94 | 320 | 5.4924 |
|
113 |
+
| 3.7252 | 2.98 | 325 | 5.4923 |
|
114 |
+
|
115 |
+
|
116 |
+
### Framework versions
|
117 |
+
|
118 |
+
- Transformers 4.34.0
|
119 |
+
- Pytorch 2.0.1+cu118
|
120 |
+
- Datasets 2.14.5
|
121 |
+
- Tokenizers 0.14.1
|
added_tokens.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[CLS]": 101,
|
3 |
+
"[MASK]": 103,
|
4 |
+
"[PAD]": 0,
|
5 |
+
"[SEP]": 102,
|
6 |
+
"[UNK]": 100
|
7 |
+
}
|
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.0",
|
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:29d2979e0cd86c4598d2a45a88cb00118d5b414ba93c8c5a13dc0af13babc49a
|
3 |
+
size 430952617
|
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,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"additional_special_tokens": [],
|
45 |
+
"clean_up_tokenization_spaces": true,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": false,
|
49 |
+
"mask_token": "[MASK]",
|
50 |
+
"max_len": 512,
|
51 |
+
"model_max_length": 512,
|
52 |
+
"never_split": null,
|
53 |
+
"pad_token": "[PAD]",
|
54 |
+
"sep_token": "[SEP]",
|
55 |
+
"strip_accents": null,
|
56 |
+
"tokenize_chinese_chars": true,
|
57 |
+
"tokenizer_class": "BertTokenizer",
|
58 |
+
"unk_token": "[UNK]"
|
59 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10279b95126dcb42fe65fe56b911e40a04cdc950dd3715c31965395c606927bf
|
3 |
+
size 4027
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|