HectorHe commited on
Commit
eba7faf
·
verified ·
1 Parent(s): 0c6dbe8

Training in progress, epoch 1

Browse files
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DeepseekV2ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "deepseek-ai/DeepSeek-V2-Lite--configuration_deepseek.DeepseekV2Config",
9
+ "AutoModel": "deepseek-ai/DeepSeek-V2-Lite--modeling_deepseek.DeepseekV2Model",
10
+ "AutoModelForCausalLM": "deepseek-ai/DeepSeek-V2-Lite--modeling_deepseek.DeepseekV2ForCausalLM"
11
+ },
12
+ "aux_loss_alpha": 0.001,
13
+ "bos_token_id": 100000,
14
+ "eos_token_id": 100001,
15
+ "ep_size": 1,
16
+ "first_k_dense_replace": 1,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 2048,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 10944,
21
+ "kv_lora_rank": 512,
22
+ "max_position_embeddings": 163840,
23
+ "model_type": "deepseek_v2",
24
+ "moe_intermediate_size": 1408,
25
+ "moe_layer_freq": 1,
26
+ "n_group": 1,
27
+ "n_routed_experts": 64,
28
+ "n_shared_experts": 2,
29
+ "norm_topk_prob": false,
30
+ "num_attention_heads": 16,
31
+ "num_experts_per_tok": 6,
32
+ "num_hidden_layers": 27,
33
+ "num_key_value_heads": 16,
34
+ "pretraining_tp": 1,
35
+ "q_lora_rank": null,
36
+ "qk_nope_head_dim": 128,
37
+ "qk_rope_head_dim": 64,
38
+ "rms_norm_eps": 1e-06,
39
+ "rope_scaling": {
40
+ "beta_fast": 32,
41
+ "beta_slow": 1,
42
+ "factor": 40,
43
+ "mscale": 0.707,
44
+ "mscale_all_dim": 0.707,
45
+ "original_max_position_embeddings": 4096,
46
+ "type": "yarn"
47
+ },
48
+ "rope_theta": 10000,
49
+ "routed_scaling_factor": 1.0,
50
+ "scoring_func": "softmax",
51
+ "seq_aux": true,
52
+ "tie_word_embeddings": false,
53
+ "topk_group": 1,
54
+ "topk_method": "greedy",
55
+ "torch_dtype": "bfloat16",
56
+ "transformers_version": "4.51.0",
57
+ "use_cache": false,
58
+ "v_head_dim": 128,
59
+ "vocab_size": 102400
60
+ }
model-00001-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9dad2a27a6507faaed8ce5d409eabfe61dba3412e80c261c8326f6bf5eec44d
3
+ size 4994763632
model-00002-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39a0086eeb53e82250b86b5b96e41a840d421e9ff2a6ac44966e29d4db488a63
3
+ size 4995044944
model-00003-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a9e149bfc70cdc8b648f4e59c8d22d4bc08fc907551ea358b8d917e22df6fff
3
+ size 4996085000
model-00004-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55ffa8bb7873a87a4ccafeb6a5f63ef08d9a05dc04796c9af11a9aaa430550fa
3
+ size 4996085224
model-00005-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33f890b766a271ed62c5e5bc49e4df2609479e4ff408ac970b281f4fd7d551ad
3
+ size 4996085224
model-00006-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb55f0c43e76af1d27e53977553ebcbb583d0f681c444a7724211cc3d9aaf3c5
3
+ size 4995045792
model-00007-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a76af3c6573acd78f0edf67a9e7f4a9909014019e747d87daadfdc996034cae8
3
+ size 1440515736
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin▁of▁sentence|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|end▁of▁sentence|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|end▁of▁sentence|>"
17
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "100000": {
7
+ "content": "<|begin▁of▁sentence|>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "100001": {
15
+ "content": "<|end▁of▁sentence|>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ }
22
+ },
23
+ "bos_token": "<|begin▁of▁sentence|>",
24
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ 'User: ' + message['content'] + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ 'Assistant: ' + message['content'] + eos_token }}{% elif message['role'] == 'system' %}{{ message['content'] + '\n\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}",
25
+ "clean_up_tokenization_spaces": false,
26
+ "eos_token": "<|end▁of▁sentence|>",
27
+ "extra_special_tokens": {},
28
+ "fast_tokenizer": true,
29
+ "legacy": true,
30
+ "model_max_length": 16384,
31
+ "pad_token": "<|end▁of▁sentence|>",
32
+ "sp_model_kwargs": {},
33
+ "tokenizer_class": "LlamaTokenizerFast",
34
+ "unk_token": null,
35
+ "use_default_system_prompt": false
36
+ }
training.log ADDED
@@ -0,0 +1,422 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2025-09-23 11:39:33 - INFO - __main__ - Model parameters ModelConfig(model_name_or_path='deepseek-ai/DeepSeek-V2-Lite', model_revision='main', torch_dtype='bfloat16', trust_remote_code=True, attn_implementation='flash_attention_2', use_peft=False, lora_r=16, lora_alpha=32, lora_dropout=0.05, lora_target_modules=None, lora_modules_to_save=None, lora_task_type='CAUSAL_LM', use_rslora=False, load_in_8bit=False, load_in_4bit=False, bnb_4bit_quant_type='nf4', use_bnb_nested_quant=False)
2
+ 2025-09-23 11:39:33 - INFO - __main__ - Script parameters ScriptArguments(dataset_name='fw407/Commonsense-15K', dataset_config=None, dataset_train_split='train', dataset_test_split='test', gradient_checkpointing_use_reentrant=False, ignore_bias_buffers=False)
3
+ 2025-09-23 11:39:33 - INFO - __main__ - Training parameters SFTConfig(
4
+ _n_gpu=1,
5
+ 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},
6
+ adafactor=False,
7
+ adam_beta1=0.9,
8
+ adam_beta2=0.999,
9
+ adam_epsilon=1e-08,
10
+ auto_find_batch_size=False,
11
+ average_tokens_across_devices=False,
12
+ batch_eval_metrics=False,
13
+ benchmarks=[],
14
+ bf16=True,
15
+ bf16_full_eval=False,
16
+ callbacks=[],
17
+ chars_per_token=<CHARS_PER_TOKEN>,
18
+ chat_template=None,
19
+ data_seed=None,
20
+ dataloader_drop_last=False,
21
+ dataloader_num_workers=0,
22
+ dataloader_persistent_workers=False,
23
+ dataloader_pin_memory=True,
24
+ dataloader_prefetch_factor=None,
25
+ dataset_batch_size=None,
26
+ dataset_kwargs=None,
27
+ dataset_num_proc=None,
28
+ dataset_text_field=text,
29
+ ddp_backend=None,
30
+ ddp_broadcast_buffers=None,
31
+ ddp_bucket_cap_mb=None,
32
+ ddp_find_unused_parameters=None,
33
+ ddp_timeout=1800000000,
34
+ debug=[],
35
+ deepspeed=None,
36
+ disable_tqdm=False,
37
+ do_eval=True,
38
+ do_predict=False,
39
+ do_train=False,
40
+ eval_accumulation_steps=None,
41
+ eval_delay=0,
42
+ eval_do_concat_batches=True,
43
+ eval_on_start=False,
44
+ eval_packing=None,
45
+ eval_steps=None,
46
+ eval_strategy=IntervalStrategy.NO,
47
+ eval_use_gather_object=False,
48
+ fp16=False,
49
+ fp16_backend=auto,
50
+ fp16_full_eval=False,
51
+ fp16_opt_level=O1,
52
+ fsdp=[],
53
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
54
+ fsdp_min_num_params=0,
55
+ fsdp_transformer_layer_cls_to_wrap=None,
56
+ full_determinism=False,
57
+ gradient_accumulation_steps=1,
58
+ gradient_checkpointing=False,
59
+ gradient_checkpointing_kwargs={'use_reentrant': False},
60
+ greater_is_better=None,
61
+ group_by_length=False,
62
+ half_precision_backend=auto,
63
+ hub_always_push=False,
64
+ hub_model_id=DeepSeek-V2-Lite-sft-commonsense15k,
65
+ hub_model_revision=main,
66
+ hub_private_repo=None,
67
+ hub_strategy=HubStrategy.EVERY_SAVE,
68
+ hub_token=<HUB_TOKEN>,
69
+ ignore_data_skip=False,
70
+ include_for_metrics=[],
71
+ include_inputs_for_metrics=False,
72
+ include_num_input_tokens_seen=False,
73
+ include_tokens_per_second=False,
74
+ jit_mode_eval=False,
75
+ label_names=None,
76
+ label_smoothing_factor=0.0,
77
+ learning_rate=1e-05,
78
+ length_column_name=length,
79
+ load_best_model_at_end=False,
80
+ local_rank=0,
81
+ log_level=info,
82
+ log_level_replica=warning,
83
+ log_on_each_node=True,
84
+ logging_dir=/tmp/data/DeepSeek-V2-Lite/sft/commonsense15k/runs/Sep23_11-39-32_orchard-flame-14,
85
+ logging_first_step=False,
86
+ logging_nan_inf_filter=True,
87
+ logging_steps=1,
88
+ logging_strategy=IntervalStrategy.STEPS,
89
+ lr_scheduler_kwargs={'min_lr_rate': 0.1},
90
+ lr_scheduler_type=SchedulerType.COSINE_WITH_MIN_LR,
91
+ max_grad_norm=1.0,
92
+ max_length=2048,
93
+ max_seq_length=None,
94
+ max_steps=-1,
95
+ metric_for_best_model=None,
96
+ model_init_kwargs=None,
97
+ mp_parameters=,
98
+ neftune_noise_alpha=None,
99
+ no_cuda=False,
100
+ num_of_sequences=None,
101
+ num_train_epochs=3,
102
+ optim=OptimizerNames.ADAMW_TORCH,
103
+ optim_args=None,
104
+ optim_target_modules=None,
105
+ output_dir=/tmp/data/DeepSeek-V2-Lite/sft/commonsense15k,
106
+ overwrite_hub_revision=False,
107
+ overwrite_output_dir=True,
108
+ packing=False,
109
+ past_index=-1,
110
+ per_device_eval_batch_size=16,
111
+ per_device_train_batch_size=16,
112
+ prediction_loss_only=False,
113
+ push_to_hub=True,
114
+ push_to_hub_model_id=None,
115
+ push_to_hub_organization=None,
116
+ push_to_hub_revision=False,
117
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
118
+ ray_scope=last,
119
+ remove_unused_columns=True,
120
+ report_to=['wandb'],
121
+ restore_callback_states_from_checkpoint=False,
122
+ resume_from_checkpoint=None,
123
+ run_name=/tmp/data/DeepSeek-V2-Lite/sft/commonsense15k,
124
+ save_on_each_node=False,
125
+ save_only_model=False,
126
+ save_safetensors=True,
127
+ save_steps=500,
128
+ save_strategy=SaveStrategy.EPOCH,
129
+ save_total_limit=3,
130
+ seed=1234,
131
+ skip_memory_metrics=True,
132
+ system_prompt=None,
133
+ tf32=None,
134
+ torch_compile=False,
135
+ torch_compile_backend=None,
136
+ torch_compile_mode=None,
137
+ torch_empty_cache_steps=None,
138
+ torchdynamo=None,
139
+ tp_size=0,
140
+ tpu_metrics_debug=False,
141
+ tpu_num_cores=None,
142
+ use_cpu=False,
143
+ use_ipex=False,
144
+ use_legacy_prediction_loop=False,
145
+ use_liger=False,
146
+ use_liger_kernel=False,
147
+ use_mps_device=False,
148
+ wandb_entity=None,
149
+ wandb_project=None,
150
+ warmup_ratio=0.1,
151
+ warmup_steps=0,
152
+ weight_decay=0.0,
153
+ )
154
+ 2025-09-23 11:39:35 - INFO - __main__ - *** Initializing model kwargs ***
155
+ 2025-09-23 11:41:35 - INFO - __main__ - *** Train ***
156
+ 2025-09-23 11:41:35 - INFO - __main__ - DeepseekV2ForCausalLM(
157
+ (model): DeepseekV2Model(
158
+ (embed_tokens): Embedding(102400, 2048)
159
+ (layers): ModuleList(
160
+ (0): DeepseekV2DecoderLayer(
161
+ (self_attn): DeepseekV2FlashAttention2(
162
+ (q_proj): Linear(in_features=2048, out_features=3072, bias=False)
163
+ (kv_a_proj_with_mqa): Linear(in_features=2048, out_features=576, bias=False)
164
+ (kv_a_layernorm): DeepseekV2RMSNorm()
165
+ (kv_b_proj): Linear(in_features=512, out_features=4096, bias=False)
166
+ (o_proj): Linear(in_features=2048, out_features=2048, bias=False)
167
+ (rotary_emb): DeepseekV2YarnRotaryEmbedding()
168
+ )
169
+ (mlp): DeepseekV2MLP(
170
+ (gate_proj): Linear(in_features=2048, out_features=10944, bias=False)
171
+ (up_proj): Linear(in_features=2048, out_features=10944, bias=False)
172
+ (down_proj): Linear(in_features=10944, out_features=2048, bias=False)
173
+ (act_fn): SiLU()
174
+ )
175
+ (input_layernorm): DeepseekV2RMSNorm()
176
+ (post_attention_layernorm): DeepseekV2RMSNorm()
177
+ )
178
+ (1-26): 26 x DeepseekV2DecoderLayer(
179
+ (self_attn): DeepseekV2FlashAttention2(
180
+ (q_proj): Linear(in_features=2048, out_features=3072, bias=False)
181
+ (kv_a_proj_with_mqa): Linear(in_features=2048, out_features=576, bias=False)
182
+ (kv_a_layernorm): DeepseekV2RMSNorm()
183
+ (kv_b_proj): Linear(in_features=512, out_features=4096, bias=False)
184
+ (o_proj): Linear(in_features=2048, out_features=2048, bias=False)
185
+ (rotary_emb): DeepseekV2YarnRotaryEmbedding()
186
+ )
187
+ (mlp): DeepseekV2MoE(
188
+ (experts): ModuleList(
189
+ (0-63): 64 x DeepseekV2MLP(
190
+ (gate_proj): Linear(in_features=2048, out_features=1408, bias=False)
191
+ (up_proj): Linear(in_features=2048, out_features=1408, bias=False)
192
+ (down_proj): Linear(in_features=1408, out_features=2048, bias=False)
193
+ (act_fn): SiLU()
194
+ )
195
+ )
196
+ (gate): MoEGate()
197
+ (shared_experts): DeepseekV2MLP(
198
+ (gate_proj): Linear(in_features=2048, out_features=2816, bias=False)
199
+ (up_proj): Linear(in_features=2048, out_features=2816, bias=False)
200
+ (down_proj): Linear(in_features=2816, out_features=2048, bias=False)
201
+ (act_fn): SiLU()
202
+ )
203
+ )
204
+ (input_layernorm): DeepseekV2RMSNorm()
205
+ (post_attention_layernorm): DeepseekV2RMSNorm()
206
+ )
207
+ )
208
+ (norm): DeepseekV2RMSNorm()
209
+ )
210
+ (lm_head): Linear(in_features=2048, out_features=102400, bias=False)
211
+ )
212
+ 2025-09-23 11:51:22 - INFO - __main__ - Model parameters ModelConfig(model_name_or_path='deepseek-ai/DeepSeek-V2-Lite', model_revision='main', torch_dtype='bfloat16', trust_remote_code=True, attn_implementation='flash_attention_2', use_peft=False, lora_r=16, lora_alpha=32, lora_dropout=0.05, lora_target_modules=None, lora_modules_to_save=None, lora_task_type='CAUSAL_LM', use_rslora=False, load_in_8bit=False, load_in_4bit=False, bnb_4bit_quant_type='nf4', use_bnb_nested_quant=False)
213
+ 2025-09-23 11:51:22 - INFO - __main__ - Script parameters ScriptArguments(dataset_name='fw407/Commonsense-15K', dataset_config=None, dataset_train_split='train', dataset_test_split='test', gradient_checkpointing_use_reentrant=False, ignore_bias_buffers=False)
214
+ 2025-09-23 11:51:22 - INFO - __main__ - Training parameters SFTConfig(
215
+ _n_gpu=1,
216
+ 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},
217
+ adafactor=False,
218
+ adam_beta1=0.9,
219
+ adam_beta2=0.999,
220
+ adam_epsilon=1e-08,
221
+ auto_find_batch_size=False,
222
+ average_tokens_across_devices=False,
223
+ batch_eval_metrics=False,
224
+ benchmarks=[],
225
+ bf16=True,
226
+ bf16_full_eval=False,
227
+ callbacks=[],
228
+ chars_per_token=<CHARS_PER_TOKEN>,
229
+ chat_template=None,
230
+ data_seed=None,
231
+ dataloader_drop_last=False,
232
+ dataloader_num_workers=0,
233
+ dataloader_persistent_workers=False,
234
+ dataloader_pin_memory=True,
235
+ dataloader_prefetch_factor=None,
236
+ dataset_batch_size=None,
237
+ dataset_kwargs=None,
238
+ dataset_num_proc=None,
239
+ dataset_text_field=text,
240
+ ddp_backend=None,
241
+ ddp_broadcast_buffers=None,
242
+ ddp_bucket_cap_mb=None,
243
+ ddp_find_unused_parameters=None,
244
+ ddp_timeout=1800000000,
245
+ debug=[],
246
+ deepspeed=None,
247
+ disable_tqdm=False,
248
+ do_eval=True,
249
+ do_predict=False,
250
+ do_train=False,
251
+ eval_accumulation_steps=None,
252
+ eval_delay=0,
253
+ eval_do_concat_batches=True,
254
+ eval_on_start=False,
255
+ eval_packing=None,
256
+ eval_steps=None,
257
+ eval_strategy=IntervalStrategy.NO,
258
+ eval_use_gather_object=False,
259
+ fp16=False,
260
+ fp16_backend=auto,
261
+ fp16_full_eval=False,
262
+ fp16_opt_level=O1,
263
+ fsdp=[],
264
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
265
+ fsdp_min_num_params=0,
266
+ fsdp_transformer_layer_cls_to_wrap=None,
267
+ full_determinism=False,
268
+ gradient_accumulation_steps=1,
269
+ gradient_checkpointing=True,
270
+ gradient_checkpointing_kwargs={'use_reentrant': False},
271
+ greater_is_better=None,
272
+ group_by_length=False,
273
+ half_precision_backend=auto,
274
+ hub_always_push=False,
275
+ hub_model_id=DeepSeek-V2-Lite-sft-commonsense15k,
276
+ hub_model_revision=main,
277
+ hub_private_repo=None,
278
+ hub_strategy=HubStrategy.EVERY_SAVE,
279
+ hub_token=<HUB_TOKEN>,
280
+ ignore_data_skip=False,
281
+ include_for_metrics=[],
282
+ include_inputs_for_metrics=False,
283
+ include_num_input_tokens_seen=False,
284
+ include_tokens_per_second=False,
285
+ jit_mode_eval=False,
286
+ label_names=None,
287
+ label_smoothing_factor=0.0,
288
+ learning_rate=1e-05,
289
+ length_column_name=length,
290
+ load_best_model_at_end=False,
291
+ local_rank=0,
292
+ log_level=info,
293
+ log_level_replica=warning,
294
+ log_on_each_node=True,
295
+ logging_dir=/tmp/data/DeepSeek-V2-Lite/sft/commonsense15k/runs/Sep23_11-51-21_orchard-flame-14,
296
+ logging_first_step=False,
297
+ logging_nan_inf_filter=True,
298
+ logging_steps=1,
299
+ logging_strategy=IntervalStrategy.STEPS,
300
+ lr_scheduler_kwargs={'min_lr_rate': 0.1},
301
+ lr_scheduler_type=SchedulerType.COSINE_WITH_MIN_LR,
302
+ max_grad_norm=1.0,
303
+ max_length=2048,
304
+ max_seq_length=None,
305
+ max_steps=-1,
306
+ metric_for_best_model=None,
307
+ model_init_kwargs=None,
308
+ mp_parameters=,
309
+ neftune_noise_alpha=None,
310
+ no_cuda=False,
311
+ num_of_sequences=None,
312
+ num_train_epochs=3,
313
+ optim=OptimizerNames.ADAMW_TORCH,
314
+ optim_args=None,
315
+ optim_target_modules=None,
316
+ output_dir=/tmp/data/DeepSeek-V2-Lite/sft/commonsense15k,
317
+ overwrite_hub_revision=False,
318
+ overwrite_output_dir=True,
319
+ packing=False,
320
+ past_index=-1,
321
+ per_device_eval_batch_size=16,
322
+ per_device_train_batch_size=16,
323
+ prediction_loss_only=False,
324
+ push_to_hub=True,
325
+ push_to_hub_model_id=None,
326
+ push_to_hub_organization=None,
327
+ push_to_hub_revision=False,
328
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
329
+ ray_scope=last,
330
+ remove_unused_columns=True,
331
+ report_to=['wandb'],
332
+ restore_callback_states_from_checkpoint=False,
333
+ resume_from_checkpoint=None,
334
+ run_name=/tmp/data/DeepSeek-V2-Lite/sft/commonsense15k,
335
+ save_on_each_node=False,
336
+ save_only_model=False,
337
+ save_safetensors=True,
338
+ save_steps=500,
339
+ save_strategy=SaveStrategy.EPOCH,
340
+ save_total_limit=3,
341
+ seed=1234,
342
+ skip_memory_metrics=True,
343
+ system_prompt=None,
344
+ tf32=None,
345
+ torch_compile=False,
346
+ torch_compile_backend=None,
347
+ torch_compile_mode=None,
348
+ torch_empty_cache_steps=None,
349
+ torchdynamo=None,
350
+ tp_size=0,
351
+ tpu_metrics_debug=False,
352
+ tpu_num_cores=None,
353
+ use_cpu=False,
354
+ use_ipex=False,
355
+ use_legacy_prediction_loop=False,
356
+ use_liger=False,
357
+ use_liger_kernel=False,
358
+ use_mps_device=False,
359
+ wandb_entity=None,
360
+ wandb_project=None,
361
+ warmup_ratio=0.1,
362
+ warmup_steps=0,
363
+ weight_decay=0.0,
364
+ )
365
+ 2025-09-23 11:51:24 - INFO - __main__ - *** Initializing model kwargs ***
366
+ 2025-09-23 11:52:43 - INFO - __main__ - *** Train ***
367
+ 2025-09-23 11:52:43 - INFO - __main__ - DeepseekV2ForCausalLM(
368
+ (model): DeepseekV2Model(
369
+ (embed_tokens): Embedding(102400, 2048)
370
+ (layers): ModuleList(
371
+ (0): DeepseekV2DecoderLayer(
372
+ (self_attn): DeepseekV2FlashAttention2(
373
+ (q_proj): Linear(in_features=2048, out_features=3072, bias=False)
374
+ (kv_a_proj_with_mqa): Linear(in_features=2048, out_features=576, bias=False)
375
+ (kv_a_layernorm): DeepseekV2RMSNorm()
376
+ (kv_b_proj): Linear(in_features=512, out_features=4096, bias=False)
377
+ (o_proj): Linear(in_features=2048, out_features=2048, bias=False)
378
+ (rotary_emb): DeepseekV2YarnRotaryEmbedding()
379
+ )
380
+ (mlp): DeepseekV2MLP(
381
+ (gate_proj): Linear(in_features=2048, out_features=10944, bias=False)
382
+ (up_proj): Linear(in_features=2048, out_features=10944, bias=False)
383
+ (down_proj): Linear(in_features=10944, out_features=2048, bias=False)
384
+ (act_fn): SiLU()
385
+ )
386
+ (input_layernorm): DeepseekV2RMSNorm()
387
+ (post_attention_layernorm): DeepseekV2RMSNorm()
388
+ )
389
+ (1-26): 26 x DeepseekV2DecoderLayer(
390
+ (self_attn): DeepseekV2FlashAttention2(
391
+ (q_proj): Linear(in_features=2048, out_features=3072, bias=False)
392
+ (kv_a_proj_with_mqa): Linear(in_features=2048, out_features=576, bias=False)
393
+ (kv_a_layernorm): DeepseekV2RMSNorm()
394
+ (kv_b_proj): Linear(in_features=512, out_features=4096, bias=False)
395
+ (o_proj): Linear(in_features=2048, out_features=2048, bias=False)
396
+ (rotary_emb): DeepseekV2YarnRotaryEmbedding()
397
+ )
398
+ (mlp): DeepseekV2MoE(
399
+ (experts): ModuleList(
400
+ (0-63): 64 x DeepseekV2MLP(
401
+ (gate_proj): Linear(in_features=2048, out_features=1408, bias=False)
402
+ (up_proj): Linear(in_features=2048, out_features=1408, bias=False)
403
+ (down_proj): Linear(in_features=1408, out_features=2048, bias=False)
404
+ (act_fn): SiLU()
405
+ )
406
+ )
407
+ (gate): MoEGate()
408
+ (shared_experts): DeepseekV2MLP(
409
+ (gate_proj): Linear(in_features=2048, out_features=2816, bias=False)
410
+ (up_proj): Linear(in_features=2048, out_features=2816, bias=False)
411
+ (down_proj): Linear(in_features=2816, out_features=2048, bias=False)
412
+ (act_fn): SiLU()
413
+ )
414
+ )
415
+ (input_layernorm): DeepseekV2RMSNorm()
416
+ (post_attention_layernorm): DeepseekV2RMSNorm()
417
+ )
418
+ )
419
+ (norm): DeepseekV2RMSNorm()
420
+ )
421
+ (lm_head): Linear(in_features=2048, out_features=102400, bias=False)
422
+ )
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6318328df1f5137f775a77b33f6e64e49223aaae843bf6d05f7f85ce4084e775
3
+ size 7544