Qin Liu commited on
Commit
16401cf
1 Parent(s): d859795

Model save

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ base_model: Jackie999/llama3-sudo-5epochs-tofu_full_sft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: llama3-sudo-dpo-3epochs-forget10mix400-1sft-2fullpara
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # llama3-sudo-dpo-3epochs-forget10mix400-1sft-2fullpara
17
+
18
+ This model is a fine-tuned version of [Jackie999/llama3-sudo-5epochs-tofu_full_sft](https://huggingface.co/Jackie999/llama3-sudo-5epochs-tofu_full_sft) on an unknown dataset.
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-06
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 4
43
+ - gradient_accumulation_steps: 4
44
+ - total_train_batch_size: 64
45
+ - total_eval_batch_size: 32
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 3
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.44.0
58
+ - Pytorch 2.1.2
59
+ - Datasets 3.0.0
60
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.1484553155489266,
5
+ "train_runtime": 7941.2801,
6
+ "train_samples": 1600,
7
+ "train_samples_per_second": 0.604,
8
+ "train_steps_per_second": 0.009
9
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 128000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 128001,
6
+ 128009
7
+ ],
8
+ "max_length": 4096,
9
+ "temperature": 0.6,
10
+ "top_p": 0.9,
11
+ "transformers_version": "4.44.0"
12
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.1484553155489266,
5
+ "train_runtime": 7941.2801,
6
+ "train_samples": 1600,
7
+ "train_samples_per_second": 0.604,
8
+ "train_steps_per_second": 0.009
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 1000,
6
+ "global_step": 75,
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.04,
13
+ "grad_norm": 5.490424211005471,
14
+ "learning_rate": 6.25e-07,
15
+ "logits/chosen": -1.73323655128479,
16
+ "logits/rejected": -1.963712453842163,
17
+ "logps/chosen": -64.71795654296875,
18
+ "logps/rejected": -92.56527709960938,
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.4,
28
+ "grad_norm": 2.8759007361583007,
29
+ "learning_rate": 4.989014955054746e-06,
30
+ "logits/chosen": -1.6668554544448853,
31
+ "logits/rejected": -1.8378652334213257,
32
+ "logps/chosen": -75.77650451660156,
33
+ "logps/rejected": -130.23812866210938,
34
+ "loss": 0.6061,
35
+ "rewards/accuracies": 0.625,
36
+ "rewards/chosen": -0.1238466128706932,
37
+ "rewards/margins": 0.300619512796402,
38
+ "rewards/rejected": -0.4244661331176758,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.8,
43
+ "grad_norm": 2.726977629562235,
44
+ "learning_rate": 4.614580148147744e-06,
45
+ "logits/chosen": -1.2113852500915527,
46
+ "logits/rejected": -1.529423475265503,
47
+ "logps/chosen": -59.67132568359375,
48
+ "logps/rejected": -267.4389953613281,
49
+ "loss": 0.367,
50
+ "rewards/accuracies": 0.8125,
51
+ "rewards/chosen": 0.013831649906933308,
52
+ "rewards/margins": 1.7786989212036133,
53
+ "rewards/rejected": -1.7648674249649048,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 1.2,
58
+ "grad_norm": 4.853755500158873,
59
+ "learning_rate": 3.783685483787105e-06,
60
+ "logits/chosen": -1.130287766456604,
61
+ "logits/rejected": -1.5208537578582764,
62
+ "logps/chosen": -86.93096160888672,
63
+ "logps/rejected": -550.50830078125,
64
+ "loss": 0.1014,
65
+ "rewards/accuracies": 0.9937499761581421,
66
+ "rewards/chosen": -0.2528189718723297,
67
+ "rewards/margins": 4.348726749420166,
68
+ "rewards/rejected": -4.601546287536621,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 1.6,
73
+ "grad_norm": 0.41367369924975356,
74
+ "learning_rate": 2.6756904723632325e-06,
75
+ "logits/chosen": -1.32732355594635,
76
+ "logits/rejected": -1.7840182781219482,
77
+ "logps/chosen": -165.8927001953125,
78
+ "logps/rejected": -817.1434326171875,
79
+ "loss": 0.0122,
80
+ "rewards/accuracies": 1.0,
81
+ "rewards/chosen": -1.0844600200653076,
82
+ "rewards/margins": 6.145598411560059,
83
+ "rewards/rejected": -7.230058193206787,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 2.0,
88
+ "grad_norm": 13.989910262766891,
89
+ "learning_rate": 1.5297703683193755e-06,
90
+ "logits/chosen": -1.598076343536377,
91
+ "logits/rejected": -1.9638893604278564,
92
+ "logps/chosen": -143.41690063476562,
93
+ "logps/rejected": -1029.6900634765625,
94
+ "loss": 0.0085,
95
+ "rewards/accuracies": 0.9937499761581421,
96
+ "rewards/chosen": -0.8121221661567688,
97
+ "rewards/margins": 8.604238510131836,
98
+ "rewards/rejected": -9.416360855102539,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 2.4,
103
+ "grad_norm": 0.05482660827333183,
104
+ "learning_rate": 5.932870547240455e-07,
105
+ "logits/chosen": -1.44638991355896,
106
+ "logits/rejected": -1.9433313608169556,
107
+ "logps/chosen": -140.36776733398438,
108
+ "logps/rejected": -1133.6243896484375,
109
+ "loss": 0.0022,
110
+ "rewards/accuracies": 1.0,
111
+ "rewards/chosen": -0.8202629089355469,
112
+ "rewards/margins": 9.569122314453125,
113
+ "rewards/rejected": -10.389385223388672,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 2.8,
118
+ "grad_norm": 10.857846321858867,
119
+ "learning_rate": 6.839273668796747e-08,
120
+ "logits/chosen": -1.6353269815444946,
121
+ "logits/rejected": -2.07700514793396,
122
+ "logps/chosen": -172.53036499023438,
123
+ "logps/rejected": -1374.29296875,
124
+ "loss": 0.0072,
125
+ "rewards/accuracies": 1.0,
126
+ "rewards/chosen": -1.0923078060150146,
127
+ "rewards/margins": 11.75459098815918,
128
+ "rewards/rejected": -12.846899032592773,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 3.0,
133
+ "step": 75,
134
+ "total_flos": 0.0,
135
+ "train_loss": 0.1484553155489266,
136
+ "train_runtime": 7941.2801,
137
+ "train_samples_per_second": 0.604,
138
+ "train_steps_per_second": 0.009
139
+ }
140
+ ],
141
+ "logging_steps": 10,
142
+ "max_steps": 75,
143
+ "num_input_tokens_seen": 0,
144
+ "num_train_epochs": 3,
145
+ "save_steps": 1000,
146
+ "stateful_callbacks": {
147
+ "TrainerControl": {
148
+ "args": {
149
+ "should_epoch_stop": false,
150
+ "should_evaluate": false,
151
+ "should_log": false,
152
+ "should_save": true,
153
+ "should_training_stop": true
154
+ },
155
+ "attributes": {}
156
+ }
157
+ },
158
+ "total_flos": 0.0,
159
+ "train_batch_size": 4,
160
+ "trial_name": null,
161
+ "trial_params": null
162
+ }