Model save
Browse files- README.md +61 -0
- all_results.json +9 -0
- generation_config.json +6 -0
- train_results.json +9 -0
- trainer_state.json +192 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- dpo
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: zephyr-7b-align-scan-0.0-0.3-polynomial-1
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# zephyr-7b-align-scan-0.0-0.3-polynomial-1
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on an unknown dataset.
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 1.760046153641933e-07
|
39 |
+
- train_batch_size: 8
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- distributed_type: multi-GPU
|
43 |
+
- num_devices: 4
|
44 |
+
- gradient_accumulation_steps: 2
|
45 |
+
- total_train_batch_size: 64
|
46 |
+
- total_eval_batch_size: 32
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: polynomial
|
49 |
+
- lr_scheduler_warmup_ratio: 0.1
|
50 |
+
- num_epochs: 1
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.44.2
|
59 |
+
- Pytorch 2.4.0
|
60 |
+
- Datasets 2.21.0
|
61 |
+
- 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.6600211213032404,
|
5 |
+
"train_runtime": 962.6608,
|
6 |
+
"train_samples": 6113,
|
7 |
+
"train_samples_per_second": 6.35,
|
8 |
+
"train_steps_per_second": 0.1
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.44.2"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.6600211213032404,
|
5 |
+
"train_runtime": 962.6608,
|
6 |
+
"train_samples": 6113,
|
7 |
+
"train_samples_per_second": 6.35,
|
8 |
+
"train_steps_per_second": 0.1
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 100,
|
6 |
+
"global_step": 96,
|
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.010416666666666666,
|
13 |
+
"grad_norm": 178.77286563875307,
|
14 |
+
"learning_rate": 1.7600461536419332e-08,
|
15 |
+
"logits/chosen": -2.590585231781006,
|
16 |
+
"logits/rejected": -2.5664222240448,
|
17 |
+
"logps/chosen": -80.29847717285156,
|
18 |
+
"logps/rejected": -53.10200881958008,
|
19 |
+
"loss": 0.6931,
|
20 |
+
"rewards/accuracies": 0.0,
|
21 |
+
"rewards/chosen": 0.0,
|
22 |
+
"rewards/margins": 0.0,
|
23 |
+
"rewards/rejected": 0.0,
|
24 |
+
"step": 1
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.10416666666666667,
|
28 |
+
"grad_norm": 160.97877202778918,
|
29 |
+
"learning_rate": 1.760046153641933e-07,
|
30 |
+
"logits/chosen": -2.555966377258301,
|
31 |
+
"logits/rejected": -2.5380208492279053,
|
32 |
+
"logps/chosen": -87.92900848388672,
|
33 |
+
"logps/rejected": -81.04818725585938,
|
34 |
+
"loss": 0.6931,
|
35 |
+
"rewards/accuracies": 0.2013888955116272,
|
36 |
+
"rewards/chosen": -0.0037568057887256145,
|
37 |
+
"rewards/margins": -0.0011305783409625292,
|
38 |
+
"rewards/rejected": -0.0026262274477630854,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.20833333333333334,
|
43 |
+
"grad_norm": 135.4750421201187,
|
44 |
+
"learning_rate": 1.671668693916127e-07,
|
45 |
+
"logits/chosen": -2.6140284538269043,
|
46 |
+
"logits/rejected": -2.5652213096618652,
|
47 |
+
"logps/chosen": -103.2249755859375,
|
48 |
+
"logps/rejected": -89.80636596679688,
|
49 |
+
"loss": 0.6837,
|
50 |
+
"rewards/accuracies": 0.3375000059604645,
|
51 |
+
"rewards/chosen": 0.0341915600001812,
|
52 |
+
"rewards/margins": 0.01302550919353962,
|
53 |
+
"rewards/rejected": 0.021166052669286728,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.3125,
|
58 |
+
"grad_norm": 183.23637457075452,
|
59 |
+
"learning_rate": 1.5832912341903208e-07,
|
60 |
+
"logits/chosen": -2.518775701522827,
|
61 |
+
"logits/rejected": -2.5330777168273926,
|
62 |
+
"logps/chosen": -67.13838958740234,
|
63 |
+
"logps/rejected": -74.79261779785156,
|
64 |
+
"loss": 0.6768,
|
65 |
+
"rewards/accuracies": 0.3062500059604645,
|
66 |
+
"rewards/chosen": 0.08110855519771576,
|
67 |
+
"rewards/margins": 0.044944558292627335,
|
68 |
+
"rewards/rejected": 0.036163996905088425,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.4166666666666667,
|
73 |
+
"grad_norm": 117.61800068052908,
|
74 |
+
"learning_rate": 1.4949137744645144e-07,
|
75 |
+
"logits/chosen": -2.5774178504943848,
|
76 |
+
"logits/rejected": -2.5653040409088135,
|
77 |
+
"logps/chosen": -71.62496948242188,
|
78 |
+
"logps/rejected": -70.44197082519531,
|
79 |
+
"loss": 0.6712,
|
80 |
+
"rewards/accuracies": 0.26875001192092896,
|
81 |
+
"rewards/chosen": 0.14154085516929626,
|
82 |
+
"rewards/margins": 0.06791118532419205,
|
83 |
+
"rewards/rejected": 0.07362965494394302,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.5208333333333334,
|
88 |
+
"grad_norm": 134.94145476491178,
|
89 |
+
"learning_rate": 1.4065363147387083e-07,
|
90 |
+
"logits/chosen": -2.491271495819092,
|
91 |
+
"logits/rejected": -2.503357410430908,
|
92 |
+
"logps/chosen": -50.327152252197266,
|
93 |
+
"logps/rejected": -58.57765579223633,
|
94 |
+
"loss": 0.6631,
|
95 |
+
"rewards/accuracies": 0.23125000298023224,
|
96 |
+
"rewards/chosen": 0.15576013922691345,
|
97 |
+
"rewards/margins": 0.0658084824681282,
|
98 |
+
"rewards/rejected": 0.08995168656110764,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.625,
|
103 |
+
"grad_norm": 132.63437591048415,
|
104 |
+
"learning_rate": 1.3181588550129022e-07,
|
105 |
+
"logits/chosen": -2.5763726234436035,
|
106 |
+
"logits/rejected": -2.557838201522827,
|
107 |
+
"logps/chosen": -78.12178039550781,
|
108 |
+
"logps/rejected": -78.89440155029297,
|
109 |
+
"loss": 0.6587,
|
110 |
+
"rewards/accuracies": 0.32499998807907104,
|
111 |
+
"rewards/chosen": 0.25709980726242065,
|
112 |
+
"rewards/margins": 0.1368531435728073,
|
113 |
+
"rewards/rejected": 0.12024664878845215,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.7291666666666666,
|
118 |
+
"grad_norm": 131.450312242274,
|
119 |
+
"learning_rate": 1.229781395287096e-07,
|
120 |
+
"logits/chosen": -2.5564064979553223,
|
121 |
+
"logits/rejected": -2.5472121238708496,
|
122 |
+
"logps/chosen": -94.9344253540039,
|
123 |
+
"logps/rejected": -84.7915267944336,
|
124 |
+
"loss": 0.6471,
|
125 |
+
"rewards/accuracies": 0.3499999940395355,
|
126 |
+
"rewards/chosen": 0.3827608525753021,
|
127 |
+
"rewards/margins": 0.20402593910694122,
|
128 |
+
"rewards/rejected": 0.1787349283695221,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.8333333333333334,
|
133 |
+
"grad_norm": 204.1138249065331,
|
134 |
+
"learning_rate": 1.1414039355612898e-07,
|
135 |
+
"logits/chosen": -2.5576930046081543,
|
136 |
+
"logits/rejected": -2.5041146278381348,
|
137 |
+
"logps/chosen": -84.25480651855469,
|
138 |
+
"logps/rejected": -78.98388671875,
|
139 |
+
"loss": 0.6283,
|
140 |
+
"rewards/accuracies": 0.4000000059604645,
|
141 |
+
"rewards/chosen": 0.37731510400772095,
|
142 |
+
"rewards/margins": 0.2691493034362793,
|
143 |
+
"rewards/rejected": 0.10816575586795807,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 0.9375,
|
148 |
+
"grad_norm": 173.37555247860905,
|
149 |
+
"learning_rate": 1.0530264758354837e-07,
|
150 |
+
"logits/chosen": -2.4902758598327637,
|
151 |
+
"logits/rejected": -2.484860420227051,
|
152 |
+
"logps/chosen": -53.16009521484375,
|
153 |
+
"logps/rejected": -63.27381134033203,
|
154 |
+
"loss": 0.6453,
|
155 |
+
"rewards/accuracies": 0.26875001192092896,
|
156 |
+
"rewards/chosen": 0.2224617451429367,
|
157 |
+
"rewards/margins": 0.16971835494041443,
|
158 |
+
"rewards/rejected": 0.052743397653102875,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 1.0,
|
163 |
+
"step": 96,
|
164 |
+
"total_flos": 0.0,
|
165 |
+
"train_loss": 0.6600211213032404,
|
166 |
+
"train_runtime": 962.6608,
|
167 |
+
"train_samples_per_second": 6.35,
|
168 |
+
"train_steps_per_second": 0.1
|
169 |
+
}
|
170 |
+
],
|
171 |
+
"logging_steps": 10,
|
172 |
+
"max_steps": 96,
|
173 |
+
"num_input_tokens_seen": 0,
|
174 |
+
"num_train_epochs": 1,
|
175 |
+
"save_steps": 100,
|
176 |
+
"stateful_callbacks": {
|
177 |
+
"TrainerControl": {
|
178 |
+
"args": {
|
179 |
+
"should_epoch_stop": false,
|
180 |
+
"should_evaluate": false,
|
181 |
+
"should_log": false,
|
182 |
+
"should_save": true,
|
183 |
+
"should_training_stop": true
|
184 |
+
},
|
185 |
+
"attributes": {}
|
186 |
+
}
|
187 |
+
},
|
188 |
+
"total_flos": 0.0,
|
189 |
+
"train_batch_size": 8,
|
190 |
+
"trial_name": null,
|
191 |
+
"trial_params": null
|
192 |
+
}
|