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.0-linear-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.0-linear-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: 8.639811904061041e-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: linear
|
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.6540692721803983,
|
5 |
+
"train_runtime": 977.0227,
|
6 |
+
"train_samples": 6113,
|
7 |
+
"train_samples_per_second": 6.257,
|
8 |
+
"train_steps_per_second": 0.098
|
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.6540692721803983,
|
5 |
+
"train_runtime": 977.0227,
|
6 |
+
"train_samples": 6113,
|
7 |
+
"train_samples_per_second": 6.257,
|
8 |
+
"train_steps_per_second": 0.098
|
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": 23.252944189766428,
|
14 |
+
"learning_rate": 8.639811904061041e-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": 21.182382477045586,
|
29 |
+
"learning_rate": 8.639811904061041e-07,
|
30 |
+
"logits/chosen": -2.5559909343719482,
|
31 |
+
"logits/rejected": -2.5379226207733154,
|
32 |
+
"logps/chosen": -87.82003021240234,
|
33 |
+
"logps/rejected": -80.9332046508789,
|
34 |
+
"loss": 0.6931,
|
35 |
+
"rewards/accuracies": 0.2013888955116272,
|
36 |
+
"rewards/chosen": 0.00335866492241621,
|
37 |
+
"rewards/margins": -0.0003586374514270574,
|
38 |
+
"rewards/rejected": 0.003717302344739437,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.20833333333333334,
|
43 |
+
"grad_norm": 17.233720974528225,
|
44 |
+
"learning_rate": 7.635182612891153e-07,
|
45 |
+
"logits/chosen": -2.5788445472717285,
|
46 |
+
"logits/rejected": -2.528242588043213,
|
47 |
+
"logps/chosen": -101.24139404296875,
|
48 |
+
"logps/rejected": -88.24673461914062,
|
49 |
+
"loss": 0.6743,
|
50 |
+
"rewards/accuracies": 0.34375,
|
51 |
+
"rewards/chosen": 0.07447633892297745,
|
52 |
+
"rewards/margins": 0.016661062836647034,
|
53 |
+
"rewards/rejected": 0.057815272361040115,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.3125,
|
58 |
+
"grad_norm": 25.6903065091126,
|
59 |
+
"learning_rate": 6.630553321721264e-07,
|
60 |
+
"logits/chosen": -2.4120750427246094,
|
61 |
+
"logits/rejected": -2.4285130500793457,
|
62 |
+
"logps/chosen": -67.22891235351562,
|
63 |
+
"logps/rejected": -77.24456787109375,
|
64 |
+
"loss": 0.6697,
|
65 |
+
"rewards/accuracies": 0.32499998807907104,
|
66 |
+
"rewards/chosen": 0.007355662528425455,
|
67 |
+
"rewards/margins": 0.08921505510807037,
|
68 |
+
"rewards/rejected": -0.08185939490795135,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.4166666666666667,
|
73 |
+
"grad_norm": 19.22554951858603,
|
74 |
+
"learning_rate": 5.625924030551376e-07,
|
75 |
+
"logits/chosen": -2.4893252849578857,
|
76 |
+
"logits/rejected": -2.4751393795013428,
|
77 |
+
"logps/chosen": -74.36286163330078,
|
78 |
+
"logps/rejected": -75.44730377197266,
|
79 |
+
"loss": 0.6618,
|
80 |
+
"rewards/accuracies": 0.28125,
|
81 |
+
"rewards/chosen": -0.07824570685625076,
|
82 |
+
"rewards/margins": 0.08888493478298187,
|
83 |
+
"rewards/rejected": -0.16713064908981323,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.5208333333333334,
|
88 |
+
"grad_norm": 19.08251678108842,
|
89 |
+
"learning_rate": 4.6212947393814867e-07,
|
90 |
+
"logits/chosen": -2.4168150424957275,
|
91 |
+
"logits/rejected": -2.4291889667510986,
|
92 |
+
"logps/chosen": -52.590057373046875,
|
93 |
+
"logps/rejected": -62.784461975097656,
|
94 |
+
"loss": 0.6552,
|
95 |
+
"rewards/accuracies": 0.23125000298023224,
|
96 |
+
"rewards/chosen": -0.059627026319503784,
|
97 |
+
"rewards/margins": 0.07718921452760696,
|
98 |
+
"rewards/rejected": -0.13681624829769135,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.625,
|
103 |
+
"grad_norm": 21.66166836395161,
|
104 |
+
"learning_rate": 3.6166654482115984e-07,
|
105 |
+
"logits/chosen": -2.489243984222412,
|
106 |
+
"logits/rejected": -2.4673056602478027,
|
107 |
+
"logps/chosen": -82.04798889160156,
|
108 |
+
"logps/rejected": -87.74610137939453,
|
109 |
+
"loss": 0.6569,
|
110 |
+
"rewards/accuracies": 0.33125001192092896,
|
111 |
+
"rewards/chosen": -0.10516528785228729,
|
112 |
+
"rewards/margins": 0.19169361889362335,
|
113 |
+
"rewards/rejected": -0.29685890674591064,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.7291666666666666,
|
118 |
+
"grad_norm": 19.133621385765668,
|
119 |
+
"learning_rate": 2.6120361570417096e-07,
|
120 |
+
"logits/chosen": -2.452115535736084,
|
121 |
+
"logits/rejected": -2.4336700439453125,
|
122 |
+
"logps/chosen": -96.10133361816406,
|
123 |
+
"logps/rejected": -90.39111328125,
|
124 |
+
"loss": 0.6395,
|
125 |
+
"rewards/accuracies": 0.3125,
|
126 |
+
"rewards/chosen": 0.008597126230597496,
|
127 |
+
"rewards/margins": 0.1830345243215561,
|
128 |
+
"rewards/rejected": -0.17443740367889404,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.8333333333333334,
|
133 |
+
"grad_norm": 34.22517043366701,
|
134 |
+
"learning_rate": 1.6074068658718216e-07,
|
135 |
+
"logits/chosen": -2.4384665489196777,
|
136 |
+
"logits/rejected": -2.3800644874572754,
|
137 |
+
"logps/chosen": -83.1066665649414,
|
138 |
+
"logps/rejected": -85.15121459960938,
|
139 |
+
"loss": 0.6206,
|
140 |
+
"rewards/accuracies": 0.42500001192092896,
|
141 |
+
"rewards/chosen": 0.0896192193031311,
|
142 |
+
"rewards/margins": 0.29328036308288574,
|
143 |
+
"rewards/rejected": -0.20366115868091583,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 0.9375,
|
148 |
+
"grad_norm": 28.270052144663545,
|
149 |
+
"learning_rate": 6.027775747019331e-08,
|
150 |
+
"logits/chosen": -2.3832895755767822,
|
151 |
+
"logits/rejected": -2.3764870166778564,
|
152 |
+
"logps/chosen": -53.896759033203125,
|
153 |
+
"logps/rejected": -69.18147277832031,
|
154 |
+
"loss": 0.6399,
|
155 |
+
"rewards/accuracies": 0.28125,
|
156 |
+
"rewards/chosen": 0.0029330668039619923,
|
157 |
+
"rewards/margins": 0.20463672280311584,
|
158 |
+
"rewards/rejected": -0.20170363783836365,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 1.0,
|
163 |
+
"step": 96,
|
164 |
+
"total_flos": 0.0,
|
165 |
+
"train_loss": 0.6540692721803983,
|
166 |
+
"train_runtime": 977.0227,
|
167 |
+
"train_samples_per_second": 6.257,
|
168 |
+
"train_steps_per_second": 0.098
|
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 |
+
}
|