scottsuk0306
commited on
Commit
•
240c66f
1
Parent(s):
d3106bd
Model save
Browse files- README.md +67 -0
- all_results.json +9 -0
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
- train_results.json +9 -0
- trainer_state.json +207 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
base_model: google/gemma-2-2b-it
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- reward-trainer
|
7 |
+
- generated_from_trainer
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: easylm-helpsteer-rm-gemma-2-2b-it
|
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 |
+
# easylm-helpsteer-rm-gemma-2-2b-it
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.6655
|
23 |
+
- Accuracy: 0.6329
|
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: 2e-05
|
43 |
+
- train_batch_size: 1
|
44 |
+
- eval_batch_size: 1
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 3
|
48 |
+
- total_train_batch_size: 3
|
49 |
+
- total_eval_batch_size: 3
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: cosine
|
52 |
+
- num_epochs: 1
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
58 |
+
| 0.711 | 0.4579 | 1000 | 0.7638 | 0.6214 |
|
59 |
+
| 0.6407 | 0.9158 | 2000 | 0.6655 | 0.6329 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.43.3
|
65 |
+
- Pytorch 2.4.0+cu121
|
66 |
+
- Datasets 2.20.0
|
67 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.7032692458603408,
|
5 |
+
"train_runtime": 2584.7937,
|
6 |
+
"train_samples": 6550,
|
7 |
+
"train_samples_per_second": 2.534,
|
8 |
+
"train_steps_per_second": 0.845
|
9 |
+
}
|
model-00001-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4988025760
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44fee6b55bbf29df70dccdab3cb19bd153395bbeb527771ef9413cdbab975496
|
3 |
size 4988025760
|
model-00002-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 240701032
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2483f5bcefcbe77db02edf146419f36751f556fcd27e718f7dfefb50fbd009a
|
3 |
size 240701032
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.7032692458603408,
|
5 |
+
"train_runtime": 2584.7937,
|
6 |
+
"train_samples": 6550,
|
7 |
+
"train_samples_per_second": 2.534,
|
8 |
+
"train_steps_per_second": 0.845
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 1000,
|
6 |
+
"global_step": 2184,
|
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.045787545787545784,
|
13 |
+
"grad_norm": 8.169079780578613,
|
14 |
+
"learning_rate": 1.9896720173943657e-05,
|
15 |
+
"loss": 0.8583,
|
16 |
+
"step": 100
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.09157509157509157,
|
20 |
+
"grad_norm": 22.747098922729492,
|
21 |
+
"learning_rate": 1.9589014040268678e-05,
|
22 |
+
"loss": 0.759,
|
23 |
+
"step": 200
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.13736263736263737,
|
27 |
+
"grad_norm": 3.93502140045166,
|
28 |
+
"learning_rate": 1.908323756616754e-05,
|
29 |
+
"loss": 0.7104,
|
30 |
+
"step": 300
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.18315018315018314,
|
34 |
+
"grad_norm": 10.182877540588379,
|
35 |
+
"learning_rate": 1.838983805289396e-05,
|
36 |
+
"loss": 0.7041,
|
37 |
+
"step": 400
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.22893772893772893,
|
41 |
+
"grad_norm": 2.300295352935791,
|
42 |
+
"learning_rate": 1.7523138336671628e-05,
|
43 |
+
"loss": 0.7295,
|
44 |
+
"step": 500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.27472527472527475,
|
48 |
+
"grad_norm": 1.7253031730651855,
|
49 |
+
"learning_rate": 1.6501040936687444e-05,
|
50 |
+
"loss": 0.7295,
|
51 |
+
"step": 600
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.32051282051282054,
|
55 |
+
"grad_norm": 1.2007420063018799,
|
56 |
+
"learning_rate": 1.5344658261278013e-05,
|
57 |
+
"loss": 0.6888,
|
58 |
+
"step": 700
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.3663003663003663,
|
62 |
+
"grad_norm": 2.432363986968994,
|
63 |
+
"learning_rate": 1.4077876510757502e-05,
|
64 |
+
"loss": 0.6686,
|
65 |
+
"step": 800
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.41208791208791207,
|
69 |
+
"grad_norm": 1.7616468667984009,
|
70 |
+
"learning_rate": 1.2726862284894939e-05,
|
71 |
+
"loss": 0.779,
|
72 |
+
"step": 900
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.45787545787545786,
|
76 |
+
"grad_norm": 4.531213760375977,
|
77 |
+
"learning_rate": 1.1319522086539666e-05,
|
78 |
+
"loss": 0.711,
|
79 |
+
"step": 1000
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.45787545787545786,
|
83 |
+
"eval_accuracy": 0.6213872832369942,
|
84 |
+
"eval_loss": 0.7638348937034607,
|
85 |
+
"eval_runtime": 12.3349,
|
86 |
+
"eval_samples_per_second": 28.051,
|
87 |
+
"eval_steps_per_second": 9.404,
|
88 |
+
"step": 1000
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 0.5036630036630036,
|
92 |
+
"grad_norm": 4.445523738861084,
|
93 |
+
"learning_rate": 9.884925885869326e-06,
|
94 |
+
"loss": 0.6899,
|
95 |
+
"step": 1100
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 0.5494505494505495,
|
99 |
+
"grad_norm": 5.363688945770264,
|
100 |
+
"learning_rate": 8.452706652097187e-06,
|
101 |
+
"loss": 0.6949,
|
102 |
+
"step": 1200
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 0.5952380952380952,
|
106 |
+
"grad_norm": 11.651291847229004,
|
107 |
+
"learning_rate": 7.052448255890958e-06,
|
108 |
+
"loss": 0.6604,
|
109 |
+
"step": 1300
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 0.6410256410256411,
|
113 |
+
"grad_norm": 10.71049690246582,
|
114 |
+
"learning_rate": 5.713074385969457e-06,
|
115 |
+
"loss": 0.667,
|
116 |
+
"step": 1400
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 0.6868131868131868,
|
120 |
+
"grad_norm": 5.3541436195373535,
|
121 |
+
"learning_rate": 4.462251102394669e-06,
|
122 |
+
"loss": 0.6748,
|
123 |
+
"step": 1500
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.7326007326007326,
|
127 |
+
"grad_norm": 7.145966529846191,
|
128 |
+
"learning_rate": 3.325815367397557e-06,
|
129 |
+
"loss": 0.665,
|
130 |
+
"step": 1600
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 0.7783882783882784,
|
134 |
+
"grad_norm": 6.2031168937683105,
|
135 |
+
"learning_rate": 2.327241357985063e-06,
|
136 |
+
"loss": 0.735,
|
137 |
+
"step": 1700
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 0.8241758241758241,
|
141 |
+
"grad_norm": 3.511324882507324,
|
142 |
+
"learning_rate": 1.4871555841564889e-06,
|
143 |
+
"loss": 0.6776,
|
144 |
+
"step": 1800
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 0.86996336996337,
|
148 |
+
"grad_norm": 5.494836330413818,
|
149 |
+
"learning_rate": 8.229108284305176e-07,
|
150 |
+
"loss": 0.6689,
|
151 |
+
"step": 1900
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 0.9157509157509157,
|
155 |
+
"grad_norm": 5.310685157775879,
|
156 |
+
"learning_rate": 3.482277073731988e-07,
|
157 |
+
"loss": 0.6407,
|
158 |
+
"step": 2000
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 0.9157509157509157,
|
162 |
+
"eval_accuracy": 0.6329479768786127,
|
163 |
+
"eval_loss": 0.6654821634292603,
|
164 |
+
"eval_runtime": 12.2552,
|
165 |
+
"eval_samples_per_second": 28.233,
|
166 |
+
"eval_steps_per_second": 9.465,
|
167 |
+
"step": 2000
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"epoch": 0.9615384615384616,
|
171 |
+
"grad_norm": 11.22006893157959,
|
172 |
+
"learning_rate": 7.291125901946027e-08,
|
173 |
+
"loss": 0.6801,
|
174 |
+
"step": 2100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 1.0,
|
178 |
+
"step": 2184,
|
179 |
+
"total_flos": 0.0,
|
180 |
+
"train_loss": 0.7032692458603408,
|
181 |
+
"train_runtime": 2584.7937,
|
182 |
+
"train_samples_per_second": 2.534,
|
183 |
+
"train_steps_per_second": 0.845
|
184 |
+
}
|
185 |
+
],
|
186 |
+
"logging_steps": 100,
|
187 |
+
"max_steps": 2184,
|
188 |
+
"num_input_tokens_seen": 0,
|
189 |
+
"num_train_epochs": 1,
|
190 |
+
"save_steps": 500,
|
191 |
+
"stateful_callbacks": {
|
192 |
+
"TrainerControl": {
|
193 |
+
"args": {
|
194 |
+
"should_epoch_stop": false,
|
195 |
+
"should_evaluate": false,
|
196 |
+
"should_log": false,
|
197 |
+
"should_save": true,
|
198 |
+
"should_training_stop": true
|
199 |
+
},
|
200 |
+
"attributes": {}
|
201 |
+
}
|
202 |
+
},
|
203 |
+
"total_flos": 0.0,
|
204 |
+
"train_batch_size": 1,
|
205 |
+
"trial_name": null,
|
206 |
+
"trial_params": null
|
207 |
+
}
|