martimfasantos commited on
Commit
735a6ec
·
verified ·
1 Parent(s): fcbd2a2

Model save

Browse files
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ base_model: google/gemma-2-2b-it
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ datasets:
9
+ - generator
10
+ model-index:
11
+ - name: gemma-2-2b-it-mt-sft-full_new
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # gemma-2-2b-it-mt-sft-full_new
19
+
20
+ This model is a fine-tuned version of [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it) on the generator dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.8862
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 1e-05
42
+ - train_batch_size: 1
43
+ - eval_batch_size: 2
44
+ - seed: 42
45
+ - distributed_type: multi-GPU
46
+ - gradient_accumulation_steps: 16
47
+ - total_train_batch_size: 16
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: cosine
50
+ - lr_scheduler_warmup_ratio: 0.1
51
+ - num_epochs: 1
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss |
56
+ |:-------------:|:------:|:----:|:---------------:|
57
+ | 1.7473 | 0.9982 | 283 | 1.8862 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.43.3
63
+ - Pytorch 2.1.2
64
+ - Datasets 2.20.0
65
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9982363315696648,
3
+ "total_flos": 1.1264430584732058e+17,
4
+ "train_loss": 1.8635691063142918,
5
+ "train_runtime": 3704.3906,
6
+ "train_samples": 117404,
7
+ "train_samples_per_second": 1.224,
8
+ "train_steps_per_second": 0.076
9
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "cache_implementation": "hybrid",
5
+ "eos_token_id": [
6
+ 1,
7
+ 107
8
+ ],
9
+ "pad_token_id": 0,
10
+ "transformers_version": "4.43.3"
11
+ }
runs/Aug02_00-26-24_poseidon/events.out.tfevents.1722558421.poseidon.1257643.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5bdfe67970473e8298de7099f94843c627cfe3e26f158379b9a4116aa6b1ba6d
3
- size 11354
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfb083a22e6752d00112451715fdc12466e4fd8b8265d59092c0f16e02bb4306
3
+ size 11979
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9982363315696648,
3
+ "total_flos": 1.1264430584732058e+17,
4
+ "train_loss": 1.8635691063142918,
5
+ "train_runtime": 3704.3906,
6
+ "train_samples": 117404,
7
+ "train_samples_per_second": 1.224,
8
+ "train_steps_per_second": 0.076
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9982363315696648,
5
+ "eval_steps": 500,
6
+ "global_step": 283,
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.003527336860670194,
13
+ "grad_norm": 45.75,
14
+ "learning_rate": 3.4482758620689656e-07,
15
+ "loss": 3.4754,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.03527336860670194,
20
+ "grad_norm": 27.25,
21
+ "learning_rate": 3.448275862068966e-06,
22
+ "loss": 3.2945,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.07054673721340388,
27
+ "grad_norm": 6.84375,
28
+ "learning_rate": 6.896551724137932e-06,
29
+ "loss": 2.4678,
30
+ "step": 20
31
+ },
32
+ {
33
+ "epoch": 0.10582010582010581,
34
+ "grad_norm": 3.375,
35
+ "learning_rate": 9.999617556940085e-06,
36
+ "loss": 2.0003,
37
+ "step": 30
38
+ },
39
+ {
40
+ "epoch": 0.14109347442680775,
41
+ "grad_norm": 2.828125,
42
+ "learning_rate": 9.953795138672291e-06,
43
+ "loss": 1.8951,
44
+ "step": 40
45
+ },
46
+ {
47
+ "epoch": 0.1763668430335097,
48
+ "grad_norm": 2.765625,
49
+ "learning_rate": 9.832286532071802e-06,
50
+ "loss": 1.8598,
51
+ "step": 50
52
+ },
53
+ {
54
+ "epoch": 0.21164021164021163,
55
+ "grad_norm": 2.765625,
56
+ "learning_rate": 9.636948197292051e-06,
57
+ "loss": 1.8314,
58
+ "step": 60
59
+ },
60
+ {
61
+ "epoch": 0.24691358024691357,
62
+ "grad_norm": 2.75,
63
+ "learning_rate": 9.370764596463764e-06,
64
+ "loss": 1.8099,
65
+ "step": 70
66
+ },
67
+ {
68
+ "epoch": 0.2821869488536155,
69
+ "grad_norm": 2.6875,
70
+ "learning_rate": 9.037802595813621e-06,
71
+ "loss": 1.8067,
72
+ "step": 80
73
+ },
74
+ {
75
+ "epoch": 0.31746031746031744,
76
+ "grad_norm": 3.140625,
77
+ "learning_rate": 8.643149330352939e-06,
78
+ "loss": 1.8112,
79
+ "step": 90
80
+ },
81
+ {
82
+ "epoch": 0.3527336860670194,
83
+ "grad_norm": 2.75,
84
+ "learning_rate": 8.192834480466072e-06,
85
+ "loss": 1.779,
86
+ "step": 100
87
+ },
88
+ {
89
+ "epoch": 0.3880070546737213,
90
+ "grad_norm": 2.703125,
91
+ "learning_rate": 7.693738147889868e-06,
92
+ "loss": 1.7797,
93
+ "step": 110
94
+ },
95
+ {
96
+ "epoch": 0.42328042328042326,
97
+ "grad_norm": 2.640625,
98
+ "learning_rate": 7.153485738594111e-06,
99
+ "loss": 1.7604,
100
+ "step": 120
101
+ },
102
+ {
103
+ "epoch": 0.4585537918871252,
104
+ "grad_norm": 2.609375,
105
+ "learning_rate": 6.5803314585870225e-06,
106
+ "loss": 1.777,
107
+ "step": 130
108
+ },
109
+ {
110
+ "epoch": 0.49382716049382713,
111
+ "grad_norm": 2.640625,
112
+ "learning_rate": 5.9830322026464435e-06,
113
+ "loss": 1.7684,
114
+ "step": 140
115
+ },
116
+ {
117
+ "epoch": 0.5291005291005291,
118
+ "grad_norm": 2.625,
119
+ "learning_rate": 5.3707137627582315e-06,
120
+ "loss": 1.7621,
121
+ "step": 150
122
+ },
123
+ {
124
+ "epoch": 0.564373897707231,
125
+ "grad_norm": 2.71875,
126
+ "learning_rate": 4.752731400386306e-06,
127
+ "loss": 1.754,
128
+ "step": 160
129
+ },
130
+ {
131
+ "epoch": 0.599647266313933,
132
+ "grad_norm": 2.71875,
133
+ "learning_rate": 4.138526912810418e-06,
134
+ "loss": 1.757,
135
+ "step": 170
136
+ },
137
+ {
138
+ "epoch": 0.6349206349206349,
139
+ "grad_norm": 2.53125,
140
+ "learning_rate": 3.537484377332945e-06,
141
+ "loss": 1.755,
142
+ "step": 180
143
+ },
144
+ {
145
+ "epoch": 0.6701940035273368,
146
+ "grad_norm": 2.65625,
147
+ "learning_rate": 2.9587867773560488e-06,
148
+ "loss": 1.7516,
149
+ "step": 190
150
+ },
151
+ {
152
+ "epoch": 0.7054673721340388,
153
+ "grad_norm": 2.5625,
154
+ "learning_rate": 2.4112757008569102e-06,
155
+ "loss": 1.7561,
156
+ "step": 200
157
+ },
158
+ {
159
+ "epoch": 0.7407407407407407,
160
+ "grad_norm": 2.6875,
161
+ "learning_rate": 1.9033162548474577e-06,
162
+ "loss": 1.7457,
163
+ "step": 210
164
+ },
165
+ {
166
+ "epoch": 0.7760141093474426,
167
+ "grad_norm": 2.625,
168
+ "learning_rate": 1.4426692597128339e-06,
169
+ "loss": 1.7584,
170
+ "step": 220
171
+ },
172
+ {
173
+ "epoch": 0.8112874779541446,
174
+ "grad_norm": 2.609375,
175
+ "learning_rate": 1.036372676097897e-06,
176
+ "loss": 1.7584,
177
+ "step": 230
178
+ },
179
+ {
180
+ "epoch": 0.8465608465608465,
181
+ "grad_norm": 2.6875,
182
+ "learning_rate": 6.90634075952149e-07,
183
+ "loss": 1.7567,
184
+ "step": 240
185
+ },
186
+ {
187
+ "epoch": 0.8818342151675485,
188
+ "grad_norm": 2.65625,
189
+ "learning_rate": 4.1073580060622455e-07,
190
+ "loss": 1.7539,
191
+ "step": 250
192
+ },
193
+ {
194
+ "epoch": 0.9171075837742504,
195
+ "grad_norm": 2.625,
196
+ "learning_rate": 2.0095425491515386e-07,
197
+ "loss": 1.7624,
198
+ "step": 260
199
+ },
200
+ {
201
+ "epoch": 0.9523809523809523,
202
+ "grad_norm": 2.59375,
203
+ "learning_rate": 6.449457052677965e-08,
204
+ "loss": 1.7407,
205
+ "step": 270
206
+ },
207
+ {
208
+ "epoch": 0.9876543209876543,
209
+ "grad_norm": 2.59375,
210
+ "learning_rate": 3.4416365177236675e-09,
211
+ "loss": 1.7473,
212
+ "step": 280
213
+ },
214
+ {
215
+ "epoch": 0.9982363315696648,
216
+ "eval_loss": 1.8862216472625732,
217
+ "eval_runtime": 61.8534,
218
+ "eval_samples_per_second": 5.384,
219
+ "eval_steps_per_second": 2.7,
220
+ "step": 283
221
+ },
222
+ {
223
+ "epoch": 0.9982363315696648,
224
+ "step": 283,
225
+ "total_flos": 1.1264430584732058e+17,
226
+ "train_loss": 1.8635691063142918,
227
+ "train_runtime": 3704.3906,
228
+ "train_samples_per_second": 1.224,
229
+ "train_steps_per_second": 0.076
230
+ }
231
+ ],
232
+ "logging_steps": 10,
233
+ "max_steps": 283,
234
+ "num_input_tokens_seen": 0,
235
+ "num_train_epochs": 1,
236
+ "save_steps": 100,
237
+ "stateful_callbacks": {
238
+ "TrainerControl": {
239
+ "args": {
240
+ "should_epoch_stop": false,
241
+ "should_evaluate": false,
242
+ "should_log": false,
243
+ "should_save": true,
244
+ "should_training_stop": true
245
+ },
246
+ "attributes": {}
247
+ }
248
+ },
249
+ "total_flos": 1.1264430584732058e+17,
250
+ "train_batch_size": 1,
251
+ "trial_name": null,
252
+ "trial_params": null
253
+ }