Robot2050 commited on
Commit
92fdb6e
·
verified ·
1 Parent(s): 5b0eb99

Upload 14 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.9952,
3
+ "total_flos": 64311364943872.0,
4
+ "train_loss": 0.2557532644679404,
5
+ "train_runtime": 6755.8147,
6
+ "train_samples_per_second": 8.881,
7
+ "train_steps_per_second": 0.069
8
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/d1/zhaojihao/models/Qwen2.5-1.5B-Instruct",
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1536,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 8960,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 21,
15
+ "model_type": "qwen2",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 28,
18
+ "num_key_value_heads": 2,
19
+ "rms_norm_eps": 1e-06,
20
+ "rope_scaling": null,
21
+ "rope_theta": 1000000.0,
22
+ "sliding_window": null,
23
+ "tie_word_embeddings": true,
24
+ "torch_dtype": "float16",
25
+ "transformers_version": "4.46.3",
26
+ "use_cache": true,
27
+ "use_sliding_window": false,
28
+ "vocab_size": 151936
29
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.1,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.46.3"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
tokenizer_config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ }
181
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
195
+ "<|video_pad|>"
196
+ ],
197
+ "bos_token": null,
198
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
199
+ "clean_up_tokenization_spaces": false,
200
+ "eos_token": "<|im_end|>",
201
+ "errors": "replace",
202
+ "model_max_length": 131072,
203
+ "pad_token": "<|endoftext|>",
204
+ "split_special_tokens": false,
205
+ "tokenizer_class": "Qwen2Tokenizer",
206
+ "unk_token": null
207
+ }
train.log ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2024-12-26 19:18:51.609 | INFO | __main__:setup_everything:71 - train_args:TrainingArguments(
2
+ _n_gpu=1,
3
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None, 'use_configured_state': False},
4
+ adafactor=False,
5
+ adam_beta1=0.9,
6
+ adam_beta2=0.999,
7
+ adam_epsilon=1e-08,
8
+ auto_find_batch_size=False,
9
+ average_tokens_across_devices=False,
10
+ batch_eval_metrics=False,
11
+ bf16=False,
12
+ bf16_full_eval=False,
13
+ data_seed=None,
14
+ dataloader_drop_last=False,
15
+ dataloader_num_workers=0,
16
+ dataloader_persistent_workers=False,
17
+ dataloader_pin_memory=True,
18
+ dataloader_prefetch_factor=None,
19
+ ddp_backend=None,
20
+ ddp_broadcast_buffers=None,
21
+ ddp_bucket_cap_mb=None,
22
+ ddp_find_unused_parameters=None,
23
+ ddp_timeout=1800,
24
+ debug=[],
25
+ deepspeed=./train_args/ds_z3_config.json,
26
+ disable_tqdm=False,
27
+ dispatch_batches=None,
28
+ do_eval=False,
29
+ do_predict=False,
30
+ do_train=False,
31
+ eval_accumulation_steps=None,
32
+ eval_delay=0,
33
+ eval_do_concat_batches=True,
34
+ eval_on_start=False,
35
+ eval_steps=None,
36
+ eval_strategy=no,
37
+ eval_use_gather_object=False,
38
+ evaluation_strategy=None,
39
+ fp16=True,
40
+ fp16_backend=auto,
41
+ fp16_full_eval=False,
42
+ fp16_opt_level=O1,
43
+ fsdp=[],
44
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
45
+ fsdp_min_num_params=0,
46
+ fsdp_transformer_layer_cls_to_wrap=None,
47
+ full_determinism=False,
48
+ gradient_accumulation_steps=16,
49
+ gradient_checkpointing=False,
50
+ gradient_checkpointing_kwargs=None,
51
+ greater_is_better=None,
52
+ group_by_length=False,
53
+ half_precision_backend=auto,
54
+ hub_always_push=False,
55
+ hub_model_id=None,
56
+ hub_private_repo=False,
57
+ hub_strategy=every_save,
58
+ hub_token=<HUB_TOKEN>,
59
+ ignore_data_skip=False,
60
+ include_for_metrics=[],
61
+ include_inputs_for_metrics=False,
62
+ include_num_input_tokens_seen=False,
63
+ include_tokens_per_second=False,
64
+ jit_mode_eval=False,
65
+ label_names=None,
66
+ label_smoothing_factor=0.0,
67
+ learning_rate=1e-05,
68
+ length_column_name=length,
69
+ load_best_model_at_end=False,
70
+ local_rank=0,
71
+ log_level=passive,
72
+ log_level_replica=warning,
73
+ log_on_each_node=True,
74
+ logging_dir=output/firefly-qwen25-15b-sft-full-all-M-3/runs/Dec26_19-18-51_h800-2,
75
+ logging_first_step=False,
76
+ logging_nan_inf_filter=True,
77
+ logging_steps=200,
78
+ logging_strategy=steps,
79
+ lr_scheduler_kwargs={},
80
+ lr_scheduler_type=cosine,
81
+ max_grad_norm=1.0,
82
+ max_steps=-1,
83
+ metric_for_best_model=None,
84
+ mp_parameters=,
85
+ neftune_noise_alpha=None,
86
+ no_cuda=False,
87
+ num_train_epochs=3,
88
+ optim=adamw_hf,
89
+ optim_args=None,
90
+ optim_target_modules=None,
91
+ output_dir=output/firefly-qwen25-15b-sft-full-all-M-3,
92
+ overwrite_output_dir=False,
93
+ past_index=-1,
94
+ per_device_eval_batch_size=8,
95
+ per_device_train_batch_size=4,
96
+ prediction_loss_only=False,
97
+ push_to_hub=False,
98
+ push_to_hub_model_id=None,
99
+ push_to_hub_organization=None,
100
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
101
+ ray_scope=last,
102
+ remove_unused_columns=False,
103
+ report_to=['tensorboard'],
104
+ restore_callback_states_from_checkpoint=False,
105
+ resume_from_checkpoint=None,
106
+ run_name=output/firefly-qwen25-15b-sft-full-all-M-3,
107
+ save_on_each_node=False,
108
+ save_only_model=False,
109
+ save_safetensors=True,
110
+ save_steps=200,
111
+ save_strategy=steps,
112
+ save_total_limit=1,
113
+ seed=42,
114
+ skip_memory_metrics=True,
115
+ split_batches=None,
116
+ tf32=None,
117
+ torch_compile=False,
118
+ torch_compile_backend=None,
119
+ torch_compile_mode=None,
120
+ torch_empty_cache_steps=None,
121
+ torchdynamo=None,
122
+ tpu_metrics_debug=False,
123
+ tpu_num_cores=None,
124
+ use_cpu=False,
125
+ use_ipex=False,
126
+ use_legacy_prediction_loop=False,
127
+ use_liger_kernel=False,
128
+ use_mps_device=False,
129
+ warmup_ratio=0.0,
130
+ warmup_steps=50,
131
+ weight_decay=0,
132
+ )
133
+ 2024-12-26 19:18:51.612 | INFO | __main__:init_components:383 - Initializing components...
134
+ 2024-12-26 19:18:51.784 | INFO | __main__:setup_everything:71 - train_args:TrainingArguments(
135
+ _n_gpu=1,
136
+ accelerator_config={'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None, 'use_configured_state': False},
137
+ adafactor=False,
138
+ adam_beta1=0.9,
139
+ adam_beta2=0.999,
140
+ adam_epsilon=1e-08,
141
+ auto_find_batch_size=False,
142
+ average_tokens_across_devices=False,
143
+ batch_eval_metrics=False,
144
+ bf16=False,
145
+ bf16_full_eval=False,
146
+ data_seed=None,
147
+ dataloader_drop_last=False,
148
+ dataloader_num_workers=0,
149
+ dataloader_persistent_workers=False,
150
+ dataloader_pin_memory=True,
151
+ dataloader_prefetch_factor=None,
152
+ ddp_backend=None,
153
+ ddp_broadcast_buffers=None,
154
+ ddp_bucket_cap_mb=None,
155
+ ddp_find_unused_parameters=None,
156
+ ddp_timeout=1800,
157
+ debug=[],
158
+ deepspeed=./train_args/ds_z3_config.json,
159
+ disable_tqdm=False,
160
+ dispatch_batches=None,
161
+ do_eval=False,
162
+ do_predict=False,
163
+ do_train=False,
164
+ eval_accumulation_steps=None,
165
+ eval_delay=0,
166
+ eval_do_concat_batches=True,
167
+ eval_on_start=False,
168
+ eval_steps=None,
169
+ eval_strategy=no,
170
+ eval_use_gather_object=False,
171
+ evaluation_strategy=None,
172
+ fp16=True,
173
+ fp16_backend=auto,
174
+ fp16_full_eval=False,
175
+ fp16_opt_level=O1,
176
+ fsdp=[],
177
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
178
+ fsdp_min_num_params=0,
179
+ fsdp_transformer_layer_cls_to_wrap=None,
180
+ full_determinism=False,
181
+ gradient_accumulation_steps=16,
182
+ gradient_checkpointing=False,
183
+ gradient_checkpointing_kwargs=None,
184
+ greater_is_better=None,
185
+ group_by_length=False,
186
+ half_precision_backend=auto,
187
+ hub_always_push=False,
188
+ hub_model_id=None,
189
+ hub_private_repo=False,
190
+ hub_strategy=every_save,
191
+ hub_token=<HUB_TOKEN>,
192
+ ignore_data_skip=False,
193
+ include_for_metrics=[],
194
+ include_inputs_for_metrics=False,
195
+ include_num_input_tokens_seen=False,
196
+ include_tokens_per_second=False,
197
+ jit_mode_eval=False,
198
+ label_names=None,
199
+ label_smoothing_factor=0.0,
200
+ learning_rate=1e-05,
201
+ length_column_name=length,
202
+ load_best_model_at_end=False,
203
+ local_rank=1,
204
+ log_level=passive,
205
+ log_level_replica=warning,
206
+ log_on_each_node=True,
207
+ logging_dir=output/firefly-qwen25-15b-sft-full-all-M-3/runs/Dec26_19-18-51_h800-2,
208
+ logging_first_step=False,
209
+ logging_nan_inf_filter=True,
210
+ logging_steps=200,
211
+ logging_strategy=steps,
212
+ lr_scheduler_kwargs={},
213
+ lr_scheduler_type=cosine,
214
+ max_grad_norm=1.0,
215
+ max_steps=-1,
216
+ metric_for_best_model=None,
217
+ mp_parameters=,
218
+ neftune_noise_alpha=None,
219
+ no_cuda=False,
220
+ num_train_epochs=3,
221
+ optim=adamw_hf,
222
+ optim_args=None,
223
+ optim_target_modules=None,
224
+ output_dir=output/firefly-qwen25-15b-sft-full-all-M-3,
225
+ overwrite_output_dir=False,
226
+ past_index=-1,
227
+ per_device_eval_batch_size=8,
228
+ per_device_train_batch_size=4,
229
+ prediction_loss_only=False,
230
+ push_to_hub=False,
231
+ push_to_hub_model_id=None,
232
+ push_to_hub_organization=None,
233
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
234
+ ray_scope=last,
235
+ remove_unused_columns=False,
236
+ report_to=['tensorboard'],
237
+ restore_callback_states_from_checkpoint=False,
238
+ resume_from_checkpoint=None,
239
+ run_name=output/firefly-qwen25-15b-sft-full-all-M-3,
240
+ save_on_each_node=False,
241
+ save_only_model=False,
242
+ save_safetensors=True,
243
+ save_steps=200,
244
+ save_strategy=steps,
245
+ save_total_limit=1,
246
+ seed=42,
247
+ skip_memory_metrics=True,
248
+ split_batches=None,
249
+ tf32=None,
250
+ torch_compile=False,
251
+ torch_compile_backend=None,
252
+ torch_compile_mode=None,
253
+ torch_empty_cache_steps=None,
254
+ torchdynamo=None,
255
+ tpu_metrics_debug=False,
256
+ tpu_num_cores=None,
257
+ use_cpu=False,
258
+ use_ipex=False,
259
+ use_legacy_prediction_loop=False,
260
+ use_liger_kernel=False,
261
+ use_mps_device=False,
262
+ warmup_ratio=0.0,
263
+ warmup_steps=50,
264
+ weight_decay=0,
265
+ )
266
+ 2024-12-26 19:18:51.787 | INFO | __main__:init_components:383 - Initializing components...
267
+ 2024-12-26 19:18:51.917 | INFO | __main__:load_tokenizer:231 - vocab_size of tokenizer: 151643
268
+ 2024-12-26 19:18:51.917 | INFO | __main__:load_model:270 - Loading model from base model: /d1/zhaojihao/models/Qwen2.5-1.5B-Instruct
269
+ 2024-12-26 19:18:51.917 | INFO | __main__:load_model:271 - Train model with full
270
+ 2024-12-26 19:18:52.125 | INFO | __main__:load_tokenizer:231 - vocab_size of tokenizer: 151643
271
+ 2024-12-26 19:18:52.126 | INFO | __main__:load_model:270 - Loading model from base model: /d1/zhaojihao/models/Qwen2.5-1.5B-Instruct
272
+ 2024-12-26 19:18:52.126 | INFO | __main__:load_model:271 - Train model with full
273
+ 2024-12-26 19:18:56.469 | INFO | __main__:load_model:345 - Total model params: 0.00M
274
+ 2024-12-26 19:18:56.470 | INFO | __main__:init_components:402 - Train model with sft task
275
+ 2024-12-26 19:18:56.470 | INFO | __main__:load_sft_dataset:365 - Loading data with UnifiedSFTDataset
276
+ 2024-12-26 19:18:56.470 | INFO | component.dataset:__init__:19 - Loading data: /d1/zhaojihao/chunk2/train_GPT/conversations_20000_MASK.jsonl
277
+ 2024-12-26 19:18:56.557 | INFO | __main__:load_model:345 - Total model params: 0.00M
278
+ 2024-12-26 19:18:56.557 | INFO | __main__:init_components:402 - Train model with sft task
279
+ 2024-12-26 19:18:56.557 | INFO | __main__:load_sft_dataset:365 - Loading data with UnifiedSFTDataset
280
+ 2024-12-26 19:18:56.557 | INFO | component.dataset:__init__:19 - Loading data: /d1/zhaojihao/chunk2/train_GPT/conversations_20000_MASK.jsonl
281
+ 2024-12-26 19:18:56.672 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
282
+ 2024-12-26 19:18:56.673 | INFO | component.dataset:__init__:23 - There are 20000 data in dataset
283
+ 2024-12-26 19:18:56.729 | INFO | __main__:main:440 - *** starting training ***
284
+ 2024-12-26 19:18:56.766 | INFO | component.dataset:__init__:22 - Use template "qwen" for training
285
+ 2024-12-26 19:18:56.766 | INFO | component.dataset:__init__:23 - There are 20000 data in dataset
286
+ 2024-12-26 19:18:56.819 | INFO | __main__:main:440 - *** starting training ***
train_args.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_dir": "output",
3
+ "model_name_or_path": "models/Qwen2.5-1.5B-Instruct",
4
+ "deepspeed": "./train_args/ds_z3_config.json",
5
+ "train_file": "train_GPT/conversations_20000_MASK.jsonl",
6
+ "template_name": "qwen",
7
+ "train_mode": "full",
8
+ "num_train_epochs": 3,
9
+ "per_device_train_batch_size": 4,
10
+ "gradient_accumulation_steps": 16,
11
+ "learning_rate": 1e-05,
12
+ "max_seq_length": 4096,
13
+ "logging_steps": 200,
14
+ "save_steps": 200,
15
+ "save_total_limit": 1,
16
+ "lr_scheduler_type": "cosine",
17
+ "warmup_steps": 50,
18
+ "gradient_checkpointing": false,
19
+ "disable_tqdm": false,
20
+ "optim": "adamw_hf",
21
+ "seed": 42,
22
+ "fp16": true,
23
+ "report_to": "tensorboard",
24
+ "dataloader_num_workers": 0,
25
+ "save_strategy": "steps",
26
+ "weight_decay": 0,
27
+ "max_grad_norm": 1.0,
28
+ "remove_unused_columns": false
29
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.9952,
3
+ "total_flos": 64311364943872.0,
4
+ "train_loss": 0.2557532644679404,
5
+ "train_runtime": 6755.8147,
6
+ "train_samples_per_second": 8.881,
7
+ "train_steps_per_second": 0.069
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.9952,
5
+ "eval_steps": 500,
6
+ "global_step": 468,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.28,
13
+ "grad_norm": 0.09104396402835846,
14
+ "learning_rate": 1e-05,
15
+ "loss": 0.3624,
16
+ "step": 200
17
+ },
18
+ {
19
+ "epoch": 2.56,
20
+ "grad_norm": 0.1047985777258873,
21
+ "learning_rate": 1e-05,
22
+ "loss": 0.1875,
23
+ "step": 400
24
+ },
25
+ {
26
+ "epoch": 2.9952,
27
+ "step": 468,
28
+ "total_flos": 64311364943872.0,
29
+ "train_loss": 0.2557532644679404,
30
+ "train_runtime": 6755.8147,
31
+ "train_samples_per_second": 8.881,
32
+ "train_steps_per_second": 0.069
33
+ }
34
+ ],
35
+ "logging_steps": 200,
36
+ "max_steps": 468,
37
+ "num_input_tokens_seen": 0,
38
+ "num_train_epochs": 3,
39
+ "save_steps": 200,
40
+ "stateful_callbacks": {
41
+ "TrainerControl": {
42
+ "args": {
43
+ "should_epoch_stop": false,
44
+ "should_evaluate": false,
45
+ "should_log": false,
46
+ "should_save": true,
47
+ "should_training_stop": true
48
+ },
49
+ "attributes": {}
50
+ }
51
+ },
52
+ "total_flos": 64311364943872.0,
53
+ "train_batch_size": 4,
54
+ "trial_name": null,
55
+ "trial_params": null
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:446b2bdb990ddab0bd058086434dc4c0d9b2abb402a58d4d4ac844966bd12878
3
+ size 7736
vocab.json ADDED
The diff for this file is too large to render. See raw diff