RAY2L commited on
Commit
4bce160
·
verified ·
1 Parent(s): a83173e

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: facebook/opt-350m
4
+ tags:
5
+ - alignment-handbook
6
+ - generated_from_trainer
7
+ datasets:
8
+ - RAY2L/llama3-ultrafeedback-mini
9
+ model-index:
10
+ - name: opt-350m
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
+ # opt-350m
18
+
19
+ This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co/facebook/opt-350m) on the RAY2L/llama3-ultrafeedback-mini 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: 1e-06
39
+ - train_batch_size: 4
40
+ - eval_batch_size: 4
41
+ - seed: 42
42
+ - distributed_type: multi-GPU
43
+ - gradient_accumulation_steps: 8
44
+ - total_train_batch_size: 32
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: cosine
47
+ - lr_scheduler_warmup_ratio: 0.1
48
+ - num_epochs: 1
49
+
50
+ ### Training results
51
+
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - Transformers 4.41.2
57
+ - Pytorch 2.2.2+cu121
58
+ - Datasets 2.20.0
59
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.992,
3
+ "eval_abs_diff": 0.421875,
4
+ "eval_all_logps_1": -819.568115234375,
5
+ "eval_all_logps_1_values": -819.568115234375,
6
+ "eval_all_logps_2": 444.0224914550781,
7
+ "eval_all_logps_2_values": 444.0224914550781,
8
+ "eval_logits/chosen": -1.4453125,
9
+ "eval_logits/rejected": -1.484375,
10
+ "eval_logps/chosen": -2.265625,
11
+ "eval_logps/rejected": -2.34375,
12
+ "eval_loss": 1.7294530868530273,
13
+ "eval_original_losses": 1.7265625,
14
+ "eval_rewards/accuracies": 0.4650000035762787,
15
+ "eval_rewards/chosen": -5.65625,
16
+ "eval_rewards/margins": 0.2001953125,
17
+ "eval_rewards/rejected": -5.84375,
18
+ "eval_runtime": 15.6751,
19
+ "eval_samples": 200,
20
+ "eval_samples_per_second": 12.759,
21
+ "eval_steps_per_second": 3.19,
22
+ "eval_weight": 1.0,
23
+ "total_flos": 0.0,
24
+ "train_loss": 1.8891444052419355,
25
+ "train_runtime": 316.7887,
26
+ "train_samples": 1000,
27
+ "train_samples_per_second": 3.157,
28
+ "train_steps_per_second": 0.098
29
+ }
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/opt-350m",
3
+ "_remove_final_layer_norm": false,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "OPTForCausalLM"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 2,
11
+ "do_layer_norm_before": false,
12
+ "dropout": 0.1,
13
+ "enable_bias": true,
14
+ "eos_token_id": 2,
15
+ "ffn_dim": 4096,
16
+ "hidden_size": 1024,
17
+ "init_std": 0.02,
18
+ "layer_norm_elementwise_affine": true,
19
+ "layerdrop": 0.0,
20
+ "max_position_embeddings": 2048,
21
+ "model_type": "opt",
22
+ "num_attention_heads": 16,
23
+ "num_hidden_layers": 24,
24
+ "pad_token_id": 1,
25
+ "prefix": "</s>",
26
+ "torch_dtype": "bfloat16",
27
+ "transformers_version": "4.41.2",
28
+ "use_cache": true,
29
+ "vocab_size": 50272,
30
+ "word_embed_proj_dim": 512
31
+ }
eval_results.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.992,
3
+ "eval_abs_diff": 0.421875,
4
+ "eval_all_logps_1": -819.568115234375,
5
+ "eval_all_logps_1_values": -819.568115234375,
6
+ "eval_all_logps_2": 444.0224914550781,
7
+ "eval_all_logps_2_values": 444.0224914550781,
8
+ "eval_logits/chosen": -1.4453125,
9
+ "eval_logits/rejected": -1.484375,
10
+ "eval_logps/chosen": -2.265625,
11
+ "eval_logps/rejected": -2.34375,
12
+ "eval_loss": 1.7294530868530273,
13
+ "eval_original_losses": 1.7265625,
14
+ "eval_rewards/accuracies": 0.4650000035762787,
15
+ "eval_rewards/chosen": -5.65625,
16
+ "eval_rewards/margins": 0.2001953125,
17
+ "eval_rewards/rejected": -5.84375,
18
+ "eval_runtime": 15.6751,
19
+ "eval_samples": 200,
20
+ "eval_samples_per_second": 12.759,
21
+ "eval_steps_per_second": 3.19,
22
+ "eval_weight": 1.0
23
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.41.2"
7
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efe321cd4ef93a1a489a5f7cd5a08ccf4dfe3cc90a18d1fdda85a6a4f4566edf
3
+ size 662438160
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "</s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "</s>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "1": {
6
+ "content": "<pad>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "2": {
14
+ "content": "</s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ }
21
+ },
22
+ "bos_token": "</s>",
23
+ "clean_up_tokenization_spaces": true,
24
+ "eos_token": "</s>",
25
+ "errors": "replace",
26
+ "model_max_length": 2048,
27
+ "pad_token": "<pad>",
28
+ "tokenizer_class": "GPT2Tokenizer",
29
+ "unk_token": "</s>"
30
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.992,
3
+ "total_flos": 0.0,
4
+ "train_loss": 1.8891444052419355,
5
+ "train_runtime": 316.7887,
6
+ "train_samples": 1000,
7
+ "train_samples_per_second": 3.157,
8
+ "train_steps_per_second": 0.098
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.992,
5
+ "eval_steps": 400,
6
+ "global_step": 31,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "abs_diff": 0.3515625,
13
+ "all_logps_1": -716.58203125,
14
+ "all_logps_1_values": -716.58203125,
15
+ "all_logps_2": 368.328125,
16
+ "all_logps_2_values": 368.328125,
17
+ "epoch": 0.032,
18
+ "grad_norm": 15.12199720138031,
19
+ "learning_rate": 2.5e-07,
20
+ "logits/chosen": -1.640625,
21
+ "logits/rejected": -1.7109375,
22
+ "logps/chosen": -2.390625,
23
+ "logps/rejected": -2.359375,
24
+ "loss": 1.8057,
25
+ "original_losses": 1.8046875,
26
+ "rewards/accuracies": 0.375,
27
+ "rewards/chosen": -6.0,
28
+ "rewards/margins": -0.06982421875,
29
+ "rewards/rejected": -5.90625,
30
+ "step": 1,
31
+ "weight": 1.0
32
+ },
33
+ {
34
+ "abs_diff": 0.310546875,
35
+ "all_logps_1": -898.46630859375,
36
+ "all_logps_1_values": -898.46630859375,
37
+ "all_logps_2": 469.18359375,
38
+ "all_logps_2_values": 469.18359375,
39
+ "epoch": 0.16,
40
+ "grad_norm": 9.1493804495839,
41
+ "learning_rate": 9.966191788709714e-07,
42
+ "logits/chosen": -1.5859375,
43
+ "logits/rejected": -1.625,
44
+ "logps/chosen": -2.171875,
45
+ "logps/rejected": -2.171875,
46
+ "loss": 1.7542,
47
+ "original_losses": 1.7578125,
48
+ "rewards/accuracies": 0.4609375,
49
+ "rewards/chosen": -5.4375,
50
+ "rewards/margins": -0.0084228515625,
51
+ "rewards/rejected": -5.4375,
52
+ "step": 5,
53
+ "weight": 1.0
54
+ },
55
+ {
56
+ "abs_diff": 0.498046875,
57
+ "all_logps_1": -776.373046875,
58
+ "all_logps_1_values": -776.373046875,
59
+ "all_logps_2": 409.0,
60
+ "all_logps_2_values": 409.0,
61
+ "epoch": 0.32,
62
+ "grad_norm": 14.347515525649953,
63
+ "learning_rate": 8.83022221559489e-07,
64
+ "logits/chosen": -1.4140625,
65
+ "logits/rejected": -1.3984375,
66
+ "logps/chosen": -2.4375,
67
+ "logps/rejected": -2.40625,
68
+ "loss": 2.0064,
69
+ "original_losses": 2.0,
70
+ "rewards/accuracies": 0.4124999940395355,
71
+ "rewards/chosen": -6.09375,
72
+ "rewards/margins": -0.0703125,
73
+ "rewards/rejected": -6.03125,
74
+ "step": 10,
75
+ "weight": 1.0
76
+ },
77
+ {
78
+ "abs_diff": 0.400390625,
79
+ "all_logps_1": -866.23828125,
80
+ "all_logps_1_values": -866.23828125,
81
+ "all_logps_2": 444.09063720703125,
82
+ "all_logps_2_values": 444.09063720703125,
83
+ "epoch": 0.48,
84
+ "grad_norm": 9.610798301744433,
85
+ "learning_rate": 6.434016163555451e-07,
86
+ "logits/chosen": -1.59375,
87
+ "logits/rejected": -1.59375,
88
+ "logps/chosen": -2.375,
89
+ "logps/rejected": -2.34375,
90
+ "loss": 1.9072,
91
+ "original_losses": 1.90625,
92
+ "rewards/accuracies": 0.375,
93
+ "rewards/chosen": -5.9375,
94
+ "rewards/margins": -0.06787109375,
95
+ "rewards/rejected": -5.875,
96
+ "step": 15,
97
+ "weight": 1.0
98
+ },
99
+ {
100
+ "abs_diff": 0.302734375,
101
+ "all_logps_1": -795.837890625,
102
+ "all_logps_1_values": -795.837890625,
103
+ "all_logps_2": 418.5874938964844,
104
+ "all_logps_2_values": 418.5874938964844,
105
+ "epoch": 0.64,
106
+ "grad_norm": 8.931859579637203,
107
+ "learning_rate": 3.56598383644455e-07,
108
+ "logits/chosen": -1.5859375,
109
+ "logits/rejected": -1.5859375,
110
+ "logps/chosen": -2.390625,
111
+ "logps/rejected": -2.359375,
112
+ "loss": 1.835,
113
+ "original_losses": 1.8359375,
114
+ "rewards/accuracies": 0.3375000059604645,
115
+ "rewards/chosen": -5.96875,
116
+ "rewards/margins": -0.09228515625,
117
+ "rewards/rejected": -5.875,
118
+ "step": 20,
119
+ "weight": 1.0
120
+ },
121
+ {
122
+ "abs_diff": 0.4609375,
123
+ "all_logps_1": -784.2203369140625,
124
+ "all_logps_1_values": -784.2203369140625,
125
+ "all_logps_2": 412.63751220703125,
126
+ "all_logps_2_values": 412.63751220703125,
127
+ "epoch": 0.8,
128
+ "grad_norm": 26.344861955814572,
129
+ "learning_rate": 1.1697777844051104e-07,
130
+ "logits/chosen": -1.4296875,
131
+ "logits/rejected": -1.375,
132
+ "logps/chosen": -2.375,
133
+ "logps/rejected": -2.4375,
134
+ "loss": 1.7904,
135
+ "original_losses": 1.7890625,
136
+ "rewards/accuracies": 0.44999998807907104,
137
+ "rewards/chosen": -5.9375,
138
+ "rewards/margins": 0.1787109375,
139
+ "rewards/rejected": -6.09375,
140
+ "step": 25,
141
+ "weight": 1.0
142
+ },
143
+ {
144
+ "abs_diff": 0.455078125,
145
+ "all_logps_1": -790.1726684570312,
146
+ "all_logps_1_values": -790.1726684570312,
147
+ "all_logps_2": 412.5531311035156,
148
+ "all_logps_2_values": 412.5531311035156,
149
+ "epoch": 0.96,
150
+ "grad_norm": 10.248900083694645,
151
+ "learning_rate": 3.380821129028488e-09,
152
+ "logits/chosen": -1.390625,
153
+ "logits/rejected": -1.4375,
154
+ "logps/chosen": -2.484375,
155
+ "logps/rejected": -2.421875,
156
+ "loss": 1.9701,
157
+ "original_losses": 1.96875,
158
+ "rewards/accuracies": 0.4312500059604645,
159
+ "rewards/chosen": -6.21875,
160
+ "rewards/margins": -0.1416015625,
161
+ "rewards/rejected": -6.0625,
162
+ "step": 30,
163
+ "weight": 1.0
164
+ },
165
+ {
166
+ "epoch": 0.992,
167
+ "step": 31,
168
+ "total_flos": 0.0,
169
+ "train_loss": 1.8891444052419355,
170
+ "train_runtime": 316.7887,
171
+ "train_samples_per_second": 3.157,
172
+ "train_steps_per_second": 0.098
173
+ }
174
+ ],
175
+ "logging_steps": 5,
176
+ "max_steps": 31,
177
+ "num_input_tokens_seen": 0,
178
+ "num_train_epochs": 1,
179
+ "save_steps": 1000000,
180
+ "stateful_callbacks": {
181
+ "TrainerControl": {
182
+ "args": {
183
+ "should_epoch_stop": false,
184
+ "should_evaluate": false,
185
+ "should_log": false,
186
+ "should_save": false,
187
+ "should_training_stop": false
188
+ },
189
+ "attributes": {}
190
+ }
191
+ },
192
+ "total_flos": 0.0,
193
+ "train_batch_size": 4,
194
+ "trial_name": null,
195
+ "trial_params": null
196
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7743d859e712858a01fbb0d243ffac5211f2978a8d782b152385b0c6e91b3afb
3
+ size 6776
vocab.json ADDED
The diff for this file is too large to render. See raw diff