minghaowu commited on
Commit
5238130
1 Parent(s): 65ebede

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: Qwen/Qwen1.5-1.8B
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - minghaowu/kill_that_reviewer
8
+ model-index:
9
+ - name: Qwen1.5-1.8B-ktr
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
+ # Qwen1.5-1.8B-ktr
17
+
18
+ This model is a fine-tuned version of [Qwen/Qwen1.5-1.8B](https://huggingface.co/Qwen/Qwen1.5-1.8B) on the minghaowu/kill_that_reviewer 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-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 2
43
+ - gradient_accumulation_steps: 4
44
+ - total_train_batch_size: 32
45
+ - total_eval_batch_size: 16
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 5.0
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.39.2
58
+ - Pytorch 2.2.2+cu121
59
+ - Datasets 2.18.0
60
+ - Tokenizers 0.15.2
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.96,
3
+ "train_loss": 0.41267242623913675,
4
+ "train_runtime": 2160.1701,
5
+ "train_samples": 2000,
6
+ "train_samples_per_second": 4.629,
7
+ "train_steps_per_second": 0.144
8
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Qwen/Qwen1.5-1.8B",
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151643,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 2048,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 5504,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 21,
15
+ "model_type": "qwen2",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 24,
18
+ "num_key_value_heads": 16,
19
+ "rms_norm_eps": 1e-06,
20
+ "rope_theta": 1000000.0,
21
+ "sliding_window": 32768,
22
+ "tie_word_embeddings": false,
23
+ "torch_dtype": "bfloat16",
24
+ "transformers_version": "4.39.2",
25
+ "use_cache": true,
26
+ "use_sliding_window": false,
27
+ "vocab_size": 151936
28
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.39.2"
6
+ }
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:ad0f92a195e578d6f0f388b5682f1fe2b42f333e78c75a09c383d3479bdcc0a9
3
+ size 3673690696
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|endoftext|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<|im_start|>",
31
+ "<|im_end|>"
32
+ ],
33
+ "bos_token": null,
34
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
35
+ "clean_up_tokenization_spaces": false,
36
+ "eos_token": "<|endoftext|>",
37
+ "errors": "replace",
38
+ "model_max_length": 32768,
39
+ "pad_token": "<|endoftext|>",
40
+ "split_special_tokens": false,
41
+ "tokenizer_class": "Qwen2Tokenizer",
42
+ "unk_token": null
43
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.96,
3
+ "train_loss": 0.41267242623913675,
4
+ "train_runtime": 2160.1701,
5
+ "train_samples": 2000,
6
+ "train_samples_per_second": 4.629,
7
+ "train_steps_per_second": 0.144
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 4.96,
5
+ "eval_steps": 500,
6
+ "global_step": 310,
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.16,
13
+ "grad_norm": 17.163537984134056,
14
+ "learning_rate": 1.6129032258064517e-05,
15
+ "loss": 3.247,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.32,
20
+ "grad_norm": 5.018646756033027,
21
+ "learning_rate": 3.2258064516129034e-05,
22
+ "loss": 0.9917,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.48,
27
+ "grad_norm": 3.102932183151889,
28
+ "learning_rate": 4.8387096774193554e-05,
29
+ "loss": 0.5627,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.64,
34
+ "grad_norm": 3.1713603687439784,
35
+ "learning_rate": 4.8387096774193554e-05,
36
+ "loss": 0.5618,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.8,
41
+ "grad_norm": 2.4859823149760207,
42
+ "learning_rate": 4.659498207885305e-05,
43
+ "loss": 0.5205,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.96,
48
+ "grad_norm": 2.272313000462373,
49
+ "learning_rate": 4.4802867383512545e-05,
50
+ "loss": 0.5124,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 1.12,
55
+ "grad_norm": 2.5273618623771386,
56
+ "learning_rate": 4.301075268817205e-05,
57
+ "loss": 0.4395,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 1.28,
62
+ "grad_norm": 1.90386763992575,
63
+ "learning_rate": 4.121863799283154e-05,
64
+ "loss": 0.4075,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 1.44,
69
+ "grad_norm": 2.1818059655411046,
70
+ "learning_rate": 3.9426523297491045e-05,
71
+ "loss": 0.4218,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 1.6,
76
+ "grad_norm": 1.8586027320750607,
77
+ "learning_rate": 3.763440860215054e-05,
78
+ "loss": 0.4045,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 1.76,
83
+ "grad_norm": 2.367612894945561,
84
+ "learning_rate": 3.5842293906810036e-05,
85
+ "loss": 0.4047,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 1.92,
90
+ "grad_norm": 1.7552435519555452,
91
+ "learning_rate": 3.405017921146954e-05,
92
+ "loss": 0.4006,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 2.08,
97
+ "grad_norm": 1.6187500706970905,
98
+ "learning_rate": 3.2258064516129034e-05,
99
+ "loss": 0.3502,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 2.24,
104
+ "grad_norm": 1.621006239401913,
105
+ "learning_rate": 3.046594982078853e-05,
106
+ "loss": 0.2912,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 2.4,
111
+ "grad_norm": 1.8302472177918652,
112
+ "learning_rate": 2.8673835125448028e-05,
113
+ "loss": 0.2914,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 2.56,
118
+ "grad_norm": 2.137720741340305,
119
+ "learning_rate": 2.6881720430107527e-05,
120
+ "loss": 0.2976,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 2.72,
125
+ "grad_norm": 1.6840762975810266,
126
+ "learning_rate": 2.5089605734767026e-05,
127
+ "loss": 0.306,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 2.88,
132
+ "grad_norm": 1.623859665642121,
133
+ "learning_rate": 2.3297491039426525e-05,
134
+ "loss": 0.3036,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 3.04,
139
+ "grad_norm": 1.4462761218350422,
140
+ "learning_rate": 2.1505376344086024e-05,
141
+ "loss": 0.2824,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 3.2,
146
+ "grad_norm": 1.5715993286842083,
147
+ "learning_rate": 1.9713261648745522e-05,
148
+ "loss": 0.1915,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 3.36,
153
+ "grad_norm": 1.40640376627855,
154
+ "learning_rate": 1.7921146953405018e-05,
155
+ "loss": 0.197,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 3.52,
160
+ "grad_norm": 1.5607010212609245,
161
+ "learning_rate": 1.6129032258064517e-05,
162
+ "loss": 0.1906,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 3.68,
167
+ "grad_norm": 1.4815811366542657,
168
+ "learning_rate": 1.4336917562724014e-05,
169
+ "loss": 0.1974,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 3.84,
174
+ "grad_norm": 1.5236794304094388,
175
+ "learning_rate": 1.2544802867383513e-05,
176
+ "loss": 0.1973,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 4.0,
181
+ "grad_norm": 1.3798039353727727,
182
+ "learning_rate": 1.0752688172043012e-05,
183
+ "loss": 0.1867,
184
+ "step": 250
185
+ },
186
+ {
187
+ "epoch": 4.16,
188
+ "grad_norm": 1.3649861078638328,
189
+ "learning_rate": 8.960573476702509e-06,
190
+ "loss": 0.11,
191
+ "step": 260
192
+ },
193
+ {
194
+ "epoch": 4.32,
195
+ "grad_norm": 1.254492221709335,
196
+ "learning_rate": 7.168458781362007e-06,
197
+ "loss": 0.1094,
198
+ "step": 270
199
+ },
200
+ {
201
+ "epoch": 4.48,
202
+ "grad_norm": 1.189476576700767,
203
+ "learning_rate": 5.376344086021506e-06,
204
+ "loss": 0.1111,
205
+ "step": 280
206
+ },
207
+ {
208
+ "epoch": 4.64,
209
+ "grad_norm": 1.1598377753968125,
210
+ "learning_rate": 3.5842293906810035e-06,
211
+ "loss": 0.1026,
212
+ "step": 290
213
+ },
214
+ {
215
+ "epoch": 4.8,
216
+ "grad_norm": 1.0113867726860153,
217
+ "learning_rate": 1.7921146953405017e-06,
218
+ "loss": 0.1001,
219
+ "step": 300
220
+ },
221
+ {
222
+ "epoch": 4.96,
223
+ "grad_norm": 0.9129278851969916,
224
+ "learning_rate": 0.0,
225
+ "loss": 0.102,
226
+ "step": 310
227
+ },
228
+ {
229
+ "epoch": 4.96,
230
+ "step": 310,
231
+ "total_flos": 2.2549700766859264e+16,
232
+ "train_loss": 0.41267242623913675,
233
+ "train_runtime": 2160.1701,
234
+ "train_samples_per_second": 4.629,
235
+ "train_steps_per_second": 0.144
236
+ }
237
+ ],
238
+ "logging_steps": 10,
239
+ "max_steps": 310,
240
+ "num_input_tokens_seen": 0,
241
+ "num_train_epochs": 5,
242
+ "save_steps": 500,
243
+ "total_flos": 2.2549700766859264e+16,
244
+ "train_batch_size": 4,
245
+ "trial_name": null,
246
+ "trial_params": null
247
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51986c81930ab15434e32815906cef061c2bccc977d0c8fa9c61de4f5178f52a
3
+ size 6200
vocab.json ADDED
The diff for this file is too large to render. See raw diff