Model save
Browse files- README.md +62 -0
- adapter_model.safetensors +1 -1
- all_results.json +8 -0
- runs/May12_14-30-32_ip-10-192-12-95/events.out.tfevents.1715524281.ip-10-192-12-95.4957.0 +2 -2
- train_results.json +8 -0
- trainer_state.json +198 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- dpo
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: DUAL-GPO/phi-2-gpo-new-i0
|
9 |
+
model-index:
|
10 |
+
- name: phi-2-gpo-lightning-v2-i1
|
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 |
+
# phi-2-gpo-lightning-v2-i1
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [DUAL-GPO/phi-2-gpo-new-i0](https://huggingface.co/DUAL-GPO/phi-2-gpo-new-i0) on the None 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: 5e-06
|
39 |
+
- train_batch_size: 4
|
40 |
+
- eval_batch_size: 4
|
41 |
+
- seed: 42
|
42 |
+
- distributed_type: multi-GPU
|
43 |
+
- num_devices: 4
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 64
|
46 |
+
- total_eval_batch_size: 16
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: cosine
|
49 |
+
- lr_scheduler_warmup_ratio: 0.1
|
50 |
+
- num_epochs: 1
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- PEFT 0.7.1
|
59 |
+
- Transformers 4.36.2
|
60 |
+
- Pytorch 2.2.1+cu121
|
61 |
+
- Datasets 2.14.6
|
62 |
+
- Tokenizers 0.15.2
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 167807296
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3f67494d7e06208673510e4763459cb67385acfe6e578ef0433411244836b2d
|
3 |
size 167807296
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.3177420940154638,
|
4 |
+
"train_runtime": 3860.0223,
|
5 |
+
"train_samples": 7500,
|
6 |
+
"train_samples_per_second": 1.943,
|
7 |
+
"train_steps_per_second": 0.03
|
8 |
+
}
|
runs/May12_14-30-32_ip-10-192-12-95/events.out.tfevents.1715524281.ip-10-192-12-95.4957.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0fc884267cf2683ccecf70e5ab1fcfadf2ab938e9fc356d44204efdc19098b9d
|
3 |
+
size 12692
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.3177420940154638,
|
4 |
+
"train_runtime": 3860.0223,
|
5 |
+
"train_samples": 7500,
|
6 |
+
"train_samples_per_second": 1.943,
|
7 |
+
"train_steps_per_second": 0.03
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.997867803837953,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 117,
|
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.01,
|
13 |
+
"learning_rate": 4.1666666666666667e-07,
|
14 |
+
"logits/chosen": 0.20978523790836334,
|
15 |
+
"logits/rejected": 0.2752217650413513,
|
16 |
+
"logps/chosen": -404.9998474121094,
|
17 |
+
"logps/rejected": -254.88076782226562,
|
18 |
+
"loss": 0.3365,
|
19 |
+
"rewards/accuracies": 0.0,
|
20 |
+
"rewards/chosen": 0.0,
|
21 |
+
"rewards/margins": 0.0,
|
22 |
+
"rewards/rejected": 0.0,
|
23 |
+
"step": 1
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.09,
|
27 |
+
"learning_rate": 4.166666666666667e-06,
|
28 |
+
"logits/chosen": 0.10752824693918228,
|
29 |
+
"logits/rejected": 0.2080475240945816,
|
30 |
+
"logps/chosen": -346.3302917480469,
|
31 |
+
"logps/rejected": -298.17047119140625,
|
32 |
+
"loss": 0.3407,
|
33 |
+
"rewards/accuracies": 0.4513888955116272,
|
34 |
+
"rewards/chosen": 0.00015709556464571506,
|
35 |
+
"rewards/margins": 0.00016293837688863277,
|
36 |
+
"rewards/rejected": -5.842794507771032e-06,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.17,
|
41 |
+
"learning_rate": 4.9287250957321685e-06,
|
42 |
+
"logits/chosen": 0.07487143576145172,
|
43 |
+
"logits/rejected": 0.22133192420005798,
|
44 |
+
"logps/chosen": -339.75555419921875,
|
45 |
+
"logps/rejected": -288.63885498046875,
|
46 |
+
"loss": 0.3478,
|
47 |
+
"rewards/accuracies": 0.6000000238418579,
|
48 |
+
"rewards/chosen": 0.0009735990315675735,
|
49 |
+
"rewards/margins": 0.0009165561641566455,
|
50 |
+
"rewards/rejected": 5.70427582715638e-05,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.26,
|
55 |
+
"learning_rate": 4.646121984004666e-06,
|
56 |
+
"logits/chosen": 0.16956673562526703,
|
57 |
+
"logits/rejected": 0.27035585045814514,
|
58 |
+
"logps/chosen": -349.0343933105469,
|
59 |
+
"logps/rejected": -280.947265625,
|
60 |
+
"loss": 0.3333,
|
61 |
+
"rewards/accuracies": 0.6625000238418579,
|
62 |
+
"rewards/chosen": 0.0033079744316637516,
|
63 |
+
"rewards/margins": 0.0031072809360921383,
|
64 |
+
"rewards/rejected": 0.00020069361198693514,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.34,
|
69 |
+
"learning_rate": 4.172826515897146e-06,
|
70 |
+
"logits/chosen": 0.06156591325998306,
|
71 |
+
"logits/rejected": 0.23971056938171387,
|
72 |
+
"logps/chosen": -358.6338195800781,
|
73 |
+
"logps/rejected": -291.4596252441406,
|
74 |
+
"loss": 0.3305,
|
75 |
+
"rewards/accuracies": 0.6875,
|
76 |
+
"rewards/chosen": 0.006019611842930317,
|
77 |
+
"rewards/margins": 0.005839194171130657,
|
78 |
+
"rewards/rejected": 0.00018041740986518562,
|
79 |
+
"step": 40
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.43,
|
83 |
+
"learning_rate": 3.5508930707739143e-06,
|
84 |
+
"logits/chosen": 0.17305973172187805,
|
85 |
+
"logits/rejected": 0.33108973503112793,
|
86 |
+
"logps/chosen": -334.7964172363281,
|
87 |
+
"logps/rejected": -278.05926513671875,
|
88 |
+
"loss": 0.3349,
|
89 |
+
"rewards/accuracies": 0.7437499761581421,
|
90 |
+
"rewards/chosen": 0.009936058893799782,
|
91 |
+
"rewards/margins": 0.015141323208808899,
|
92 |
+
"rewards/rejected": -0.005205262452363968,
|
93 |
+
"step": 50
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.51,
|
97 |
+
"learning_rate": 2.835583164544139e-06,
|
98 |
+
"logits/chosen": 0.18460991978645325,
|
99 |
+
"logits/rejected": 0.2829166054725647,
|
100 |
+
"logps/chosen": -343.370849609375,
|
101 |
+
"logps/rejected": -328.1906433105469,
|
102 |
+
"loss": 0.3237,
|
103 |
+
"rewards/accuracies": 0.71875,
|
104 |
+
"rewards/chosen": 0.008376851677894592,
|
105 |
+
"rewards/margins": 0.02010621875524521,
|
106 |
+
"rewards/rejected": -0.011729367077350616,
|
107 |
+
"step": 60
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.6,
|
111 |
+
"learning_rate": 2.090455221462156e-06,
|
112 |
+
"logits/chosen": 0.1229587197303772,
|
113 |
+
"logits/rejected": 0.28873729705810547,
|
114 |
+
"logps/chosen": -368.4198303222656,
|
115 |
+
"logps/rejected": -326.5229797363281,
|
116 |
+
"loss": 0.3276,
|
117 |
+
"rewards/accuracies": 0.7437499761581421,
|
118 |
+
"rewards/chosen": -0.000949523295275867,
|
119 |
+
"rewards/margins": 0.026355501264333725,
|
120 |
+
"rewards/rejected": -0.02730502560734749,
|
121 |
+
"step": 70
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.68,
|
125 |
+
"learning_rate": 1.3817171292109182e-06,
|
126 |
+
"logits/chosen": 0.11349205672740936,
|
127 |
+
"logits/rejected": 0.2876424789428711,
|
128 |
+
"logps/chosen": -344.27825927734375,
|
129 |
+
"logps/rejected": -312.2487487792969,
|
130 |
+
"loss": 0.3122,
|
131 |
+
"rewards/accuracies": 0.699999988079071,
|
132 |
+
"rewards/chosen": -0.007496008183807135,
|
133 |
+
"rewards/margins": 0.03042692504823208,
|
134 |
+
"rewards/rejected": -0.0379229299724102,
|
135 |
+
"step": 80
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.77,
|
139 |
+
"learning_rate": 7.723433775328385e-07,
|
140 |
+
"logits/chosen": 0.1455320417881012,
|
141 |
+
"logits/rejected": 0.32055655121803284,
|
142 |
+
"logps/chosen": -389.3392028808594,
|
143 |
+
"logps/rejected": -343.0546569824219,
|
144 |
+
"loss": 0.3056,
|
145 |
+
"rewards/accuracies": 0.7250000238418579,
|
146 |
+
"rewards/chosen": -0.01950433850288391,
|
147 |
+
"rewards/margins": 0.045494794845581055,
|
148 |
+
"rewards/rejected": -0.06499912589788437,
|
149 |
+
"step": 90
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.85,
|
153 |
+
"learning_rate": 3.164794984571759e-07,
|
154 |
+
"logits/chosen": 0.12944644689559937,
|
155 |
+
"logits/rejected": 0.2912340462207794,
|
156 |
+
"logps/chosen": -380.64886474609375,
|
157 |
+
"logps/rejected": -371.8363037109375,
|
158 |
+
"loss": 0.3046,
|
159 |
+
"rewards/accuracies": 0.762499988079071,
|
160 |
+
"rewards/chosen": -0.028714578598737717,
|
161 |
+
"rewards/margins": 0.048634570091962814,
|
162 |
+
"rewards/rejected": -0.07734914869070053,
|
163 |
+
"step": 100
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.94,
|
167 |
+
"learning_rate": 5.463099816548578e-08,
|
168 |
+
"logits/chosen": 0.13937367498874664,
|
169 |
+
"logits/rejected": 0.2031385451555252,
|
170 |
+
"logps/chosen": -384.63287353515625,
|
171 |
+
"logps/rejected": -380.8174743652344,
|
172 |
+
"loss": 0.2819,
|
173 |
+
"rewards/accuracies": 0.762499988079071,
|
174 |
+
"rewards/chosen": -0.033626072108745575,
|
175 |
+
"rewards/margins": 0.050805091857910156,
|
176 |
+
"rewards/rejected": -0.08443117141723633,
|
177 |
+
"step": 110
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"epoch": 1.0,
|
181 |
+
"step": 117,
|
182 |
+
"total_flos": 0.0,
|
183 |
+
"train_loss": 0.3177420940154638,
|
184 |
+
"train_runtime": 3860.0223,
|
185 |
+
"train_samples_per_second": 1.943,
|
186 |
+
"train_steps_per_second": 0.03
|
187 |
+
}
|
188 |
+
],
|
189 |
+
"logging_steps": 10,
|
190 |
+
"max_steps": 117,
|
191 |
+
"num_input_tokens_seen": 0,
|
192 |
+
"num_train_epochs": 1,
|
193 |
+
"save_steps": 100,
|
194 |
+
"total_flos": 0.0,
|
195 |
+
"train_batch_size": 4,
|
196 |
+
"trial_name": null,
|
197 |
+
"trial_params": null
|
198 |
+
}
|