mbCrypto commited on
Commit
bb73b83
·
verified ·
1 Parent(s): d361747

End of training

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: transformers
4
+ model_name: mistral-7b-instruct-v0.3-qlora-10k-ep1
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for mistral-7b-instruct-v0.3-qlora-10k-ep1
13
+
14
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="mbCrypto/mistral-7b-instruct-v0.3-qlora-10k-ep1", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+
31
+
32
+ This model was trained with SFT.
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.12.1
37
+ - Transformers: 4.46.3
38
+ - Pytorch: 2.5.0
39
+ - Datasets: 3.1.0
40
+ - Tokenizers: 0.20.3
41
+
42
+ ## Citations
43
+
44
+
45
+
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": [
18
+ "lm_head",
19
+ "embed_tokens"
20
+ ],
21
+ "peft_type": "LORA",
22
+ "r": 16,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "q_proj",
27
+ "k_proj",
28
+ "gate_proj",
29
+ "up_proj",
30
+ "o_proj",
31
+ "down_proj",
32
+ "v_proj"
33
+ ],
34
+ "task_type": "CAUSAL_LM",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11cee9b52be400db6bec4749d262c980dc354d812edfec7128ad7e69ba651e6d
3
+ size 704703384
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9971671388101983,
3
+ "total_flos": 1.2612738615135437e+17,
4
+ "train_loss": 0.5921206095001914,
5
+ "train_runtime": 11815.8602,
6
+ "train_samples": 10000,
7
+ "train_samples_per_second": 0.239,
8
+ "train_steps_per_second": 0.015
9
+ }
runs/Jun02_16-20-29_ubuntu/events.out.tfevents.1748874496.ubuntu.3276507.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5dc57c42b93447a46dc363f646beb4d8c99c01d985e5dd9820f5790a598913d
3
+ size 13156
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
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:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9971671388101983,
3
+ "total_flos": 1.2612738615135437e+17,
4
+ "train_loss": 0.5921206095001914,
5
+ "train_runtime": 11815.8602,
6
+ "train_samples": 10000,
7
+ "train_samples_per_second": 0.239,
8
+ "train_steps_per_second": 0.015
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9971671388101983,
5
+ "eval_steps": 500,
6
+ "global_step": 176,
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.028328611898016998,
13
+ "grad_norm": 14.723566055297852,
14
+ "learning_rate": 0.0002,
15
+ "loss": 0.9121,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.056657223796033995,
20
+ "grad_norm": 5.200648307800293,
21
+ "learning_rate": 0.0002,
22
+ "loss": 0.8028,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.08498583569405099,
27
+ "grad_norm": 6.881194114685059,
28
+ "learning_rate": 0.0002,
29
+ "loss": 0.7291,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.11331444759206799,
34
+ "grad_norm": 3.192544460296631,
35
+ "learning_rate": 0.0002,
36
+ "loss": 0.6898,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.141643059490085,
41
+ "grad_norm": 2.817613363265991,
42
+ "learning_rate": 0.0002,
43
+ "loss": 0.6584,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.16997167138810199,
48
+ "grad_norm": 2.6520678997039795,
49
+ "learning_rate": 0.0002,
50
+ "loss": 0.6549,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.19830028328611898,
55
+ "grad_norm": 3.3515636920928955,
56
+ "learning_rate": 0.0002,
57
+ "loss": 0.6501,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.22662889518413598,
62
+ "grad_norm": 2.6749367713928223,
63
+ "learning_rate": 0.0002,
64
+ "loss": 0.6405,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.254957507082153,
69
+ "grad_norm": 2.8483076095581055,
70
+ "learning_rate": 0.0002,
71
+ "loss": 0.6229,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.28328611898017,
76
+ "grad_norm": 2.4169209003448486,
77
+ "learning_rate": 0.0002,
78
+ "loss": 0.603,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.311614730878187,
83
+ "grad_norm": 3.861983299255371,
84
+ "learning_rate": 0.0002,
85
+ "loss": 0.6231,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.33994334277620397,
90
+ "grad_norm": 2.65099835395813,
91
+ "learning_rate": 0.0002,
92
+ "loss": 0.6075,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.36827195467422097,
97
+ "grad_norm": 4.709205627441406,
98
+ "learning_rate": 0.0002,
99
+ "loss": 0.5982,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.39660056657223797,
104
+ "grad_norm": 2.094581365585327,
105
+ "learning_rate": 0.0002,
106
+ "loss": 0.5945,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.42492917847025496,
111
+ "grad_norm": 3.4592018127441406,
112
+ "learning_rate": 0.0002,
113
+ "loss": 0.5706,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.45325779036827196,
118
+ "grad_norm": 5.805232524871826,
119
+ "learning_rate": 0.0002,
120
+ "loss": 0.5794,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.48158640226628896,
125
+ "grad_norm": 1.982815146446228,
126
+ "learning_rate": 0.0002,
127
+ "loss": 0.5505,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.509915014164306,
132
+ "grad_norm": 9.649585723876953,
133
+ "learning_rate": 0.0002,
134
+ "loss": 0.5712,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.5382436260623229,
139
+ "grad_norm": 2.012679100036621,
140
+ "learning_rate": 0.0002,
141
+ "loss": 0.5762,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 0.56657223796034,
146
+ "grad_norm": 2.317387342453003,
147
+ "learning_rate": 0.0002,
148
+ "loss": 0.5652,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 0.5949008498583569,
153
+ "grad_norm": 2.179086685180664,
154
+ "learning_rate": 0.0002,
155
+ "loss": 0.5469,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 0.623229461756374,
160
+ "grad_norm": 2.0399320125579834,
161
+ "learning_rate": 0.0002,
162
+ "loss": 0.5443,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 0.6515580736543909,
167
+ "grad_norm": 2.095395565032959,
168
+ "learning_rate": 0.0002,
169
+ "loss": 0.5498,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 0.6798866855524079,
174
+ "grad_norm": 3.5913994312286377,
175
+ "learning_rate": 0.0002,
176
+ "loss": 0.5338,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 0.7082152974504249,
181
+ "grad_norm": 3.3710949420928955,
182
+ "learning_rate": 0.0002,
183
+ "loss": 0.5518,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 0.7365439093484419,
188
+ "grad_norm": 2.205059051513672,
189
+ "learning_rate": 0.0002,
190
+ "loss": 0.5366,
191
+ "step": 130
192
+ },
193
+ {
194
+ "epoch": 0.7648725212464589,
195
+ "grad_norm": 2.1114184856414795,
196
+ "learning_rate": 0.0002,
197
+ "loss": 0.5266,
198
+ "step": 135
199
+ },
200
+ {
201
+ "epoch": 0.7932011331444759,
202
+ "grad_norm": 2.238480567932129,
203
+ "learning_rate": 0.0002,
204
+ "loss": 0.506,
205
+ "step": 140
206
+ },
207
+ {
208
+ "epoch": 0.8215297450424929,
209
+ "grad_norm": 2.1656649112701416,
210
+ "learning_rate": 0.0002,
211
+ "loss": 0.5317,
212
+ "step": 145
213
+ },
214
+ {
215
+ "epoch": 0.8498583569405099,
216
+ "grad_norm": 2.247891664505005,
217
+ "learning_rate": 0.0002,
218
+ "loss": 0.5276,
219
+ "step": 150
220
+ },
221
+ {
222
+ "epoch": 0.8781869688385269,
223
+ "grad_norm": 2.897693634033203,
224
+ "learning_rate": 0.0002,
225
+ "loss": 0.5128,
226
+ "step": 155
227
+ },
228
+ {
229
+ "epoch": 0.9065155807365439,
230
+ "grad_norm": 1.935969352722168,
231
+ "learning_rate": 0.0002,
232
+ "loss": 0.5264,
233
+ "step": 160
234
+ },
235
+ {
236
+ "epoch": 0.9348441926345609,
237
+ "grad_norm": 1.9943110942840576,
238
+ "learning_rate": 0.0002,
239
+ "loss": 0.5211,
240
+ "step": 165
241
+ },
242
+ {
243
+ "epoch": 0.9631728045325779,
244
+ "grad_norm": 2.2417781352996826,
245
+ "learning_rate": 0.0002,
246
+ "loss": 0.5097,
247
+ "step": 170
248
+ },
249
+ {
250
+ "epoch": 0.9915014164305949,
251
+ "grad_norm": 2.086829662322998,
252
+ "learning_rate": 0.0002,
253
+ "loss": 0.5136,
254
+ "step": 175
255
+ },
256
+ {
257
+ "epoch": 0.9971671388101983,
258
+ "step": 176,
259
+ "total_flos": 1.2612738615135437e+17,
260
+ "train_loss": 0.5921206095001914,
261
+ "train_runtime": 11815.8602,
262
+ "train_samples_per_second": 0.239,
263
+ "train_steps_per_second": 0.015
264
+ }
265
+ ],
266
+ "logging_steps": 5,
267
+ "max_steps": 176,
268
+ "num_input_tokens_seen": 0,
269
+ "num_train_epochs": 1,
270
+ "save_steps": 500,
271
+ "stateful_callbacks": {
272
+ "TrainerControl": {
273
+ "args": {
274
+ "should_epoch_stop": false,
275
+ "should_evaluate": false,
276
+ "should_log": false,
277
+ "should_save": true,
278
+ "should_training_stop": true
279
+ },
280
+ "attributes": {}
281
+ }
282
+ },
283
+ "total_flos": 1.2612738615135437e+17,
284
+ "train_batch_size": 8,
285
+ "trial_name": null,
286
+ "trial_params": null
287
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7382f6a580b39e4f2a6568111ca2522bc9e882a7227773b5bfe377c4c60fdd0a
3
+ size 5624