End of training
Browse files- README.md +15 -2
- all_results.json +22 -0
- eval_results.json +17 -0
- train_results.json +8 -0
- trainer_state.json +178 -0
- training_loss.png +0 -0
- training_rewards_accuracies.png +0 -0
README.md
CHANGED
@@ -3,9 +3,10 @@ base_model: google/gemma-2-9b-it
|
|
3 |
library_name: peft
|
4 |
license: gemma
|
5 |
tags:
|
|
|
|
|
6 |
- trl
|
7 |
- dpo
|
8 |
-
- llama-factory
|
9 |
- generated_from_trainer
|
10 |
model-index:
|
11 |
- name: Gemma-2-9B-It-SAA-Half
|
@@ -17,7 +18,19 @@ should probably proofread and complete it, then remove this comment. -->
|
|
17 |
|
18 |
# Gemma-2-9B-It-SAA-Half
|
19 |
|
20 |
-
This model is a fine-tuned version of [google/gemma-2-9b-it](https://huggingface.co/google/gemma-2-9b-it) on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
## Model description
|
23 |
|
|
|
3 |
library_name: peft
|
4 |
license: gemma
|
5 |
tags:
|
6 |
+
- llama-factory
|
7 |
+
- lora
|
8 |
- trl
|
9 |
- dpo
|
|
|
10 |
- generated_from_trainer
|
11 |
model-index:
|
12 |
- name: Gemma-2-9B-It-SAA-Half
|
|
|
18 |
|
19 |
# Gemma-2-9B-It-SAA-Half
|
20 |
|
21 |
+
This model is a fine-tuned version of [google/gemma-2-9b-it](https://huggingface.co/google/gemma-2-9b-it) on the bct_non_cot_dpo_500 dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.1383
|
24 |
+
- Rewards/chosen: -0.1098
|
25 |
+
- Rewards/rejected: -0.1934
|
26 |
+
- Rewards/accuracies: 0.8400
|
27 |
+
- Rewards/margins: 0.0836
|
28 |
+
- Logps/rejected: -1.9339
|
29 |
+
- Logps/chosen: -1.0982
|
30 |
+
- Logits/rejected: 0.3316
|
31 |
+
- Logits/chosen: 0.1306
|
32 |
+
- Sft Loss: 0.1185
|
33 |
+
- Odds Ratio Loss: 10.1978
|
34 |
|
35 |
## Model description
|
36 |
|
all_results.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.986666666666667,
|
3 |
+
"eval_logits/chosen": 0.13058120012283325,
|
4 |
+
"eval_logits/rejected": 0.3316400647163391,
|
5 |
+
"eval_logps/chosen": -1.0981853008270264,
|
6 |
+
"eval_logps/rejected": -1.93387770652771,
|
7 |
+
"eval_loss": 1.138285517692566,
|
8 |
+
"eval_odds_ratio_loss": 10.197811126708984,
|
9 |
+
"eval_rewards/accuracies": 0.8399999737739563,
|
10 |
+
"eval_rewards/chosen": -0.10981854796409607,
|
11 |
+
"eval_rewards/margins": 0.0835692435503006,
|
12 |
+
"eval_rewards/rejected": -0.19338779151439667,
|
13 |
+
"eval_runtime": 3.5214,
|
14 |
+
"eval_samples_per_second": 14.199,
|
15 |
+
"eval_sft_loss": 0.11850442737340927,
|
16 |
+
"eval_steps_per_second": 7.099,
|
17 |
+
"total_flos": 1.79183583387648e+16,
|
18 |
+
"train_loss": 1.8150039003008889,
|
19 |
+
"train_runtime": 321.7396,
|
20 |
+
"train_samples_per_second": 4.196,
|
21 |
+
"train_steps_per_second": 0.261
|
22 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.986666666666667,
|
3 |
+
"eval_logits/chosen": 0.13058120012283325,
|
4 |
+
"eval_logits/rejected": 0.3316400647163391,
|
5 |
+
"eval_logps/chosen": -1.0981853008270264,
|
6 |
+
"eval_logps/rejected": -1.93387770652771,
|
7 |
+
"eval_loss": 1.138285517692566,
|
8 |
+
"eval_odds_ratio_loss": 10.197811126708984,
|
9 |
+
"eval_rewards/accuracies": 0.8399999737739563,
|
10 |
+
"eval_rewards/chosen": -0.10981854796409607,
|
11 |
+
"eval_rewards/margins": 0.0835692435503006,
|
12 |
+
"eval_rewards/rejected": -0.19338779151439667,
|
13 |
+
"eval_runtime": 3.5214,
|
14 |
+
"eval_samples_per_second": 14.199,
|
15 |
+
"eval_sft_loss": 0.11850442737340927,
|
16 |
+
"eval_steps_per_second": 7.099
|
17 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.986666666666667,
|
3 |
+
"total_flos": 1.79183583387648e+16,
|
4 |
+
"train_loss": 1.8150039003008889,
|
5 |
+
"train_runtime": 321.7396,
|
6 |
+
"train_samples_per_second": 4.196,
|
7 |
+
"train_steps_per_second": 0.261
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 2.986666666666667,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 84,
|
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.35555555555555557,
|
13 |
+
"grad_norm": 8.401800155639648,
|
14 |
+
"learning_rate": 4.997807075247147e-06,
|
15 |
+
"logits/chosen": -0.8945320248603821,
|
16 |
+
"logits/rejected": -0.5788193345069885,
|
17 |
+
"logps/chosen": -2.9349863529205322,
|
18 |
+
"logps/rejected": -3.64762806892395,
|
19 |
+
"loss": 2.984,
|
20 |
+
"odds_ratio_loss": 25.994487762451172,
|
21 |
+
"rewards/accuracies": 0.8187500238418579,
|
22 |
+
"rewards/chosen": -0.2934986352920532,
|
23 |
+
"rewards/margins": 0.07126419246196747,
|
24 |
+
"rewards/rejected": -0.3647628426551819,
|
25 |
+
"sft_loss": 0.38450396060943604,
|
26 |
+
"step": 10
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.7111111111111111,
|
30 |
+
"grad_norm": 8.160788536071777,
|
31 |
+
"learning_rate": 4.7392794005985324e-06,
|
32 |
+
"logits/chosen": -0.042264025658369064,
|
33 |
+
"logits/rejected": 0.3497065603733063,
|
34 |
+
"logps/chosen": -2.580463171005249,
|
35 |
+
"logps/rejected": -3.380384922027588,
|
36 |
+
"loss": 2.6249,
|
37 |
+
"odds_ratio_loss": 22.97456932067871,
|
38 |
+
"rewards/accuracies": 0.8062499761581421,
|
39 |
+
"rewards/chosen": -0.25804632902145386,
|
40 |
+
"rewards/margins": 0.07999216020107269,
|
41 |
+
"rewards/rejected": -0.33803847432136536,
|
42 |
+
"sft_loss": 0.327446311712265,
|
43 |
+
"step": 20
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"epoch": 1.0666666666666667,
|
47 |
+
"grad_norm": 6.696309566497803,
|
48 |
+
"learning_rate": 4.093559974371725e-06,
|
49 |
+
"logits/chosen": 0.13843640685081482,
|
50 |
+
"logits/rejected": 0.34011250734329224,
|
51 |
+
"logps/chosen": -2.284363031387329,
|
52 |
+
"logps/rejected": -3.1281402111053467,
|
53 |
+
"loss": 2.3288,
|
54 |
+
"odds_ratio_loss": 20.365238189697266,
|
55 |
+
"rewards/accuracies": 0.824999988079071,
|
56 |
+
"rewards/chosen": -0.22843630611896515,
|
57 |
+
"rewards/margins": 0.084377720952034,
|
58 |
+
"rewards/rejected": -0.31281405687332153,
|
59 |
+
"sft_loss": 0.2922500967979431,
|
60 |
+
"step": 30
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 1.4222222222222223,
|
64 |
+
"grad_norm": 6.540295600891113,
|
65 |
+
"learning_rate": 3.1722995515381644e-06,
|
66 |
+
"logits/chosen": -0.17821866273880005,
|
67 |
+
"logits/rejected": 0.14577758312225342,
|
68 |
+
"logps/chosen": -1.8487365245819092,
|
69 |
+
"logps/rejected": -2.766937494277954,
|
70 |
+
"loss": 1.8902,
|
71 |
+
"odds_ratio_loss": 16.7292537689209,
|
72 |
+
"rewards/accuracies": 0.8187500238418579,
|
73 |
+
"rewards/chosen": -0.18487365543842316,
|
74 |
+
"rewards/margins": 0.0918201133608818,
|
75 |
+
"rewards/rejected": -0.27669376134872437,
|
76 |
+
"sft_loss": 0.21722586452960968,
|
77 |
+
"step": 40
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"epoch": 1.7777777777777777,
|
81 |
+
"grad_norm": 6.058716297149658,
|
82 |
+
"learning_rate": 2.134792428593971e-06,
|
83 |
+
"logits/chosen": -0.18059103190898895,
|
84 |
+
"logits/rejected": 0.23373714089393616,
|
85 |
+
"logps/chosen": -1.3791837692260742,
|
86 |
+
"logps/rejected": -2.2727575302124023,
|
87 |
+
"loss": 1.4255,
|
88 |
+
"odds_ratio_loss": 12.77796459197998,
|
89 |
+
"rewards/accuracies": 0.8187500238418579,
|
90 |
+
"rewards/chosen": -0.1379183828830719,
|
91 |
+
"rewards/margins": 0.08935736119747162,
|
92 |
+
"rewards/rejected": -0.2272757589817047,
|
93 |
+
"sft_loss": 0.14766769111156464,
|
94 |
+
"step": 50
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"epoch": 2.1333333333333333,
|
98 |
+
"grad_norm": 5.3382248878479,
|
99 |
+
"learning_rate": 1.160433012552508e-06,
|
100 |
+
"logits/chosen": 0.018472682684659958,
|
101 |
+
"logits/rejected": 0.20830214023590088,
|
102 |
+
"logps/chosen": -1.2152187824249268,
|
103 |
+
"logps/rejected": -2.189805269241333,
|
104 |
+
"loss": 1.2625,
|
105 |
+
"odds_ratio_loss": 11.279905319213867,
|
106 |
+
"rewards/accuracies": 0.800000011920929,
|
107 |
+
"rewards/chosen": -0.12152187526226044,
|
108 |
+
"rewards/margins": 0.09745865315198898,
|
109 |
+
"rewards/rejected": -0.21898052096366882,
|
110 |
+
"sft_loss": 0.13448992371559143,
|
111 |
+
"step": 60
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 2.488888888888889,
|
115 |
+
"grad_norm": 4.452148914337158,
|
116 |
+
"learning_rate": 4.1769689822475147e-07,
|
117 |
+
"logits/chosen": -0.5339587330818176,
|
118 |
+
"logits/rejected": -0.18176746368408203,
|
119 |
+
"logps/chosen": -1.101285457611084,
|
120 |
+
"logps/rejected": -2.074463367462158,
|
121 |
+
"loss": 1.1431,
|
122 |
+
"odds_ratio_loss": 10.337614059448242,
|
123 |
+
"rewards/accuracies": 0.824999988079071,
|
124 |
+
"rewards/chosen": -0.11012855917215347,
|
125 |
+
"rewards/margins": 0.09731777757406235,
|
126 |
+
"rewards/rejected": -0.20744633674621582,
|
127 |
+
"sft_loss": 0.10934151709079742,
|
128 |
+
"step": 70
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 2.8444444444444446,
|
132 |
+
"grad_norm": 5.778459072113037,
|
133 |
+
"learning_rate": 3.5009907323737826e-08,
|
134 |
+
"logits/chosen": -0.40168875455856323,
|
135 |
+
"logits/rejected": -0.02362009882926941,
|
136 |
+
"logps/chosen": -1.0387601852416992,
|
137 |
+
"logps/rejected": -2.0947299003601074,
|
138 |
+
"loss": 1.0746,
|
139 |
+
"odds_ratio_loss": 9.696004867553711,
|
140 |
+
"rewards/accuracies": 0.856249988079071,
|
141 |
+
"rewards/chosen": -0.1038760170340538,
|
142 |
+
"rewards/margins": 0.10559698194265366,
|
143 |
+
"rewards/rejected": -0.20947298407554626,
|
144 |
+
"sft_loss": 0.10503064095973969,
|
145 |
+
"step": 80
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"epoch": 2.986666666666667,
|
149 |
+
"step": 84,
|
150 |
+
"total_flos": 1.79183583387648e+16,
|
151 |
+
"train_loss": 1.8150039003008889,
|
152 |
+
"train_runtime": 321.7396,
|
153 |
+
"train_samples_per_second": 4.196,
|
154 |
+
"train_steps_per_second": 0.261
|
155 |
+
}
|
156 |
+
],
|
157 |
+
"logging_steps": 10,
|
158 |
+
"max_steps": 84,
|
159 |
+
"num_input_tokens_seen": 0,
|
160 |
+
"num_train_epochs": 3,
|
161 |
+
"save_steps": 500,
|
162 |
+
"stateful_callbacks": {
|
163 |
+
"TrainerControl": {
|
164 |
+
"args": {
|
165 |
+
"should_epoch_stop": false,
|
166 |
+
"should_evaluate": false,
|
167 |
+
"should_log": false,
|
168 |
+
"should_save": true,
|
169 |
+
"should_training_stop": true
|
170 |
+
},
|
171 |
+
"attributes": {}
|
172 |
+
}
|
173 |
+
},
|
174 |
+
"total_flos": 1.79183583387648e+16,
|
175 |
+
"train_batch_size": 2,
|
176 |
+
"trial_name": null,
|
177 |
+
"trial_params": null
|
178 |
+
}
|
training_loss.png
ADDED
training_rewards_accuracies.png
ADDED