XeTute commited on
Commit
21af751
·
1 Parent(s): 52cb491

Upload 19 files

Browse files
.gitattributes CHANGED
@@ -56,3 +56,4 @@ checkpoint-12400/tokenizer.json filter=lfs diff=lfs merge=lfs -text
56
  checkpoint-12600/tokenizer.json filter=lfs diff=lfs merge=lfs -text
57
  checkpoint-12800/tokenizer.json filter=lfs diff=lfs merge=lfs -text
58
  checkpoint-13000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
56
  checkpoint-12600/tokenizer.json filter=lfs diff=lfs merge=lfs -text
57
  checkpoint-12800/tokenizer.json filter=lfs diff=lfs merge=lfs -text
58
  checkpoint-13000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
59
+ 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,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9106271944801982,
3
+ "num_input_tokens_seen": 209169736,
4
+ "total_flos": 4.491687216116306e+17,
5
+ "train_loss": 0.0,
6
+ "train_runtime": 0.037,
7
+ "train_samples_per_second": 2778031.466,
8
+ "train_steps_per_second": 347243.798
9
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Qwen/Qwen2.5-0.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": 896,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 4864,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 21,
15
+ "model_type": "qwen2",
16
+ "num_attention_heads": 14,
17
+ "num_hidden_layers": 24,
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": "float32",
25
+ "transformers_version": "4.48.3",
26
+ "use_cache": false,
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.48.3"
14
+ }
llamaboard_config.yaml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ top.booster: auto
2
+ top.checkpoint_path: null
3
+ top.finetuning_type: full
4
+ top.model_name: Qwen2.5-0.5B-Instruct
5
+ top.quantization_bit: none
6
+ top.quantization_method: hqq
7
+ top.rope_scaling: none
8
+ top.template: qwen
9
+ train.additional_target: ''
10
+ train.apollo_rank: 16
11
+ train.apollo_scale: 32
12
+ train.apollo_target: all
13
+ train.apollo_update_interval: 200
14
+ train.badam_mode: layer
15
+ train.badam_switch_interval: 50
16
+ train.badam_switch_mode: ascending
17
+ train.badam_update_ratio: 0.05
18
+ train.batch_size: 1
19
+ train.compute_type: bf16
20
+ train.create_new_adapter: false
21
+ train.cutoff_len: 2048
22
+ train.dataset:
23
+ - prithivMLmods/Deepthink-Reasoning-Ins
24
+ - open-thoughts/OpenThoughts-114k
25
+ train.dataset_dir: data
26
+ train.ds_offload: false
27
+ train.ds_stage: none
28
+ train.extra_args: '{"optim": "sgd"}'
29
+ train.freeze_extra_modules: ''
30
+ train.freeze_trainable_layers: 2
31
+ train.freeze_trainable_modules: all
32
+ train.galore_rank: 16
33
+ train.galore_scale: 2
34
+ train.galore_target: all
35
+ train.galore_update_interval: 200
36
+ train.gradient_accumulation_steps: 8
37
+ train.learning_rate: 1e-4
38
+ train.logging_steps: 1
39
+ train.lora_alpha: 16
40
+ train.lora_dropout: 0
41
+ train.lora_rank: 8
42
+ train.lora_target: ''
43
+ train.loraplus_lr_ratio: 0
44
+ train.lr_scheduler_type: polynomial
45
+ train.mask_history: false
46
+ train.max_grad_norm: '1.0'
47
+ train.max_samples: '57000000'
48
+ train.neat_packing: false
49
+ train.neftune_alpha: 0
50
+ train.num_train_epochs: '1.0'
51
+ train.packing: false
52
+ train.ppo_score_norm: false
53
+ train.ppo_whiten_rewards: false
54
+ train.pref_beta: 0.1
55
+ train.pref_ftx: 0
56
+ train.pref_loss: sigmoid
57
+ train.report_to:
58
+ - none
59
+ train.resize_vocab: false
60
+ train.reward_model: null
61
+ train.save_steps: 200
62
+ train.swanlab_api_key: ''
63
+ train.swanlab_mode: cloud
64
+ train.swanlab_project: llamafactory
65
+ train.swanlab_run_name: ''
66
+ train.swanlab_workspace: ''
67
+ train.train_on_prompt: false
68
+ train.training_stage: Supervised Fine-Tuning
69
+ train.use_apollo: false
70
+ train.use_badam: false
71
+ train.use_dora: false
72
+ train.use_galore: false
73
+ train.use_llama_pro: false
74
+ train.use_pissa: false
75
+ train.use_rslora: false
76
+ train.use_swanlab: false
77
+ train.val_size: 1
78
+ train.warmup_steps: 0
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:f9a003460ee2d09a514ffd981bec68fa668c4aa67f533a96b0612e203edee59c
3
+ size 1976163472
running_log.txt ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [INFO|2025-02-22 11:20:55] configuration_utils.py:696 >> loading configuration file config.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\config.json
2
+
3
+ [INFO|2025-02-22 11:20:55] configuration_utils.py:768 >> Model config Qwen2Config {
4
+ "_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct",
5
+ "architectures": [
6
+ "Qwen2ForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 151643,
10
+ "eos_token_id": 151645,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 896,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4864,
15
+ "max_position_embeddings": 32768,
16
+ "max_window_layers": 21,
17
+ "model_type": "qwen2",
18
+ "num_attention_heads": 14,
19
+ "num_hidden_layers": 24,
20
+ "num_key_value_heads": 2,
21
+ "rms_norm_eps": 1e-06,
22
+ "rope_scaling": null,
23
+ "rope_theta": 1000000.0,
24
+ "sliding_window": null,
25
+ "tie_word_embeddings": true,
26
+ "torch_dtype": "bfloat16",
27
+ "transformers_version": "4.48.3",
28
+ "use_cache": true,
29
+ "use_sliding_window": false,
30
+ "vocab_size": 151936
31
+ }
32
+
33
+
34
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file vocab.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\vocab.json
35
+
36
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file merges.txt from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\merges.txt
37
+
38
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file tokenizer.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\tokenizer.json
39
+
40
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file added_tokens.json from cache at None
41
+
42
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file special_tokens_map.json from cache at None
43
+
44
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file tokenizer_config.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\tokenizer_config.json
45
+
46
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2034 >> loading file chat_template.jinja from cache at None
47
+
48
+ [INFO|2025-02-22 11:20:55] tokenization_utils_base.py:2304 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
49
+
50
+ [INFO|2025-02-22 11:20:56] configuration_utils.py:696 >> loading configuration file config.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\config.json
51
+
52
+ [INFO|2025-02-22 11:20:56] configuration_utils.py:768 >> Model config Qwen2Config {
53
+ "_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct",
54
+ "architectures": [
55
+ "Qwen2ForCausalLM"
56
+ ],
57
+ "attention_dropout": 0.0,
58
+ "bos_token_id": 151643,
59
+ "eos_token_id": 151645,
60
+ "hidden_act": "silu",
61
+ "hidden_size": 896,
62
+ "initializer_range": 0.02,
63
+ "intermediate_size": 4864,
64
+ "max_position_embeddings": 32768,
65
+ "max_window_layers": 21,
66
+ "model_type": "qwen2",
67
+ "num_attention_heads": 14,
68
+ "num_hidden_layers": 24,
69
+ "num_key_value_heads": 2,
70
+ "rms_norm_eps": 1e-06,
71
+ "rope_scaling": null,
72
+ "rope_theta": 1000000.0,
73
+ "sliding_window": null,
74
+ "tie_word_embeddings": true,
75
+ "torch_dtype": "bfloat16",
76
+ "transformers_version": "4.48.3",
77
+ "use_cache": true,
78
+ "use_sliding_window": false,
79
+ "vocab_size": 151936
80
+ }
81
+
82
+
83
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file vocab.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\vocab.json
84
+
85
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file merges.txt from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\merges.txt
86
+
87
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file tokenizer.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\tokenizer.json
88
+
89
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file added_tokens.json from cache at None
90
+
91
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file special_tokens_map.json from cache at None
92
+
93
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file tokenizer_config.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\tokenizer_config.json
94
+
95
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2034 >> loading file chat_template.jinja from cache at None
96
+
97
+ [INFO|2025-02-22 11:20:56] tokenization_utils_base.py:2304 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
98
+
99
+ [INFO|2025-02-22 11:20:56] logging.py:157 >> Add <|im_end|> to stop words.
100
+
101
+ [INFO|2025-02-22 11:20:56] logging.py:157 >> Loading dataset prithivMLmods/Deepthink-Reasoning-Ins...
102
+
103
+ [INFO|2025-02-22 11:21:19] logging.py:157 >> Loading dataset open-thoughts/OpenThoughts-114k...
104
+
105
+ [INFO|2025-02-22 11:27:18] configuration_utils.py:696 >> loading configuration file config.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\config.json
106
+
107
+ [INFO|2025-02-22 11:27:18] configuration_utils.py:768 >> Model config Qwen2Config {
108
+ "_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct",
109
+ "architectures": [
110
+ "Qwen2ForCausalLM"
111
+ ],
112
+ "attention_dropout": 0.0,
113
+ "bos_token_id": 151643,
114
+ "eos_token_id": 151645,
115
+ "hidden_act": "silu",
116
+ "hidden_size": 896,
117
+ "initializer_range": 0.02,
118
+ "intermediate_size": 4864,
119
+ "max_position_embeddings": 32768,
120
+ "max_window_layers": 21,
121
+ "model_type": "qwen2",
122
+ "num_attention_heads": 14,
123
+ "num_hidden_layers": 24,
124
+ "num_key_value_heads": 2,
125
+ "rms_norm_eps": 1e-06,
126
+ "rope_scaling": null,
127
+ "rope_theta": 1000000.0,
128
+ "sliding_window": null,
129
+ "tie_word_embeddings": true,
130
+ "torch_dtype": "bfloat16",
131
+ "transformers_version": "4.48.3",
132
+ "use_cache": true,
133
+ "use_sliding_window": false,
134
+ "vocab_size": 151936
135
+ }
136
+
137
+
138
+ [INFO|2025-02-22 11:27:18] modeling_utils.py:3904 >> loading weights file model.safetensors from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\model.safetensors
139
+
140
+ [INFO|2025-02-22 11:27:18] modeling_utils.py:1582 >> Instantiating Qwen2ForCausalLM model under default dtype torch.bfloat16.
141
+
142
+ [INFO|2025-02-22 11:27:18] configuration_utils.py:1140 >> Generate config GenerationConfig {
143
+ "bos_token_id": 151643,
144
+ "eos_token_id": 151645
145
+ }
146
+
147
+
148
+ [INFO|2025-02-22 11:27:21] modeling_utils.py:4888 >> All model checkpoint weights were used when initializing Qwen2ForCausalLM.
149
+
150
+
151
+ [INFO|2025-02-22 11:27:21] modeling_utils.py:4896 >> All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at Qwen/Qwen2.5-0.5B-Instruct.
152
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
153
+
154
+ [INFO|2025-02-22 11:27:22] configuration_utils.py:1095 >> loading configuration file generation_config.json from cache at C:\Users\Asad_\.cache\huggingface\hub\models--Qwen--Qwen2.5-0.5B-Instruct\snapshots\7ae557604adf67be50417f59c2c2f167def9a775\generation_config.json
155
+
156
+ [INFO|2025-02-22 11:27:22] configuration_utils.py:1140 >> Generate config GenerationConfig {
157
+ "bos_token_id": 151643,
158
+ "do_sample": true,
159
+ "eos_token_id": [
160
+ 151645,
161
+ 151643
162
+ ],
163
+ "pad_token_id": 151643,
164
+ "repetition_penalty": 1.1,
165
+ "temperature": 0.7,
166
+ "top_k": 20,
167
+ "top_p": 0.8
168
+ }
169
+
170
+
171
+ [INFO|2025-02-22 11:27:22] logging.py:157 >> Gradient checkpointing enabled.
172
+
173
+ [INFO|2025-02-22 11:27:22] logging.py:157 >> Using torch SDPA for faster training and inference.
174
+
175
+ [INFO|2025-02-22 11:27:22] logging.py:157 >> Upcasting trainable params to float32.
176
+
177
+ [INFO|2025-02-22 11:27:22] logging.py:157 >> Fine-tuning method: Full
178
+
179
+ [INFO|2025-02-22 11:27:22] logging.py:157 >> trainable params: 494,032,768 || all params: 494,032,768 || trainable%: 100.0000
180
+
181
+ [INFO|2025-02-22 11:27:22] trainer.py:741 >> Using auto half precision backend
182
+
183
+ [INFO|2025-02-22 11:27:22] trainer.py:2775 >> Loading model from saves\Qwen2.5-0.5B-Instruct\full\20-02-2025\checkpoint-13000.
184
+
185
+ [WARNING|2025-02-22 11:27:23] trainer.py:3018 >> There were missing keys in the checkpoint model loaded: ['lm_head.weight'].
186
+
187
+ [INFO|2025-02-22 11:27:23] trainer.py:2369 >> ***** Running training *****
188
+
189
+ [INFO|2025-02-22 11:27:23] trainer.py:2370 >> Num examples = 102,787
190
+
191
+ [INFO|2025-02-22 11:27:23] trainer.py:2371 >> Num Epochs = 1
192
+
193
+ [INFO|2025-02-22 11:27:23] trainer.py:2372 >> Instantaneous batch size per device = 1
194
+
195
+ [INFO|2025-02-22 11:27:23] trainer.py:2375 >> Total train batch size (w. parallel, distributed & accumulation) = 8
196
+
197
+ [INFO|2025-02-22 11:27:23] trainer.py:2376 >> Gradient Accumulation steps = 8
198
+
199
+ [INFO|2025-02-22 11:27:23] trainer.py:2377 >> Total optimization steps = 12,848
200
+
201
+ [INFO|2025-02-22 11:27:23] trainer.py:2378 >> Number of trainable parameters = 494,032,768
202
+
203
+ [INFO|2025-02-22 11:27:23] trainer.py:2400 >> Continuing training from checkpoint, will skip to saved global_step
204
+
205
+ [INFO|2025-02-22 11:27:23] trainer.py:2401 >> Continuing training from epoch 1
206
+
207
+ [INFO|2025-02-22 11:27:23] trainer.py:2402 >> Continuing training from global step 13000
208
+
209
+ [INFO|2025-02-22 11:27:23] trainer.py:2404 >> Will skip the first 1 epochs then the first 1216 batches in the first epoch.
210
+
211
+ [INFO|2025-02-22 11:27:23] trainer.py:2643 >>
212
+
213
+ Training completed. Do not forget to share your model on huggingface.co/models =)
214
+
215
+
216
+
217
+ [INFO|2025-02-22 11:27:23] trainer.py:3910 >> Saving model checkpoint to saves\Qwen2.5-0.5B-Instruct\full\20-02-2025
218
+
219
+ [INFO|2025-02-22 11:27:23] configuration_utils.py:420 >> Configuration saved in saves\Qwen2.5-0.5B-Instruct\full\20-02-2025\config.json
220
+
221
+ [INFO|2025-02-22 11:27:23] configuration_utils.py:909 >> Configuration saved in saves\Qwen2.5-0.5B-Instruct\full\20-02-2025\generation_config.json
222
+
223
+ [INFO|2025-02-22 11:27:25] modeling_utils.py:2988 >> Model weights saved in saves\Qwen2.5-0.5B-Instruct\full\20-02-2025\model.safetensors
224
+
225
+ [INFO|2025-02-22 11:27:25] tokenization_utils_base.py:2491 >> tokenizer config file saved in saves\Qwen2.5-0.5B-Instruct\full\20-02-2025\tokenizer_config.json
226
+
227
+ [INFO|2025-02-22 11:27:25] tokenization_utils_base.py:2500 >> Special tokens file saved in saves\Qwen2.5-0.5B-Instruct\full\20-02-2025\special_tokens_map.json
228
+
229
+ [WARNING|2025-02-22 11:27:26] logging.py:162 >> No metric eval_accuracy to plot.
230
+
231
+ [INFO|2025-02-22 11:27:26] trainer.py:4226 >>
232
+ ***** Running Evaluation *****
233
+
234
+ [INFO|2025-02-22 11:27:26] trainer.py:4228 >> Num examples = 11421
235
+
236
+ [INFO|2025-02-22 11:27:26] trainer.py:4231 >> Batch size = 1
237
+
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_config.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "extra_special_tokens": {},
203
+ "model_max_length": 2048,
204
+ "pad_token": "<|endoftext|>",
205
+ "padding_side": "right",
206
+ "split_special_tokens": false,
207
+ "tokenizer_class": "Qwen2Tokenizer",
208
+ "unk_token": null
209
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9106271944801982,
3
+ "num_input_tokens_seen": 209169736,
4
+ "total_flos": 4.491687216116306e+17,
5
+ "train_loss": 0.0,
6
+ "train_runtime": 0.037,
7
+ "train_samples_per_second": 2778031.466,
8
+ "train_steps_per_second": 347243.798
9
+ }
trainer_log.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bf16: true
2
+ cutoff_len: 2048
3
+ dataset: prithivMLmods/Deepthink-Reasoning-Ins,open-thoughts/OpenThoughts-114k
4
+ dataset_dir: data
5
+ ddp_timeout: 180000000
6
+ do_train: true
7
+ eval_steps: 200
8
+ eval_strategy: steps
9
+ finetuning_type: full
10
+ flash_attn: auto
11
+ gradient_accumulation_steps: 8
12
+ include_num_input_tokens_seen: true
13
+ learning_rate: 0.0001
14
+ logging_steps: 1
15
+ lr_scheduler_type: polynomial
16
+ max_grad_norm: 1.0
17
+ max_samples: 57000000
18
+ model_name_or_path: Qwen/Qwen2.5-0.5B-Instruct
19
+ num_train_epochs: 1.0
20
+ optim: sgd
21
+ output_dir: saves\Qwen2.5-0.5B-Instruct\full\20-02-2025
22
+ packing: false
23
+ per_device_eval_batch_size: 1
24
+ per_device_train_batch_size: 1
25
+ plot_loss: true
26
+ preprocessing_num_workers: 16
27
+ report_to: none
28
+ save_steps: 200
29
+ stage: sft
30
+ template: qwen
31
+ trust_remote_code: true
32
+ val_size: 1
33
+ warmup_steps: 0
training_eval_loss.png ADDED
training_loss.png ADDED
vocab.json ADDED
The diff for this file is too large to render. See raw diff