Model save
Browse files
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: google/gemma-7b
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: coding_llamaduo_result1
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# coding_llamaduo_result1
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [google/gemma-7b](https://huggingface.co/google/gemma-7b) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.1871
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 0.0002
|
43 |
+
- train_batch_size: 2
|
44 |
+
- eval_batch_size: 2
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 2
|
48 |
+
- gradient_accumulation_steps: 2
|
49 |
+
- total_train_batch_size: 8
|
50 |
+
- total_eval_batch_size: 4
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: cosine
|
53 |
+
- lr_scheduler_warmup_ratio: 0.1
|
54 |
+
- num_epochs: 5
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
60 |
+
| 1.5404 | 0.99 | 36 | 1.5048 |
|
61 |
+
| 0.9147 | 2.0 | 73 | 1.2327 |
|
62 |
+
| 0.7658 | 2.99 | 109 | 1.1766 |
|
63 |
+
| 0.6657 | 4.0 | 146 | 1.1664 |
|
64 |
+
| 0.5601 | 4.93 | 180 | 1.1871 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- PEFT 0.7.1
|
70 |
+
- Transformers 4.39.3
|
71 |
+
- Pytorch 2.2.1+cu121
|
72 |
+
- Datasets 2.18.0
|
73 |
+
- Tokenizers 0.15.2
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 100060536
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b85067c4ac42c10ce89da5cc64f71307f9666396a9c17e64d6f79a611512efc9
|
3 |
size 100060536
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.93,
|
3 |
+
"train_loss": 3.0282001667552523,
|
4 |
+
"train_runtime": 1292.0645,
|
5 |
+
"train_samples": 3481,
|
6 |
+
"train_samples_per_second": 1.13,
|
7 |
+
"train_steps_per_second": 0.139
|
8 |
+
}
|
runs/Apr20_22-11-35_user-WS-C621E-SAGE-Series/events.out.tfevents.1713618737.user-WS-C621E-SAGE-Series.15974.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb6903cdab5a99ea42f3af1c96234dd1496f798a016eec48b63365984bd291db
|
3 |
+
size 14748
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.93,
|
3 |
+
"train_loss": 3.0282001667552523,
|
4 |
+
"train_runtime": 1292.0645,
|
5 |
+
"train_samples": 3481,
|
6 |
+
"train_samples_per_second": 1.13,
|
7 |
+
"train_steps_per_second": 0.139
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.931506849315069,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 180,
|
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.03,
|
13 |
+
"grad_norm": 227.0,
|
14 |
+
"learning_rate": 1.1111111111111112e-05,
|
15 |
+
"loss": 25.8078,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.14,
|
20 |
+
"grad_norm": 191.0,
|
21 |
+
"learning_rate": 5.555555555555556e-05,
|
22 |
+
"loss": 29.6305,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.27,
|
27 |
+
"grad_norm": 27.75,
|
28 |
+
"learning_rate": 0.00011111111111111112,
|
29 |
+
"loss": 17.0724,
|
30 |
+
"step": 10
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.41,
|
34 |
+
"grad_norm": 13.875,
|
35 |
+
"learning_rate": 0.0001666666666666667,
|
36 |
+
"loss": 13.9336,
|
37 |
+
"step": 15
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.55,
|
41 |
+
"grad_norm": 8.0,
|
42 |
+
"learning_rate": 0.00019992479525042303,
|
43 |
+
"loss": 12.2567,
|
44 |
+
"step": 20
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.68,
|
48 |
+
"grad_norm": 25.125,
|
49 |
+
"learning_rate": 0.00019908004033648453,
|
50 |
+
"loss": 9.9926,
|
51 |
+
"step": 25
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.82,
|
55 |
+
"grad_norm": 4.3125,
|
56 |
+
"learning_rate": 0.00019730448705798239,
|
57 |
+
"loss": 3.3192,
|
58 |
+
"step": 30
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.96,
|
62 |
+
"grad_norm": 1.9375,
|
63 |
+
"learning_rate": 0.00019461481568757506,
|
64 |
+
"loss": 1.5404,
|
65 |
+
"step": 35
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.99,
|
69 |
+
"eval_loss": 1.504757046699524,
|
70 |
+
"eval_runtime": 1.175,
|
71 |
+
"eval_samples_per_second": 1.702,
|
72 |
+
"eval_steps_per_second": 0.851,
|
73 |
+
"step": 36
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"epoch": 1.1,
|
77 |
+
"grad_norm": 1.4453125,
|
78 |
+
"learning_rate": 0.0001910362940966147,
|
79 |
+
"loss": 1.3549,
|
80 |
+
"step": 40
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 1.23,
|
84 |
+
"grad_norm": 1.3984375,
|
85 |
+
"learning_rate": 0.00018660254037844388,
|
86 |
+
"loss": 1.1182,
|
87 |
+
"step": 45
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 1.37,
|
91 |
+
"grad_norm": 2.296875,
|
92 |
+
"learning_rate": 0.00018135520702629675,
|
93 |
+
"loss": 1.0879,
|
94 |
+
"step": 50
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"epoch": 1.51,
|
98 |
+
"grad_norm": 0.70703125,
|
99 |
+
"learning_rate": 0.00017534358963276607,
|
100 |
+
"loss": 0.9894,
|
101 |
+
"step": 55
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 1.64,
|
105 |
+
"grad_norm": 4.03125,
|
106 |
+
"learning_rate": 0.0001686241637868734,
|
107 |
+
"loss": 1.0143,
|
108 |
+
"step": 60
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"epoch": 1.78,
|
112 |
+
"grad_norm": 0.609375,
|
113 |
+
"learning_rate": 0.0001612600545193203,
|
114 |
+
"loss": 0.941,
|
115 |
+
"step": 65
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"epoch": 1.92,
|
119 |
+
"grad_norm": 1.40625,
|
120 |
+
"learning_rate": 0.00015332044328016914,
|
121 |
+
"loss": 0.9147,
|
122 |
+
"step": 70
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"epoch": 2.0,
|
126 |
+
"eval_loss": 1.232730746269226,
|
127 |
+
"eval_runtime": 1.0872,
|
128 |
+
"eval_samples_per_second": 1.84,
|
129 |
+
"eval_steps_per_second": 0.92,
|
130 |
+
"step": 73
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 2.05,
|
134 |
+
"grad_norm": 1.171875,
|
135 |
+
"learning_rate": 0.00014487991802004623,
|
136 |
+
"loss": 0.8644,
|
137 |
+
"step": 75
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 2.19,
|
141 |
+
"grad_norm": 1.75,
|
142 |
+
"learning_rate": 0.00013601777248047105,
|
143 |
+
"loss": 0.8647,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 2.33,
|
148 |
+
"grad_norm": 2.140625,
|
149 |
+
"learning_rate": 0.00012681726127606376,
|
150 |
+
"loss": 0.7439,
|
151 |
+
"step": 85
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 2.47,
|
155 |
+
"grad_norm": 1.5078125,
|
156 |
+
"learning_rate": 0.00011736481776669306,
|
157 |
+
"loss": 0.7543,
|
158 |
+
"step": 90
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 2.6,
|
162 |
+
"grad_norm": 2.78125,
|
163 |
+
"learning_rate": 0.0001077492420671931,
|
164 |
+
"loss": 0.768,
|
165 |
+
"step": 95
|
166 |
+
},
|
167 |
+
{
|
168 |
+
"epoch": 2.74,
|
169 |
+
"grad_norm": 0.98046875,
|
170 |
+
"learning_rate": 9.806086682281758e-05,
|
171 |
+
"loss": 0.7375,
|
172 |
+
"step": 100
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"epoch": 2.88,
|
176 |
+
"grad_norm": 1.8203125,
|
177 |
+
"learning_rate": 8.839070858747697e-05,
|
178 |
+
"loss": 0.7658,
|
179 |
+
"step": 105
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 2.99,
|
183 |
+
"eval_loss": 1.1765708923339844,
|
184 |
+
"eval_runtime": 1.0876,
|
185 |
+
"eval_samples_per_second": 1.839,
|
186 |
+
"eval_steps_per_second": 0.919,
|
187 |
+
"step": 109
|
188 |
+
},
|
189 |
+
{
|
190 |
+
"epoch": 3.01,
|
191 |
+
"grad_norm": 1.09375,
|
192 |
+
"learning_rate": 7.882961277705895e-05,
|
193 |
+
"loss": 0.7233,
|
194 |
+
"step": 110
|
195 |
+
},
|
196 |
+
{
|
197 |
+
"epoch": 3.15,
|
198 |
+
"grad_norm": 6.0,
|
199 |
+
"learning_rate": 6.94674002304887e-05,
|
200 |
+
"loss": 0.6432,
|
201 |
+
"step": 115
|
202 |
+
},
|
203 |
+
{
|
204 |
+
"epoch": 3.29,
|
205 |
+
"grad_norm": 0.66796875,
|
206 |
+
"learning_rate": 6.039202339608432e-05,
|
207 |
+
"loss": 0.6253,
|
208 |
+
"step": 120
|
209 |
+
},
|
210 |
+
{
|
211 |
+
"epoch": 3.42,
|
212 |
+
"grad_norm": 0.6015625,
|
213 |
+
"learning_rate": 5.168874007033615e-05,
|
214 |
+
"loss": 0.6256,
|
215 |
+
"step": 125
|
216 |
+
},
|
217 |
+
{
|
218 |
+
"epoch": 3.56,
|
219 |
+
"grad_norm": 0.9453125,
|
220 |
+
"learning_rate": 4.343931245134616e-05,
|
221 |
+
"loss": 0.6338,
|
222 |
+
"step": 130
|
223 |
+
},
|
224 |
+
{
|
225 |
+
"epoch": 3.7,
|
226 |
+
"grad_norm": 1.203125,
|
227 |
+
"learning_rate": 3.5721239031346066e-05,
|
228 |
+
"loss": 0.5985,
|
229 |
+
"step": 135
|
230 |
+
},
|
231 |
+
{
|
232 |
+
"epoch": 3.84,
|
233 |
+
"grad_norm": 0.6328125,
|
234 |
+
"learning_rate": 2.8607026544210114e-05,
|
235 |
+
"loss": 0.6229,
|
236 |
+
"step": 140
|
237 |
+
},
|
238 |
+
{
|
239 |
+
"epoch": 3.97,
|
240 |
+
"grad_norm": 0.61328125,
|
241 |
+
"learning_rate": 2.2163508807583998e-05,
|
242 |
+
"loss": 0.6657,
|
243 |
+
"step": 145
|
244 |
+
},
|
245 |
+
{
|
246 |
+
"epoch": 4.0,
|
247 |
+
"eval_loss": 1.166442632675171,
|
248 |
+
"eval_runtime": 1.1331,
|
249 |
+
"eval_samples_per_second": 1.765,
|
250 |
+
"eval_steps_per_second": 0.883,
|
251 |
+
"step": 146
|
252 |
+
},
|
253 |
+
{
|
254 |
+
"epoch": 4.11,
|
255 |
+
"grad_norm": 0.5546875,
|
256 |
+
"learning_rate": 1.6451218858706374e-05,
|
257 |
+
"loss": 0.6001,
|
258 |
+
"step": 150
|
259 |
+
},
|
260 |
+
{
|
261 |
+
"epoch": 4.25,
|
262 |
+
"grad_norm": 0.5703125,
|
263 |
+
"learning_rate": 1.1523820282334219e-05,
|
264 |
+
"loss": 0.5512,
|
265 |
+
"step": 155
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"epoch": 4.38,
|
269 |
+
"grad_norm": 0.60546875,
|
270 |
+
"learning_rate": 7.427603073110967e-06,
|
271 |
+
"loss": 0.5623,
|
272 |
+
"step": 160
|
273 |
+
},
|
274 |
+
{
|
275 |
+
"epoch": 4.52,
|
276 |
+
"grad_norm": 0.5390625,
|
277 |
+
"learning_rate": 4.20104876845111e-06,
|
278 |
+
"loss": 0.5772,
|
279 |
+
"step": 165
|
280 |
+
},
|
281 |
+
{
|
282 |
+
"epoch": 4.66,
|
283 |
+
"grad_norm": 0.55078125,
|
284 |
+
"learning_rate": 1.874468937261531e-06,
|
285 |
+
"loss": 0.5458,
|
286 |
+
"step": 170
|
287 |
+
},
|
288 |
+
{
|
289 |
+
"epoch": 4.79,
|
290 |
+
"grad_norm": 0.640625,
|
291 |
+
"learning_rate": 4.6972042068341714e-07,
|
292 |
+
"loss": 0.5804,
|
293 |
+
"step": 175
|
294 |
+
},
|
295 |
+
{
|
296 |
+
"epoch": 4.93,
|
297 |
+
"grad_norm": 0.51953125,
|
298 |
+
"learning_rate": 0.0,
|
299 |
+
"loss": 0.5601,
|
300 |
+
"step": 180
|
301 |
+
},
|
302 |
+
{
|
303 |
+
"epoch": 4.93,
|
304 |
+
"eval_loss": 1.1870766878128052,
|
305 |
+
"eval_runtime": 1.0847,
|
306 |
+
"eval_samples_per_second": 1.844,
|
307 |
+
"eval_steps_per_second": 0.922,
|
308 |
+
"step": 180
|
309 |
+
},
|
310 |
+
{
|
311 |
+
"epoch": 4.93,
|
312 |
+
"step": 180,
|
313 |
+
"total_flos": 1.3804098843312128e+17,
|
314 |
+
"train_loss": 3.0282001667552523,
|
315 |
+
"train_runtime": 1292.0645,
|
316 |
+
"train_samples_per_second": 1.13,
|
317 |
+
"train_steps_per_second": 0.139
|
318 |
+
}
|
319 |
+
],
|
320 |
+
"logging_steps": 5,
|
321 |
+
"max_steps": 180,
|
322 |
+
"num_input_tokens_seen": 0,
|
323 |
+
"num_train_epochs": 5,
|
324 |
+
"save_steps": 100,
|
325 |
+
"total_flos": 1.3804098843312128e+17,
|
326 |
+
"train_batch_size": 2,
|
327 |
+
"trial_name": null,
|
328 |
+
"trial_params": null
|
329 |
+
}
|