Isuri97 commited on
Commit
d2ee4a9
1 Parent(s): 0e693dc

upload model

Browse files
README.md CHANGED
@@ -1,3 +1,57 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model: bert-base-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: mlm_modelbert
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
+ # mlm_modelbert
17
+
18
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 1.2484
21
+ - Accuracy: 0.7225
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 32
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 3.0
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.35.0.dev0
55
+ - Pytorch 2.0.1+cu117
56
+ - Datasets 2.14.5
57
+ - Tokenizers 0.14.0
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
+ }
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.7224581641901442,
4
+ "eval_loss": 1.2484219074249268,
5
+ "eval_runtime": 39.4232,
6
+ "eval_samples": 4004,
7
+ "eval_samples_per_second": 101.565,
8
+ "eval_steps_per_second": 3.196,
9
+ "perplexity": 3.4848392170043856,
10
+ "train_loss": 1.70131384965624,
11
+ "train_runtime": 4587.4305,
12
+ "train_samples": 96558,
13
+ "train_samples_per_second": 63.145,
14
+ "train_steps_per_second": 1.974
15
+ }
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForMaskedLM"
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.35.0.dev0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 28996
26
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.7224581641901442,
4
+ "eval_loss": 1.2484219074249268,
5
+ "eval_runtime": 39.4232,
6
+ "eval_samples": 4004,
7
+ "eval_samples_per_second": 101.565,
8
+ "eval_steps_per_second": 3.196,
9
+ "perplexity": 3.4848392170043856
10
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 0,
4
+ "transformers_version": "4.35.0.dev0"
5
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ec7f82f0d14d97cb1dc5a3c937bec848b14573b673f79aeb2c196929f2c327f
3
+ size 433432181
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 1.70131384965624,
4
+ "train_runtime": 4587.4305,
5
+ "train_samples": 96558,
6
+ "train_samples_per_second": 63.145,
7
+ "train_steps_per_second": 1.974
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 9054,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.17,
13
+ "learning_rate": 4.723878948531036e-05,
14
+ "loss": 2.7103,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 0.33,
19
+ "learning_rate": 4.447757897062072e-05,
20
+ "loss": 1.9564,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 0.5,
25
+ "learning_rate": 4.171636845593108e-05,
26
+ "loss": 1.8423,
27
+ "step": 1500
28
+ },
29
+ {
30
+ "epoch": 0.66,
31
+ "learning_rate": 3.895515794124144e-05,
32
+ "loss": 1.778,
33
+ "step": 2000
34
+ },
35
+ {
36
+ "epoch": 0.83,
37
+ "learning_rate": 3.61939474265518e-05,
38
+ "loss": 1.7212,
39
+ "step": 2500
40
+ },
41
+ {
42
+ "epoch": 0.99,
43
+ "learning_rate": 3.343273691186216e-05,
44
+ "loss": 1.6849,
45
+ "step": 3000
46
+ },
47
+ {
48
+ "epoch": 1.16,
49
+ "learning_rate": 3.0671526397172526e-05,
50
+ "loss": 1.6508,
51
+ "step": 3500
52
+ },
53
+ {
54
+ "epoch": 1.33,
55
+ "learning_rate": 2.791031588248288e-05,
56
+ "loss": 1.6336,
57
+ "step": 4000
58
+ },
59
+ {
60
+ "epoch": 1.49,
61
+ "learning_rate": 2.5149105367793242e-05,
62
+ "loss": 1.6204,
63
+ "step": 4500
64
+ },
65
+ {
66
+ "epoch": 1.66,
67
+ "learning_rate": 2.2387894853103602e-05,
68
+ "loss": 1.6058,
69
+ "step": 5000
70
+ },
71
+ {
72
+ "epoch": 1.82,
73
+ "learning_rate": 1.962668433841396e-05,
74
+ "loss": 1.5936,
75
+ "step": 5500
76
+ },
77
+ {
78
+ "epoch": 1.99,
79
+ "learning_rate": 1.686547382372432e-05,
80
+ "loss": 1.5766,
81
+ "step": 6000
82
+ },
83
+ {
84
+ "epoch": 2.15,
85
+ "learning_rate": 1.4104263309034682e-05,
86
+ "loss": 1.5578,
87
+ "step": 6500
88
+ },
89
+ {
90
+ "epoch": 2.32,
91
+ "learning_rate": 1.1343052794345042e-05,
92
+ "loss": 1.548,
93
+ "step": 7000
94
+ },
95
+ {
96
+ "epoch": 2.49,
97
+ "learning_rate": 8.581842279655401e-06,
98
+ "loss": 1.5482,
99
+ "step": 7500
100
+ },
101
+ {
102
+ "epoch": 2.65,
103
+ "learning_rate": 5.820631764965762e-06,
104
+ "loss": 1.5412,
105
+ "step": 8000
106
+ },
107
+ {
108
+ "epoch": 2.82,
109
+ "learning_rate": 3.059421250276121e-06,
110
+ "loss": 1.5365,
111
+ "step": 8500
112
+ },
113
+ {
114
+ "epoch": 2.98,
115
+ "learning_rate": 2.982107355864811e-07,
116
+ "loss": 1.535,
117
+ "step": 9000
118
+ },
119
+ {
120
+ "epoch": 3.0,
121
+ "step": 9054,
122
+ "total_flos": 7.624223298839347e+16,
123
+ "train_loss": 1.70131384965624,
124
+ "train_runtime": 4587.4305,
125
+ "train_samples_per_second": 63.145,
126
+ "train_steps_per_second": 1.974
127
+ }
128
+ ],
129
+ "logging_steps": 500,
130
+ "max_steps": 9054,
131
+ "num_train_epochs": 3,
132
+ "save_steps": 500,
133
+ "total_flos": 7.624223298839347e+16,
134
+ "trial_name": null,
135
+ "trial_params": null
136
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9c3de4b5904cde1d280d95653332d5b8748f4e8a6725260fdcc2d2cf8049156
3
+ size 4155
vocab.txt ADDED
The diff for this file is too large to render. See raw diff