hung200504 commited on
Commit
226efd7
1 Parent(s): 9c69de7

bert-cased

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: phiyodr/bert-base-finetuned-squad2
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: test-bert-1
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # test-bert-1
14
+
15
+ This model is a fine-tuned version of [phiyodr/bert-base-finetuned-squad2](https://huggingface.co/phiyodr/bert-base-finetuned-squad2) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 8.3972
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 3e-05
37
+ - train_batch_size: 16
38
+ - eval_batch_size: 16
39
+ - seed: 42
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - num_epochs: 3
43
+
44
+ ### Training results
45
+
46
+ | Training Loss | Epoch | Step | Validation Loss |
47
+ |:-------------:|:-----:|:----:|:---------------:|
48
+ | 8.3538 | 0.09 | 5 | 9.3652 |
49
+ | 8.271 | 0.18 | 10 | 9.3025 |
50
+ | 8.2794 | 0.27 | 15 | 9.2420 |
51
+ | 8.0966 | 0.36 | 20 | 9.1837 |
52
+ | 8.1925 | 0.45 | 25 | 9.1277 |
53
+ | 8.1126 | 0.55 | 30 | 9.0740 |
54
+ | 7.711 | 0.64 | 35 | 9.0230 |
55
+ | 7.5978 | 0.73 | 40 | 8.9749 |
56
+ | 8.0276 | 0.82 | 45 | 8.9287 |
57
+ | 7.7477 | 0.91 | 50 | 8.8839 |
58
+ | 7.5803 | 1.0 | 55 | 8.8422 |
59
+ | 7.6439 | 1.09 | 60 | 8.8022 |
60
+ | 7.4937 | 1.18 | 65 | 8.7649 |
61
+ | 7.6905 | 1.27 | 70 | 8.7294 |
62
+ | 7.7922 | 1.36 | 75 | 8.6950 |
63
+ | 7.7377 | 1.45 | 80 | 8.6623 |
64
+ | 7.8642 | 1.55 | 85 | 8.6316 |
65
+ | 7.5909 | 1.64 | 90 | 8.6025 |
66
+ | 7.4629 | 1.73 | 95 | 8.5758 |
67
+ | 7.5195 | 1.82 | 100 | 8.5512 |
68
+ | 7.664 | 1.91 | 105 | 8.5282 |
69
+ | 7.3092 | 2.0 | 110 | 8.5074 |
70
+ | 7.015 | 2.09 | 115 | 8.4889 |
71
+ | 7.4112 | 2.18 | 120 | 8.4719 |
72
+ | 7.6664 | 2.27 | 125 | 8.4563 |
73
+ | 7.5634 | 2.36 | 130 | 8.4430 |
74
+ | 7.4502 | 2.45 | 135 | 8.4314 |
75
+ | 7.3085 | 2.55 | 140 | 8.4212 |
76
+ | 7.2558 | 2.64 | 145 | 8.4128 |
77
+ | 7.4077 | 2.73 | 150 | 8.4066 |
78
+ | 7.6318 | 2.82 | 155 | 8.4017 |
79
+ | 7.3355 | 2.91 | 160 | 8.3988 |
80
+ | 7.4367 | 3.0 | 165 | 8.3972 |
81
+
82
+
83
+ ### Framework versions
84
+
85
+ - Transformers 4.34.1
86
+ - Pytorch 2.1.0+cu118
87
+ - Datasets 2.14.5
88
+ - 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:9e40ee1e778de93a15011ebcf422ff4777fa695f101ce08a3c393d438c3384cb
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 384,
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "only_second",
64
+ "unk_token": "[UNK]"
65
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57c6b3910ac3438e624af6a8692d18ee66bc9828877b803be819366d15417774
3
+ size 4536
vocab.txt ADDED
The diff for this file is too large to render. See raw diff