15juneee commited on
Commit
0397d64
·
verified ·
1 Parent(s): cafcb4d

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +3 -1
  2. adapter_config.json +2 -2
  3. adapter_model.safetensors +1 -1
  4. trainer_state.json +146 -118
README.md CHANGED
@@ -24,7 +24,9 @@ AutoScientist Challenge (Part 2).
24
 
25
  ## Measured improvement
26
 
27
- AutoScientist reported **best_win_rate = 0.5492** over 2 iterations against `meta-llama/Llama-3.2-3B-Instruct` - i.e. the fine-tuned model is preferred over its own baseline in 54.9% of comparisons. An earlier 5-iteration run of the same dataset reached 0.5674 before the job wedged at iteration 4/5 and had to be cancelled, so 0.5492 is the reproducible, completed figure.
 
 
28
 
29
  Evaluation methodology, including the position-swap and dual-judge controls, is in
30
  `EVAL.md` in the project repository. The held-out split used is published alongside the
 
24
 
25
  ## Measured improvement
26
 
27
+ AutoScientist reported **best_win_rate = 0.6262** against `meta-llama/Llama-3.2-3B-Instruct` - the fine-tuned model is preferred over its own baseline in 62.6% of comparisons.
28
+
29
+ This model was trained with **DPO on preference pairs** generated by `datasets.run(training_type='preference_pairs')`. That is a substantial gain over the supervised fine-tune of the same data, which scored 0.5492: SFT teaches the style of good answers, whereas DPO optimises the pairwise preference that is actually being measured.
30
 
31
  Evaluation methodology, including the position-swap and dual-judge controls, is in
32
  `EVAL.md` in the project repository. The held-out split used is published alongside the
adapter_config.json CHANGED
@@ -24,11 +24,11 @@
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
 
 
27
  "gate_proj",
28
  "v_proj",
29
- "up_proj",
30
  "down_proj",
31
- "o_proj",
32
  "k_proj",
33
  "q_proj"
34
  ],
 
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
27
+ "o_proj",
28
+ "up_proj",
29
  "gate_proj",
30
  "v_proj",
 
31
  "down_proj",
 
32
  "k_proj",
33
  "q_proj"
34
  ],
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:50cdd02bcab4ed669c2d113478231d85a5caa3e102a5ca7b7da951ff915d930d
3
  size 97307544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eca27f188528f4e39b1970cbb6e9e8e636b0c7c1e28b943ffffd8a6f463f4a87
3
  size 97307544
trainer_state.json CHANGED
@@ -3,202 +3,230 @@
3
  "best_metric": null,
4
  "best_model_checkpoint": null,
5
  "epoch": 1.0,
6
- "eval_steps": 4,
7
- "global_step": 21,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
- "epoch": 0.047619047619047616,
14
- "grad_norm": 0.26583361625671387,
15
  "learning_rate": 0.0,
16
- "loss": 1.838623046875,
17
  "step": 1
18
  },
19
  {
20
- "epoch": 0.09523809523809523,
21
- "grad_norm": 0.2549391984939575,
22
- "learning_rate": 3.3333333333333333e-06,
23
- "loss": 1.7900390625,
24
  "step": 2
25
  },
26
  {
27
- "epoch": 0.14285714285714285,
28
- "grad_norm": 0.27876609563827515,
29
- "learning_rate": 6.666666666666667e-06,
30
- "loss": 1.8592529296875,
31
  "step": 3
32
  },
33
  {
34
- "epoch": 0.19047619047619047,
35
- "grad_norm": 0.2896035611629486,
36
- "learning_rate": 1e-05,
37
- "loss": 1.801513671875,
38
  "step": 4
39
  },
40
  {
41
- "epoch": 0.23809523809523808,
42
- "grad_norm": 0.3665730953216553,
43
- "learning_rate": 9.931634888554937e-06,
44
- "loss": 1.545654296875,
45
  "step": 5
46
  },
47
  {
48
- "epoch": 0.23809523809523808,
49
- "eval_loss": 1.732421875,
50
- "eval_runtime": 2.193,
51
- "eval_samples_per_second": 1.368,
52
- "eval_steps_per_second": 0.456,
53
  "step": 5
54
  },
55
  {
56
- "epoch": 0.2857142857142857,
57
- "grad_norm": 0.2946288287639618,
58
- "learning_rate": 9.728616793536588e-06,
59
- "loss": 1.818359375,
60
  "step": 6
61
  },
