Gerson Fabian Buenahora Ormaza commited on
Commit
8ea28ae
1 Parent(s): eaa2050

load_model

Browse files

We load data, weights and important parameters for the model

config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BueormLLC/CleanGPT",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
33
+ }
34
+ },
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.42.3",
37
+ "use_cache": true,
38
+ "vocab_size": 50257
39
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.42.3"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f06541cef2542bfe1c5e51c5013188fa980eaf805a2ba2048e82da798ace6522
3
+ size 497774208
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d285b214ff9eb000bdc26aac9b035606764b96d34f9f5236535bb42e0ab3722
3
+ size 995642298
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:549a8235ab4fe89a52f68cd8f2066d72d9d3c145ac02436bdb0adf36fca0dec5
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0daba17a72d1aa993bd866cf1c63e35f955a56ce5c903da992079fc3684233b8
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "model_max_length": 1024,
19
+ "pad_token": "<|endoftext|>",
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "unk_token": "<|endoftext|>"
22
+ }
trainer_state.json ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 8.0,
5
+ "eval_steps": 500,
6
+ "global_step": 10392,
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.3849114703618168,
13
+ "grad_norm": 1.290488839149475,
14
+ "learning_rate": 5e-05,
15
+ "loss": 7.6662,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.7698229407236336,
20
+ "grad_norm": 1.1826180219650269,
21
+ "learning_rate": 4.747270521633644e-05,
22
+ "loss": 6.3593,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.1547344110854503,
27
+ "grad_norm": 1.238223910331726,
28
+ "learning_rate": 4.494541043267287e-05,
29
+ "loss": 6.132,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 1.539645881447267,
34
+ "grad_norm": 1.1373482942581177,
35
+ "learning_rate": 4.24181156490093e-05,
36
+ "loss": 5.9398,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 1.924557351809084,
41
+ "grad_norm": 1.2479649782180786,
42
+ "learning_rate": 3.9890820865345734e-05,
43
+ "loss": 5.8258,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 2.3094688221709005,
48
+ "grad_norm": 1.5960040092468262,
49
+ "learning_rate": 3.736352608168217e-05,
50
+ "loss": 5.6365,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 2.6943802925327174,
55
+ "grad_norm": 1.454331398010254,
56
+ "learning_rate": 3.4836231298018604e-05,
57
+ "loss": 5.578,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 3.079291762894534,
62
+ "grad_norm": 1.5335205793380737,
63
+ "learning_rate": 3.2308936514355035e-05,
64
+ "loss": 5.5167,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 3.464203233256351,
69
+ "grad_norm": 1.5028727054595947,
70
+ "learning_rate": 2.9781641730691466e-05,
71
+ "loss": 5.3757,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 3.849114703618168,
76
+ "grad_norm": 1.7399624586105347,
77
+ "learning_rate": 2.7254346947027904e-05,
78
+ "loss": 5.3516,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 4.234026173979984,
83
+ "grad_norm": 1.6884772777557373,
84
+ "learning_rate": 2.4727052163364335e-05,
85
+ "loss": 5.286,
86
+ "step": 5500
87
+ },
88
+ {
89
+ "epoch": 4.618937644341801,
90
+ "grad_norm": 1.8180075883865356,
91
+ "learning_rate": 2.219975737970077e-05,
92
+ "loss": 5.1973,
93
+ "step": 6000
94
+ },
95
+ {
96
+ "epoch": 5.003849114703618,
97
+ "grad_norm": 1.6495822668075562,
98
+ "learning_rate": 1.96724625960372e-05,
99
+ "loss": 5.1844,
100
+ "step": 6500
101
+ },
102
+ {
103
+ "epoch": 5.388760585065435,
104
+ "grad_norm": 1.929316759109497,
105
+ "learning_rate": 1.7145167812373636e-05,
106
+ "loss": 5.0743,
107
+ "step": 7000
108
+ },
109
+ {
110
+ "epoch": 5.773672055427252,
111
+ "grad_norm": 1.9738694429397583,
112
+ "learning_rate": 1.4617873028710069e-05,
113
+ "loss": 5.0788,
114
+ "step": 7500
115
+ },
116
+ {
117
+ "epoch": 6.158583525789068,
118
+ "grad_norm": 1.9357603788375854,
119
+ "learning_rate": 1.2090578245046502e-05,
120
+ "loss": 5.0497,
121
+ "step": 8000
122
+ },
123
+ {
124
+ "epoch": 6.543494996150885,
125
+ "grad_norm": 2.0328495502471924,
126
+ "learning_rate": 9.563283461382936e-06,
127
+ "loss": 4.9795,
128
+ "step": 8500
129
+ },
130
+ {
131
+ "epoch": 6.928406466512702,
132
+ "grad_norm": 2.1695396900177,
133
+ "learning_rate": 7.03598867771937e-06,
134
+ "loss": 4.9729,
135
+ "step": 9000
136
+ },
137
+ {
138
+ "epoch": 7.313317936874519,
139
+ "grad_norm": 2.4989547729492188,
140
+ "learning_rate": 4.508693894055803e-06,
141
+ "loss": 4.9227,
142
+ "step": 9500
143
+ },
144
+ {
145
+ "epoch": 7.698229407236336,
146
+ "grad_norm": 2.1488616466522217,
147
+ "learning_rate": 1.981399110392236e-06,
148
+ "loss": 4.9139,
149
+ "step": 10000
150
+ }
151
+ ],
152
+ "logging_steps": 500,
153
+ "max_steps": 10392,
154
+ "num_input_tokens_seen": 0,
155
+ "num_train_epochs": 8,
156
+ "save_steps": 10000,
157
+ "stateful_callbacks": {
158
+ "TrainerControl": {
159
+ "args": {
160
+ "should_epoch_stop": false,
161
+ "should_evaluate": false,
162
+ "should_log": false,
163
+ "should_save": true,
164
+ "should_training_stop": true
165
+ },
166
+ "attributes": {}
167
+ }
168
+ },
169
+ "total_flos": 2.1712322691072e+16,
170
+ "train_batch_size": 8,
171
+ "trial_name": null,
172
+ "trial_params": null
173
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfe3c1ee4a1e601a606aca8b79d3e2e73720343bd516dac207d73e6f246551ec
3
+ size 5112
vocab.json ADDED
The diff for this file is too large to render. See raw diff