jonatatyska commited on
Commit
e78d9d1
·
verified ·
1 Parent(s): bf174f2

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-0.5B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-0.5B-Instruct-EmbodiedZero
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-0.5B-Instruct-EmbodiedZero
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct).
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="jonatatyska/Qwen2.5-0.5B-Instruct-EmbodiedZero", 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
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/ine-ufsc/huggingface/runs/ym8nm6v1)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.16.0.dev0
38
+ - Transformers: 4.49.0
39
+ - Pytorch: 2.5.1
40
+ - Datasets: 3.4.1
41
+ - Tokenizers: 0.21.1
42
+
43
+ ## Citations
44
+
45
+
46
+
47
+ Cite TRL as:
48
+
49
+ ```bibtex
50
+ @misc{vonwerra2022trl,
51
+ title = {{TRL: Transformer Reinforcement Learning}},
52
+ 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},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 8792309760000.0,
3
+ "train_loss": 0.4630614173412323,
4
+ "train_runtime": 106.905,
5
+ "train_samples": 5305,
6
+ "train_samples_per_second": 1795.987,
7
+ "train_steps_per_second": 14.031
8
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.1,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.49.0"
14
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7de68fe81dcf60ea8be9278223587974872aa38f7134ad164d602304296da9a5
3
  size 988097824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b0ad95b696e87443eb217cfe741ccc2b7b008ab274a0b692f1e9a586fe9fa70
3
  size 988097824
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 8792309760000.0,
3
+ "train_loss": 0.4630614173412323,
4
+ "train_runtime": 106.905,
5
+ "train_samples": 5305,
6
+ "train_samples_per_second": 1795.987,
7
+ "train_steps_per_second": 14.031
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.2590486407279968,
3
+ "best_model_checkpoint": "data/Qwen2.5-0.5B-Instruct-EmbodiedZero/checkpoint-100",
4
+ "epoch": 2.380952380952381,
5
+ "eval_steps": 10,
6
+ "global_step": 100,
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.11904761904761904,
13
+ "grad_norm": 12.975658407394809,
14
+ "learning_rate": 3.3333333333333333e-06,
15
+ "loss": 1.5303,
16
+ "mean_token_accuracy": 0.666902494430542,
17
+ "step": 5
18
+ },
19
+ {
20
+ "epoch": 0.23809523809523808,
21
+ "grad_norm": 6.4717367297675255,
22
+ "learning_rate": 6.666666666666667e-06,
23
+ "loss": 1.3514,
24
+ "mean_token_accuracy": 0.685704255104065,
25
+ "step": 10
26
+ },
27
+ {
28
+ "epoch": 0.23809523809523808,
29
+ "eval_loss": 1.1966838836669922,
30
+ "eval_mean_token_accuracy": 0.7069141214544122,
31
+ "eval_runtime": 1.8082,
32
+ "eval_samples_per_second": 733.879,
33
+ "eval_steps_per_second": 6.083,
34
+ "step": 10
35
+ },
36
+ {
37
+ "epoch": 0.35714285714285715,
38
+ "grad_norm": 3.86162454528153,
39
+ "learning_rate": 1e-05,
40
+ "loss": 0.9688,
41
+ "mean_token_accuracy": 0.7506838798522949,
42
+ "step": 15
43
+ },
44
+ {
45
+ "epoch": 0.47619047619047616,
46
+ "grad_norm": 1.6645962651415034,
47
+ "learning_rate": 1.3333333333333333e-05,
48
+ "loss": 0.5609,
49
+ "mean_token_accuracy": 0.8392774343490601,
50
+ "step": 20
51
+ },
52
+ {
53
+ "epoch": 0.47619047619047616,
54
+ "eval_loss": 0.44837433099746704,
55
+ "eval_mean_token_accuracy": 0.8653898780996149,
56
+ "eval_runtime": 1.8047,
57
+ "eval_samples_per_second": 735.283,
58
+ "eval_steps_per_second": 6.095,
59
+ "step": 20
60
+ },
61
+ {
62
+ "epoch": 0.5952380952380952,
63
+ "grad_norm": 0.9631809574633562,
64
+ "learning_rate": 1.6666666666666667e-05,
65
+ "loss": 0.4285,
66
+ "mean_token_accuracy": 0.8694754362106323,
67
+ "step": 25
68
+ },
69
+ {
70
+ "epoch": 0.7142857142857143,
71
+ "grad_norm": 1.0392843877849576,
72
+ "learning_rate": 2e-05,
73
+ "loss": 0.3926,
74
+ "mean_token_accuracy": 0.8767556309700012,
75
+ "step": 30
76
+ },
77
+ {
78
+ "epoch": 0.7142857142857143,
79
+ "eval_loss": 0.36515992879867554,
80
+ "eval_mean_token_accuracy": 0.8830820647152987,
81
+ "eval_runtime": 1.8072,
82
+ "eval_samples_per_second": 734.287,
83
+ "eval_steps_per_second": 6.087,
84
+ "step": 30
85
+ },
86
+ {
87
+ "epoch": 0.8333333333333334,
88
+ "grad_norm": 0.8882592936724429,
89
+ "learning_rate": 2.3333333333333336e-05,
90
+ "loss": 0.3694,
91
+ "mean_token_accuracy": 0.8828507781028747,
92
+ "step": 35
93
+ },
94
+ {
95
+ "epoch": 0.9523809523809523,
96
+ "grad_norm": 0.9099622390748925,
97
+ "learning_rate": 2.6666666666666667e-05,
98
+ "loss": 0.3369,
99
+ "mean_token_accuracy": 0.8917223811149597,
100
+ "step": 40
101
+ },
102
+ {
103
+ "epoch": 0.9523809523809523,
104
+ "eval_loss": 0.32486116886138916,
105
+ "eval_mean_token_accuracy": 0.8935280550609935,
106
+ "eval_runtime": 1.807,
107
+ "eval_samples_per_second": 734.354,
108
+ "eval_steps_per_second": 6.087,
109
+ "step": 40
110
+ },
111
+ {
112
+ "epoch": 1.0714285714285714,
113
+ "grad_norm": 0.7969308502776014,
114
+ "learning_rate": 3e-05,
115
+ "loss": 0.3127,
116
+ "mean_token_accuracy": 0.8970342874526978,
117
+ "step": 45
118
+ },
119
+ {
120
+ "epoch": 1.1904761904761905,
121
+ "grad_norm": 0.7625545705483939,
122
+ "learning_rate": 3.3333333333333335e-05,
123
+ "loss": 0.304,
124
+ "mean_token_accuracy": 0.899208664894104,
125
+ "step": 50
126
+ },
127
+ {
128
+ "epoch": 1.1904761904761905,
129
+ "eval_loss": 0.30286020040512085,
130
+ "eval_mean_token_accuracy": 0.899386004968123,
131
+ "eval_runtime": 1.811,
132
+ "eval_samples_per_second": 732.754,
133
+ "eval_steps_per_second": 6.074,
134
+ "step": 50
135
+ },
136
+ {
137
+ "epoch": 1.3095238095238095,
138
+ "grad_norm": 0.8650271122549905,
139
+ "learning_rate": 3.6666666666666666e-05,
140
+ "loss": 0.3012,
141
+ "mean_token_accuracy": 0.9001616716384888,
142
+ "step": 55
143
+ },
144
+ {
145
+ "epoch": 1.4285714285714286,
146
+ "grad_norm": 0.9972393508554793,
147
+ "learning_rate": 4e-05,
148
+ "loss": 0.2859,
149
+ "mean_token_accuracy": 0.9037908315658569,
150
+ "step": 60
151
+ },
152
+ {
153
+ "epoch": 1.4285714285714286,
154
+ "eval_loss": 0.2923315465450287,
155
+ "eval_mean_token_accuracy": 0.902120438489047,
156
+ "eval_runtime": 1.8113,
157
+ "eval_samples_per_second": 732.621,
158
+ "eval_steps_per_second": 6.073,
159
+ "step": 60
160
+ },
161
+ {
162
+ "epoch": 1.5476190476190477,
163
+ "grad_norm": 1.0187892250022372,
164
+ "learning_rate": 4.3333333333333334e-05,
165
+ "loss": 0.2893,
166
+ "mean_token_accuracy": 0.9032210826873779,
167
+ "step": 65
168
+ },
169
+ {
170
+ "epoch": 1.6666666666666665,
171
+ "grad_norm": 0.9131472600640349,
172
+ "learning_rate": 4.666666666666667e-05,
173
+ "loss": 0.2784,
174
+ "mean_token_accuracy": 0.9060839653015137,
175
+ "step": 70
176
+ },
177
+ {
178
+ "epoch": 1.6666666666666665,
179
+ "eval_loss": 0.2805326282978058,
180
+ "eval_mean_token_accuracy": 0.9057970317927274,
181
+ "eval_runtime": 1.8157,
182
+ "eval_samples_per_second": 730.844,
183
+ "eval_steps_per_second": 6.058,
184
+ "step": 70
185
+ },
186
+ {
187
+ "epoch": 1.7857142857142856,
188
+ "grad_norm": 1.0125564206267341,
189
+ "learning_rate": 5e-05,
190
+ "loss": 0.2752,
191
+ "mean_token_accuracy": 0.9072439670562744,
192
+ "step": 75
193
+ },
194
+ {
195
+ "epoch": 1.9047619047619047,
196
+ "grad_norm": 0.9459831073632716,
197
+ "learning_rate": 4.9998633032622725e-05,
198
+ "loss": 0.2816,
199
+ "mean_token_accuracy": 0.9059006571769714,
200
+ "step": 80
201
+ },
202
+ {
203
+ "epoch": 1.9047619047619047,
204
+ "eval_loss": 0.27141886949539185,
205
+ "eval_mean_token_accuracy": 0.9087122028524225,
206
+ "eval_runtime": 1.8099,
207
+ "eval_samples_per_second": 733.176,
208
+ "eval_steps_per_second": 6.078,
209
+ "step": 80
210
+ },
211
+ {
212
+ "epoch": 2.0238095238095237,
213
+ "grad_norm": 0.8862940313394464,
214
+ "learning_rate": 4.999453229658863e-05,
215
+ "loss": 0.2685,
216
+ "mean_token_accuracy": 0.9087640166282653,
217
+ "step": 85
218
+ },
219
+ {
220
+ "epoch": 2.142857142857143,
221
+ "grad_norm": 0.8183599098342472,
222
+ "learning_rate": 4.998769829017084e-05,
223
+ "loss": 0.239,
224
+ "mean_token_accuracy": 0.9171680569648742,
225
+ "step": 90
226
+ },
227
+ {
228
+ "epoch": 2.142857142857143,
229
+ "eval_loss": 0.2653484642505646,
230
+ "eval_mean_token_accuracy": 0.9104260748082941,
231
+ "eval_runtime": 1.8106,
232
+ "eval_samples_per_second": 732.919,
233
+ "eval_steps_per_second": 6.075,
234
+ "step": 90
235
+ },
236
+ {
237
+ "epoch": 2.261904761904762,
238
+ "grad_norm": 0.7459883992110367,
239
+ "learning_rate": 4.9978131843757234e-05,
240
+ "loss": 0.2437,
241
+ "mean_token_accuracy": 0.9155828952789307,
242
+ "step": 95
243
+ },
244
+ {
245
+ "epoch": 2.380952380952381,
246
+ "grad_norm": 0.739863741164227,
247
+ "learning_rate": 4.9965834119749617e-05,
248
+ "loss": 0.2429,
249
+ "mean_token_accuracy": 0.916073453426361,
250
+ "step": 100
251
+ },
252
+ {
253
+ "epoch": 2.380952380952381,
254
+ "eval_loss": 0.2590486407279968,
255
+ "eval_mean_token_accuracy": 0.9125146703286604,
256
+ "eval_runtime": 1.8117,
257
+ "eval_samples_per_second": 732.46,
258
+ "eval_steps_per_second": 6.072,
259
+ "step": 100
260
+ },
261
+ {
262
+ "epoch": 2.380952380952381,
263
+ "step": 100,
264
+ "total_flos": 8792309760000.0,
265
+ "train_loss": 0.4630614173412323,
266
+ "train_runtime": 106.905,
267
+ "train_samples_per_second": 1795.987,
268
+ "train_steps_per_second": 14.031
269
+ }
270
+ ],
271
+ "logging_steps": 5,
272
+ "max_steps": 1500,
273
+ "num_input_tokens_seen": 0,
274
+ "num_train_epochs": 36,
275
+ "save_steps": 20,
276
+ "stateful_callbacks": {
277
+ "EarlyStoppingCallback": {
278
+ "args": {
279
+ "early_stopping_patience": 3,
280
+ "early_stopping_threshold": 0.01
281
+ },
282
+ "attributes": {
283
+ "early_stopping_patience_counter": 3
284
+ }
285
+ },
286
+ "TrainerControl": {
287
+ "args": {
288
+ "should_epoch_stop": false,
289
+ "should_evaluate": false,
290
+ "should_log": false,
291
+ "should_save": true,
292
+ "should_training_stop": true
293
+ },
294
+ "attributes": {}
295
+ }
296
+ },
297
+ "total_flos": 8792309760000.0,
298
+ "train_batch_size": 16,
299
+ "trial_name": null,
300
+ "trial_params": null
301
+ }