62
  {
63
- "epoch": 0.3333333333333333,
64
- "grad_norm": 0.2675096094608307,
65
- "learning_rate": 9.397114317029975e-06,
66
- "loss": 1.7734375,
67
  "step": 7
68
  },
69
  {
70
- "epoch": 0.38095238095238093,
71
- "grad_norm": 0.2651223838329315,
72
- "learning_rate": 8.947199994035402e-06,
73
- "loss": 1.78955078125,
74
  "step": 8
75
  },
76
  {
77
- "epoch": 0.42857142857142855,
78
- "grad_norm": 0.31145110726356506,
79
- "learning_rate": 8.392544243589428e-06,
80
- "loss": 1.8505859375,
81
  "step": 9
82
  },
83
  {
84
- "epoch": 0.42857142857142855,
85
- "eval_loss": 1.724609375,
86
- "eval_runtime": 2.188,
87
- "eval_samples_per_second": 1.371,
88
- "eval_steps_per_second": 0.457,
89
- "step": 9
90
  },
91
  {
92
- "epoch": 0.47619047619047616,
93
- "grad_norm": 0.27500542998313904,
94
- "learning_rate": 7.75e-06,
95
- "loss": 1.796630859375,
 
96
  "step": 10
97
  },
98
  {
99
- "epoch": 0.5238095238095238,
100
- "grad_norm": 0.27637097239494324,
101
- "learning_rate": 7.0390906449655104e-06,
102
- "loss": 1.82177734375,
103
  "step": 11
104
  },
105
  {
106
- "epoch": 0.5714285714285714,
107
- "grad_norm": 0.28143683075904846,
108
- "learning_rate": 6.281416799501188e-06,
109
- "loss": 1.84130859375,
110
  "step": 12
111
  },
112
  {
113
- "epoch": 0.6190476190476191,
114
- "grad_norm": 0.29704588651657104,
115
- "learning_rate": 5.500000000000001e-06,
116
- "loss": 1.807373046875,
117
  "step": 13
118
  },
119
  {
120
- "epoch": 0.6190476190476191,
121
- "eval_loss": 1.71875,
122
- "eval_runtime": 2.1801,
123
- "eval_samples_per_second": 1.376,
124
- "eval_steps_per_second": 0.459,
125
- "step": 13
126
- },
127
- {
128
- "epoch": 0.6666666666666666,
129
- "grad_norm": 0.2861112654209137,
130
- "learning_rate": 4.718583200498814e-06,
131
- "loss": 1.81103515625,
132
  "step": 14
133
  },
134
  {
135
- "epoch": 0.7142857142857143,
136
- "grad_norm": 0.3324793577194214,
137
- "learning_rate": 3.960909355034491e-06,
138
- "loss": 1.796875,
139
  "step": 15
140
  },
141
  {
142
- "epoch": 0.7619047619047619,
143
- "grad_norm": 0.25911256670951843,
144
- "learning_rate": 3.2500000000000015e-06,
145
- "loss": 1.736572265625,
146
- "step": 16
 
147
  },
148
  {
149
- "epoch": 0.8095238095238095,
150
- "grad_norm": 0.2930397391319275,
151
- "learning_rate": 2.607455756410573e-06,
152
- "loss": 1.818359375,
153
- "step": 17
154
  },
155
  {
156
- "epoch": 0.8095238095238095,
157
- "eval_loss": 1.7109375,
158
- "eval_runtime": 2.19,
159
- "eval_samples_per_second": 1.37,
160
- "eval_steps_per_second": 0.457,
161
  "step": 17
162
  },
163
  {
164
- "epoch": 0.8571428571428571,
165
- "grad_norm": 0.29004520177841187,
166
- "learning_rate": 2.0528000059646e-06,
167
- "loss": 1.81201171875,
168
  "step": 18
169
  },
170
  {
171
- "epoch": 0.9047619047619048,
172
- "grad_norm": 0.2956332862377167,
173
- "learning_rate": 1.602885682970026e-06,
174
- "loss": 1.8251953125,
175
  "step": 19
176
  },
177
  {
178
- "epoch": 0.9523809523809523,
179
- "grad_norm": 0.3092670440673828,
180
- "learning_rate": 1.2713832064634127e-06,
181
- "loss": 1.779296875,
182
  "step": 20
183
  },
