Flyfer commited on
Commit
859ad93
·
1 Parent(s): eab8b98

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-generation
5
+ widget:
6
+ - text: "I love AutoTrain because "
7
+ ---
8
+
9
+ # Model Trained Using AutoTrain
adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "NousResearch/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 32,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 16,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "v_proj"
19
+ ],
20
+ "task_type": "CAUSAL_LM"
21
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:020eb5073d692ffd944b7bb8b94852a3606c42fab309aba3b666a8907e485623
3
+ size 33600906
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<pad>": 32000
3
+ }
checkpoint-140/README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ ---
4
+ ## Training procedure
5
+
6
+
7
+ The following `bitsandbytes` quantization config was used during training:
8
+ - quant_method: bitsandbytes
9
+ - load_in_8bit: False
10
+ - load_in_4bit: True
11
+ - llm_int8_threshold: 6.0
12
+ - llm_int8_skip_modules: None
13
+ - llm_int8_enable_fp32_cpu_offload: False
14
+ - llm_int8_has_fp16_weight: False
15
+ - bnb_4bit_quant_type: nf4
16
+ - bnb_4bit_use_double_quant: False
17
+ - bnb_4bit_compute_dtype: float16
18
+
19
+ The following `bitsandbytes` quantization config was used during training:
20
+ - quant_method: bitsandbytes
21
+ - load_in_8bit: False
22
+ - load_in_4bit: True
23
+ - llm_int8_threshold: 6.0
24
+ - llm_int8_skip_modules: None
25
+ - llm_int8_enable_fp32_cpu_offload: False
26
+ - llm_int8_has_fp16_weight: False
27
+ - bnb_4bit_quant_type: nf4
28
+ - bnb_4bit_use_double_quant: False
29
+ - bnb_4bit_compute_dtype: float16
30
+ ### Framework versions
31
+
32
+ - PEFT 0.5.0
33
+
34
+ - PEFT 0.5.0
checkpoint-140/adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "NousResearch/Llama-2-7b-chat-hf",
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 32,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 16,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "q_proj",
18
+ "v_proj"
19
+ ],
20
+ "task_type": "CAUSAL_LM"
21
+ }
checkpoint-140/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:020eb5073d692ffd944b7bb8b94852a3606c42fab309aba3b666a8907e485623
3
+ size 33600906
checkpoint-140/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<pad>": 32000
3
+ }
checkpoint-140/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3a80d080286452010ae1cb0f3d28a128921b8934eafd6185524f4c5b527f33e
3
+ size 67217018
checkpoint-140/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f220dc7f0319c08e3bca888f34b99a2acb6250d2bbaf5a19088926b10242ada6
3
+ size 14244
checkpoint-140/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc3c0f646e7a86045b9771333d39baba337c39e0d7b952159581683e545e62da
3
+ size 1064
checkpoint-140/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
checkpoint-140/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-140/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
checkpoint-140/tokenizer_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": true,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": true,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "32000": {
28
+ "content": "<pad>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": false
34
+ }
35
+ },
36
+ "bos_token": "<s>",
37
+ "clean_up_tokenization_spaces": false,
38
+ "eos_token": "</s>",
39
+ "legacy": false,
40
+ "model_max_length": 2048,
41
+ "pad_token": "<unk>",
42
+ "sp_model_kwargs": {},
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "unk_token": "<unk>",
45
+ "use_default_system_prompt": true
46
+ }
checkpoint-140/trainer_state.json ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 19.38888888888889,
5
+ "eval_steps": 500,
6
+ "global_step": 140,
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": 8.333333333333334e-06,
14
+ "loss": 1.7271,
15
+ "step": 3
16
+ },
17
+ {
18
+ "epoch": 0.33,
19
+ "learning_rate": 1.6666666666666667e-05,
20
+ "loss": 1.9643,
21
+ "step": 6
22
+ },
23
+ {
24
+ "epoch": 1.11,
25
+ "learning_rate": 2.5e-05,
26
+ "loss": 1.872,
27
+ "step": 9
28
+ },
29
+ {
30
+ "epoch": 1.28,
31
+ "learning_rate": 3.3333333333333335e-05,
32
+ "loss": 1.6191,
33
+ "step": 12
34
+ },
35
+ {
36
+ "epoch": 2.06,
37
+ "learning_rate": 4.166666666666667e-05,
38
+ "loss": 1.8705,
39
+ "step": 15
40
+ },
41
+ {
42
+ "epoch": 2.22,
43
+ "learning_rate": 5e-05,
44
+ "loss": 1.5021,
45
+ "step": 18
46
+ },
47
+ {
48
+ "epoch": 2.39,
49
+ "learning_rate": 5.833333333333334e-05,
50
+ "loss": 1.6868,
51
+ "step": 21
52
+ },
53
+ {
54
+ "epoch": 3.17,
55
+ "learning_rate": 6.666666666666667e-05,
56
+ "loss": 1.5721,
57
+ "step": 24
58
+ },
59
+ {
60
+ "epoch": 3.33,
61
+ "learning_rate": 7.500000000000001e-05,
62
+ "loss": 1.3664,
63
+ "step": 27
64
+ },
65
+ {
66
+ "epoch": 4.11,
67
+ "learning_rate": 8.333333333333334e-05,
68
+ "loss": 1.5311,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 4.28,
73
+ "learning_rate": 9.166666666666667e-05,
74
+ "loss": 1.3607,
75
+ "step": 33
76
+ },
77
+ {
78
+ "epoch": 5.06,
79
+ "learning_rate": 0.0001,
80
+ "loss": 1.0423,
81
+ "step": 36
82
+ },
83
+ {
84
+ "epoch": 5.22,
85
+ "learning_rate": 9.907407407407407e-05,
86
+ "loss": 1.2364,
87
+ "step": 39
88
+ },
89
+ {
90
+ "epoch": 5.39,
91
+ "learning_rate": 9.814814814814815e-05,
92
+ "loss": 1.1658,
93
+ "step": 42
94
+ },
95
+ {
96
+ "epoch": 6.17,
97
+ "learning_rate": 9.722222222222223e-05,
98
+ "loss": 1.056,
99
+ "step": 45
100
+ },
101
+ {
102
+ "epoch": 6.33,
103
+ "learning_rate": 9.62962962962963e-05,
104
+ "loss": 1.0494,
105
+ "step": 48
106
+ },
107
+ {
108
+ "epoch": 7.11,
109
+ "learning_rate": 9.537037037037038e-05,
110
+ "loss": 0.8505,
111
+ "step": 51
112
+ },
113
+ {
114
+ "epoch": 7.28,
115
+ "learning_rate": 9.444444444444444e-05,
116
+ "loss": 0.8941,
117
+ "step": 54
118
+ },
119
+ {
120
+ "epoch": 8.06,
121
+ "learning_rate": 9.351851851851852e-05,
122
+ "loss": 0.7708,
123
+ "step": 57
124
+ },
125
+ {
126
+ "epoch": 8.22,
127
+ "learning_rate": 9.25925925925926e-05,
128
+ "loss": 0.5983,
129
+ "step": 60
130
+ },
131
+ {
132
+ "epoch": 8.39,
133
+ "learning_rate": 9.166666666666667e-05,
134
+ "loss": 0.5789,
135
+ "step": 63
136
+ },
137
+ {
138
+ "epoch": 9.17,
139
+ "learning_rate": 9.074074074074075e-05,
140
+ "loss": 0.4382,
141
+ "step": 66
142
+ },
143
+ {
144
+ "epoch": 9.33,
145
+ "learning_rate": 8.981481481481481e-05,
146
+ "loss": 0.6309,
147
+ "step": 69
148
+ },
149
+ {
150
+ "epoch": 10.11,
151
+ "learning_rate": 8.888888888888889e-05,
152
+ "loss": 0.4637,
153
+ "step": 72
154
+ },
155
+ {
156
+ "epoch": 10.28,
157
+ "learning_rate": 8.796296296296297e-05,
158
+ "loss": 0.4983,
159
+ "step": 75
160
+ },
161
+ {
162
+ "epoch": 11.06,
163
+ "learning_rate": 8.703703703703704e-05,
164
+ "loss": 0.3079,
165
+ "step": 78
166
+ },
167
+ {
168
+ "epoch": 11.22,
169
+ "learning_rate": 8.611111111111112e-05,
170
+ "loss": 0.3754,
171
+ "step": 81
172
+ },
173
+ {
174
+ "epoch": 11.39,
175
+ "learning_rate": 8.518518518518518e-05,
176
+ "loss": 0.3138,
177
+ "step": 84
178
+ },
179
+ {
180
+ "epoch": 12.17,
181
+ "learning_rate": 8.425925925925926e-05,
182
+ "loss": 0.3076,
183
+ "step": 87
184
+ },
185
+ {
186
+ "epoch": 12.33,
187
+ "learning_rate": 8.333333333333334e-05,
188
+ "loss": 0.3103,
189
+ "step": 90
190
+ },
191
+ {
192
+ "epoch": 13.11,
193
+ "learning_rate": 8.240740740740741e-05,
194
+ "loss": 0.2391,
195
+ "step": 93
196
+ },
197
+ {
198
+ "epoch": 13.28,
199
+ "learning_rate": 8.148148148148148e-05,
200
+ "loss": 0.2365,
201
+ "step": 96
202
+ },
203
+ {
204
+ "epoch": 14.06,
205
+ "learning_rate": 8.055555555555556e-05,
206
+ "loss": 0.195,
207
+ "step": 99
208
+ },
209
+ {
210
+ "epoch": 14.22,
211
+ "learning_rate": 7.962962962962964e-05,
212
+ "loss": 0.186,
213
+ "step": 102
214
+ },
215
+ {
216
+ "epoch": 14.39,
217
+ "learning_rate": 7.870370370370372e-05,
218
+ "loss": 0.2039,
219
+ "step": 105
220
+ },
221
+ {
222
+ "epoch": 15.17,
223
+ "learning_rate": 7.777777777777778e-05,
224
+ "loss": 0.1912,
225
+ "step": 108
226
+ },
227
+ {
228
+ "epoch": 15.33,
229
+ "learning_rate": 7.685185185185185e-05,
230
+ "loss": 0.1421,
231
+ "step": 111
232
+ },
233
+ {
234
+ "epoch": 16.11,
235
+ "learning_rate": 7.592592592592593e-05,
236
+ "loss": 0.1349,
237
+ "step": 114
238
+ },
239
+ {
240
+ "epoch": 16.28,
241
+ "learning_rate": 7.500000000000001e-05,
242
+ "loss": 0.1201,
243
+ "step": 117
244
+ },
245
+ {
246
+ "epoch": 17.06,
247
+ "learning_rate": 7.407407407407407e-05,
248
+ "loss": 0.1364,
249
+ "step": 120
250
+ },
251
+ {
252
+ "epoch": 17.22,
253
+ "learning_rate": 7.314814814814815e-05,
254
+ "loss": 0.1249,
255
+ "step": 123
256
+ },
257
+ {
258
+ "epoch": 17.39,
259
+ "learning_rate": 7.222222222222222e-05,
260
+ "loss": 0.101,
261
+ "step": 126
262
+ },
263
+ {
264
+ "epoch": 18.17,
265
+ "learning_rate": 7.12962962962963e-05,
266
+ "loss": 0.0961,
267
+ "step": 129
268
+ },
269
+ {
270
+ "epoch": 18.33,
271
+ "learning_rate": 7.037037037037038e-05,
272
+ "loss": 0.1026,
273
+ "step": 132
274
+ },
275
+ {
276
+ "epoch": 19.11,
277
+ "learning_rate": 6.944444444444444e-05,
278
+ "loss": 0.0982,
279
+ "step": 135
280
+ },
281
+ {
282
+ "epoch": 19.28,
283
+ "learning_rate": 6.851851851851852e-05,
284
+ "loss": 0.0791,
285
+ "step": 138
286
+ }
287
+ ],
288
+ "logging_steps": 3,
289
+ "max_steps": 360,
290
+ "num_train_epochs": 20,
291
+ "save_steps": 500,
292
+ "total_flos": 1.13811835060224e+16,
293
+ "trial_name": null,
294
+ "trial_params": null
295
+ }
checkpoint-140/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8eb15c4554d7a6d8b58f9bb9dd5bfb1635cdb053eeac9b2a260022ff406b017
3
+ size 4472
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": true,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": true,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "32000": {
28
+ "content": "<pad>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": false
34
+ }
35
+ },
36
+ "bos_token": "<s>",
37
+ "clean_up_tokenization_spaces": false,
38
+ "eos_token": "</s>",
39
+ "legacy": false,
40
+ "model_max_length": 2048,
41
+ "pad_token": "<unk>",
42
+ "sp_model_kwargs": {},
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "unk_token": "<unk>",
45
+ "use_default_system_prompt": true
46
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8eb15c4554d7a6d8b58f9bb9dd5bfb1635cdb053eeac9b2a260022ff406b017
3
+ size 4472
training_params.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"model": "NousResearch/Llama-2-7b-chat-hf", "data_path": "Flyfer/CBDataSetBeta1", "project_name": "TestProject", "train_split": "train", "valid_split": null, "text_column": "text", "rejected_text_column": "rejected", "lr": 0.0001, "epochs": 20, "batch_size": 2, "warmup_ratio": 0.1, "gradient_accumulation": 1, "optimizer": "adamw_torch", "scheduler": "linear", "weight_decay": 0.0, "max_grad_norm": 1.0, "seed": 42, "add_eos_token": false, "block_size": -1, "use_peft": true, "lora_r": 16, "lora_alpha": 32, "lora_dropout": 0.05, "logging_steps": -1, "evaluation_strategy": "epoch", "save_total_limit": 1, "save_strategy": "epoch", "auto_find_batch_size": false, "fp16": false, "push_to_hub": true, "use_int8": false, "model_max_length": 2048, "repo_id": "Flyfer/llama2-testv9", "use_int4": true, "trainer": "sft", "target_modules": null, "merge_adapter": false, "username": null, "use_flash_attention_2": false, "log": "none", "disable_gradient_checkpointing": false, "model_ref": null, "dpo_beta": 0.1, "prompt_text_column": "prompt"}