184
  {
185
- "epoch": 1.0,
186
- "grad_norm": 0.29927435517311096,
187
- "learning_rate": 1.0683651114450641e-06,
188
- "loss": 1.79345703125,
 
 
 
 
 
 
 
 
189
  "step": 21
190
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  {
192
  "epoch": 1.0,
193
- "eval_loss": 1.7109375,
194
- "eval_runtime": 2.1924,
195
- "eval_samples_per_second": 1.368,
196
- "eval_steps_per_second": 0.456,
197
- "step": 21
 
 
 
 
 
 
 
198
  }
199
  ],
200
  "logging_steps": 1.0,
201
- "max_steps": 21,
202
  "num_input_tokens_seen": 0,
203
  "num_train_epochs": 1,
204
  "save_steps": 0,
@@ -214,7 +242,7 @@
214
  "attributes": {}
215
  }
216
  },
217
- "total_flos": 1.722081761694843e+17,
218
  "train_batch_size": 1,
219
  "trial_name": null,
220
  "trial_params": null
 
3
  "best_metric": null,
4
  "best_model_checkpoint": null,
5
  "epoch": 1.0,
6
+ "eval_steps": 5,
7
+ "global_step": 25,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
+ "epoch": 0.04,
14
+ "grad_norm": 0.3135530948638916,
15
  "learning_rate": 0.0,
16
+ "loss": 1.8271484375,
17
  "step": 1
18
  },
19
  {
20
+ "epoch": 0.08,
21
+ "grad_norm": 0.30578845739364624,
22
+ "learning_rate": 5e-05,
23
+ "loss": 1.76904296875,
24
  "step": 2
25
  },
26
  {
27
+ "epoch": 0.12,
28
+ "grad_norm": 0.32055363059043884,
29
+ "learning_rate": 4.980750938091074e-05,
30
+ "loss": 1.8251953125,
31
  "step": 3
32
  },
33
  {
34
+ "epoch": 0.16,
35
+ "grad_norm": 0.3271876871585846,
36
+ "learning_rate": 4.9233331091504034e-05,
37
+ "loss": 1.8466796875,
38
  "step": 4
39
  },
40
  {
41
+ "epoch": 0.2,
42
+ "grad_norm": 0.3510723114013672,
43
+ "learning_rate": 4.8287289481503954e-05,
44
+ "loss": 1.89501953125,
45
  "step": 5
46
  },
47
  {
48
+ "epoch": 0.2,
49
+ "eval_loss": 1.7734375,
50
+ "eval_runtime": 2.2485,
51
+ "eval_samples_per_second": 0.889,
52
+ "eval_steps_per_second": 0.445,
53
  "step": 5
54
  },
55
  {
56
+ "epoch": 0.24,
57
+ "grad_norm": 0.3387308716773987,
58
+ "learning_rate": 4.6985571585149876e-05,
59
+ "loss": 1.76806640625,
60
  "step": 6
61
  },
62
  {
63
+ "epoch": 0.28,
64
+ "grad_norm": 0.34001627564430237,
65
+ "learning_rate": 4.535045015655279e-05,
66
+ "loss": 1.7548828125,
67
  "step": 7
68
  },
69
  {
70
+ "epoch": 0.32,
71
+ "grad_norm": 0.3075582683086395,
72
+ "learning_rate": 4.340990257669732e-05,
73
+ "loss": 1.6689453125,
74
  "step": 8
75
  },
76
  {
77
+ "epoch": 0.36,
78
+ "grad_norm": 0.29662805795669556,
79
+ "learning_rate": 4.1197132152696215e-05,
80
+ "loss": 1.7255859375,
81
  "step": 9
82
  },
83
  {
84
+ "epoch": 0.4,
85
+ "grad_norm": 0.28356656432151794,
86
+ "learning_rate": 3.875e-05,
87
+ "loss": 1.7080078125,
88
+ "step": 10
 
89
  },
90
  {
91
+ "epoch": 0.4,
92
+ "eval_loss": 1.68359375,
93
+ "eval_runtime": 2.0485,
94
+ "eval_samples_per_second": 0.976,
95
+ "eval_steps_per_second": 0.488,
96
  "step": 10
97
  },
98
  {
99
+ "epoch": 0.44,
100
+ "grad_norm": 0.2615479826927185,
101
+ "learning_rate": 3.611037722821452e-05,
102
+ "loss": 1.66796875,
103
  "step": 11
104
  },
105
  {
106
+ "epoch": 0.48,
107
+ "grad_norm": 0.25153541564941406,
108
+ "learning_rate": 3.332342851480672e-05,
109
+ "loss": 1.6669921875,
110
  "step": 12
111
  },
112
  {
113
+ "epoch": 0.52,
114
+ "grad_norm": 0.236228808760643,
115
+ "learning_rate": 3.0436839324951166e-05,
116
+ "loss": 1.6611328125,
117
  "step": 13
118
  },
119
  {
120
+ "epoch": 0.56,
121
+ "grad_norm": 0.24782223999500275,
122
+ "learning_rate": 2.7500000000000004e-05,
123
+ "loss": 1.740234375,
 
 
 
 
 
 
 
 
124
  "step": 14
125
  },
126
  {
127
+ "epoch": 0.6,
128
+ "grad_norm": 0.2386341094970703,
129
+ "learning_rate": 2.4563160675048846e-05,
130
+ "loss": 1.64404296875,
131
  "step": 15
132
  },
133
  {
134
+ "epoch": 0.6,
135
+ "eval_loss": 1.6484375,
136
+ "eval_runtime": 2.051,
137
+ "eval_samples_per_second": 0.975,
138
+ "eval_steps_per_second": 0.488,
139
+ "step": 15
140
  },
141
  {
142
+ "epoch": 0.64,
143
+ "grad_norm": 0.22649618983268738,
144
+ "learning_rate": 2.1676571485193282e-05,
145
+ "loss": 1.55908203125,
146
+ "step": 16
147
  },
148
  {
149
+ "epoch": 0.68,
150
+ "grad_norm": 0.25247156620025635,
151
+ "learning_rate": 1.888962277178548e-05,
152
+ "loss": 1.6220703125,
 
153
  "step": 17
154
  },
155
  {
156
+ "epoch": 0.72,
157
+ "grad_norm": 0.2598176896572113,
158
+ "learning_rate": 1.6250000000000005e-05,
159
+ "loss": 1.662109375,
160
  "step": 18
161
  },
162
  {
163
+ "epoch": 0.76,
164
+ "grad_norm": 0.23730042576789856,
165
+ "learning_rate": 1.3802867847303785e-05,
166
+ "loss": 1.5947265625,
167
  "step": 19
168
  },
169
  {
170
+ "epoch": 0.8,
171
+ "grad_norm": 0.24574804306030273,
172
+ "learning_rate": 1.1590097423302684e-05,
173
+ "loss": 1.69921875,
174
  "step": 20
175
  },
176
  {
177
+ "epoch": 0.8,
178
+ "eval_loss": 1.625,
179
+ "eval_runtime": 2.0556,
180
+ "eval_samples_per_second": 0.973,
181
+ "eval_steps_per_second": 0.486,
182
+ "step": 20
183
+ },
184
+ {
185
+ "epoch": 0.84,
186
+ "grad_norm": 0.23554882407188416,
187
+ "learning_rate": 9.649549843447212e-06,
188
+ "loss": 1.65576171875,
189
  "step": 21
190
  },
191
+ {
192
+ "epoch": 0.88,
193
+ "grad_norm": 0.24011166393756866,
194
+ "learning_rate": 8.01442841485013e-06,
195
+ "loss": 1.625,
196
+ "step": 22
197
+ },
198
+ {
199
+ "epoch": 0.92,
200
+ "grad_norm": 0.24006858468055725,
201
+ "learning_rate": 6.712710518496049e-06,
202
+ "loss": 1.611328125,
203
+ "step": 23
204
+ },
205
+ {
206
+ "epoch": 0.96,
207
+ "grad_norm": 0.22434408962726593,
208
+ "learning_rate": 5.766668908495966e-06,
209
+ "loss": 1.5771484375,
210
+ "step": 24
211
+ },
212
  {
213
  "epoch": 1.0,
214
+ "grad_norm": 0.21985848248004913,
215
+ "learning_rate": 5.192490619089267e-06,
216
+ "loss": 1.5849609375,
217
+ "step": 25
218
+ },
219
+ {
220
+ "epoch": 1.0,
221
+ "eval_loss": 1.62109375,
222
+ "eval_runtime": 2.0583,
223
+ "eval_samples_per_second": 0.972,
224
+ "eval_steps_per_second": 0.486,
225
+ "step": 25
226
  }
227
  ],
228
  "logging_steps": 1.0,
229
+ "max_steps": 25,
230
  "num_input_tokens_seen": 0,
231
  "num_train_epochs": 1,
232
  "save_steps": 0,
 
242
  "attributes": {}
243
  }
244
  },
245
+ "total_flos": 2.8168959689752576e+16,
246
  "train_batch_size": 1,
247
  "trial_name": null,
248
  "trial_params": null