HectorHe commited on
Commit
69025e4
·
verified ·
1 Parent(s): 2d2103b

Training in progress, step 500

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% for message in messages %}
2
+ {% if message['role'] == 'user' %}
3
+ {{ '<|user|>
4
+ ' + message['content'] + eos_token }}
5
+ {% elif message['role'] == 'system' %}
6
+ {{ '<|system|>
7
+ ' + message['content'] + eos_token }}
8
+ {% elif message['role'] == 'assistant' %}
9
+ {{ '<|assistant|>
10
+ ' + message['content'] + eos_token }}
11
+ {% endif %}
12
+ {% if loop.last and add_generation_prompt %}
13
+ {{ '<|assistant|>' }}
14
+ {% endif %}
15
+ {% endfor %}
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "OlmoeForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "clip_qkv": null,
8
+ "eos_token_id": 50279,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 2048,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 1024,
13
+ "max_position_embeddings": 4096,
14
+ "model_type": "olmoe",
15
+ "norm_topk_prob": false,
16
+ "num_attention_heads": 16,
17
+ "num_experts": 64,
18
+ "num_experts_per_tok": 8,
19
+ "num_hidden_layers": 16,
20
+ "num_key_value_heads": 16,
21
+ "output_router_logits": false,
22
+ "pad_token_id": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_scaling": null,
25
+ "rope_theta": 10000.0,
26
+ "router_aux_loss_coef": 0.01,
27
+ "tie_word_embeddings": false,
28
+ "torch_dtype": "bfloat16",
29
+ "transformers_version": "4.55.2",
30
+ "use_cache": false,
31
+ "vocab_size": 50304
32
+ }
model-00001-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98c13ff930875b8d31d48f6a7db8ec4be97eb1a591d1cac8fd4cc053fab566b5
3
+ size 4997744872
model-00002-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce980c32383890fde0a10bce9aa03a757a12aa5c8a7ccc518635b90e1aae3b25
3
+ size 4997235176
model-00003-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d3a37c8a157754b036c97ca5c8d707169aeb8de9b977d2b026050d1d8a96852
3
+ size 3843741912
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,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "pad_token": "<|endoftext|>"
10
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": false,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "|||IP_ADDRESS|||",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": false
13
+ },
14
+ "1": {
15
+ "content": "<|padding|>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "50254": {
23
+ "content": " ",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": false
29
+ },
30
+ "50255": {
31
+ "content": " ",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ },
38
+ "50256": {
39
+ "content": " ",
40
+ "lstrip": false,
41
+ "normalized": true,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": false
45
+ },
46
+ "50257": {
47
+ "content": " ",
48
+ "lstrip": false,
49
+ "normalized": true,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": false
53
+ },
54
+ "50258": {
55
+ "content": " ",
56
+ "lstrip": false,
57
+ "normalized": true,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": false
61
+ },
62
+ "50259": {
63
+ "content": " ",
64
+ "lstrip": false,
65
+ "normalized": true,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": false
69
+ },
70
+ "50260": {
71
+ "content": " ",
72
+ "lstrip": false,
73
+ "normalized": true,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": false
77
+ },
78
+ "50261": {
79
+ "content": " ",
80
+ "lstrip": false,
81
+ "normalized": true,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": false
85
+ },
86
+ "50262": {
87
+ "content": " ",
88
+ "lstrip": false,
89
+ "normalized": true,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": false
93
+ },
94
+ "50263": {
95
+ "content": " ",
96
+ "lstrip": false,
97
+ "normalized": true,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": false
101
+ },
102
+ "50264": {
103
+ "content": " ",
104
+ "lstrip": false,
105
+ "normalized": true,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": false
109
+ },
110
+ "50265": {
111
+ "content": " ",
112
+ "lstrip": false,
113
+ "normalized": true,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": false
117
+ },
118
+ "50266": {
119
+ "content": " ",
120
+ "lstrip": false,
121
+ "normalized": true,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": false
125
+ },
126
+ "50267": {
127
+ "content": " ",
128
+ "lstrip": false,
129
+ "normalized": true,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "50268": {
135
+ "content": " ",
136
+ "lstrip": false,
137
+ "normalized": true,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "50269": {
143
+ "content": " ",
144
+ "lstrip": false,
145
+ "normalized": true,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "50270": {
151
+ "content": " ",
152
+ "lstrip": false,
153
+ "normalized": true,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "50271": {
159
+ "content": " ",
160
+ "lstrip": false,
161
+ "normalized": true,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "50272": {
167
+ "content": " ",
168
+ "lstrip": false,
169
+ "normalized": true,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "50273": {
175
+ "content": " ",
176
+ "lstrip": false,
177
+ "normalized": true,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": false
181
+ },
182
+ "50274": {
183
+ "content": " ",
184
+ "lstrip": false,
185
+ "normalized": true,
186
+ "rstrip": false,
187
+ "single_word": false,
188
+ "special": false
189
+ },
190
+ "50275": {
191
+ "content": " ",
192
+ "lstrip": false,
193
+ "normalized": true,
194
+ "rstrip": false,
195
+ "single_word": false,
196
+ "special": false
197
+ },
198
+ "50276": {
199
+ "content": " ",
200
+ "lstrip": false,
201
+ "normalized": true,
202
+ "rstrip": false,
203
+ "single_word": false,
204
+ "special": false
205
+ },
206
+ "50277": {
207
+ "content": "|||EMAIL_ADDRESS|||",
208
+ "lstrip": false,
209
+ "normalized": true,
210
+ "rstrip": false,
211
+ "single_word": false,
212
+ "special": false
213
+ },
214
+ "50278": {
215
+ "content": "|||PHONE_NUMBER|||",
216
+ "lstrip": false,
217
+ "normalized": true,
218
+ "rstrip": false,
219
+ "single_word": false,
220
+ "special": false
221
+ },
222
+ "50279": {
223
+ "content": "<|endoftext|>",
224
+ "lstrip": false,
225
+ "normalized": false,
226
+ "rstrip": false,
227
+ "single_word": false,
228
+ "special": true
229
+ }
230
+ },
231
+ "bos_token": null,
232
+ "clean_up_tokenization_spaces": true,
233
+ "eos_token": "<|endoftext|>",
234
+ "extra_special_tokens": {},
235
+ "fast_tokenizer": true,
236
+ "model_max_length": 1000000000000000019884624838656,
237
+ "pad_token": "<|endoftext|>",
238
+ "tokenizer_class": "GPTNeoXTokenizer",
239
+ "unk_token": null
240
+ }
training.log ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2025-08-14 17:10:37 - INFO - __main__ - Model parameters ModelConfig(model_name_or_path='allenai/OLMoE-1B-7B-0125', 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, use_dora=False, load_in_8bit=False, load_in_4bit=False, bnb_4bit_quant_type='nf4', use_bnb_nested_quant=False)
2
+ 2025-08-14 17:10:37 - INFO - __main__ - Script parameters ScriptArguments(dataset_name='autoprogrammer/nemotron_code_lf_filtered', dataset_config=None, dataset_train_split='train', dataset_test_split='test', gradient_checkpointing_use_reentrant=False, ignore_bias_buffers=False)
3
+ 2025-08-14 17:10:37 - 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
+ activation_offloading=False,
7
+ adafactor=False,
8
+ adam_beta1=0.9,
9
+ adam_beta2=0.999,
10
+ adam_epsilon=1e-08,
11
+ auto_find_batch_size=False,
12
+ average_tokens_across_devices=True,
13
+ batch_eval_metrics=False,
14
+ benchmarks=[],
15
+ bf16=True,
16
+ bf16_full_eval=False,
17
+ callbacks=[],
18
+ chat_template=None,
19
+ completion_only_loss=None,
20
+ data_seed=None,
21
+ dataloader_drop_last=False,
22
+ dataloader_num_workers=0,
23
+ dataloader_persistent_workers=False,
24
+ dataloader_pin_memory=True,
25
+ dataloader_prefetch_factor=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
+ eos_token=<EOS_TOKEN>,
41
+ eval_accumulation_steps=None,
42
+ eval_delay=0,
43
+ eval_do_concat_batches=True,
44
+ eval_on_start=False,
45
+ eval_packing=None,
46
+ eval_steps=None,
47
+ eval_strategy=IntervalStrategy.NO,
48
+ eval_use_gather_object=False,
49
+ fp16=False,
50
+ fp16_backend=auto,
51
+ fp16_full_eval=False,
52
+ fp16_opt_level=O1,
53
+ fsdp=[],
54
+ fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False},
55
+ fsdp_min_num_params=0,
56
+ fsdp_transformer_layer_cls_to_wrap=None,
57
+ full_determinism=False,
58
+ gradient_accumulation_steps=1,
59
+ gradient_checkpointing=True,
60
+ gradient_checkpointing_kwargs={'use_reentrant': False},
61
+ greater_is_better=None,
62
+ group_by_length=False,
63
+ half_precision_backend=auto,
64
+ hub_always_push=False,
65
+ hub_model_id=OLMoE-1B-7B-0125-sft-nemotron-code,
66
+ hub_model_revision=main,
67
+ hub_private_repo=None,
68
+ hub_revision=None,
69
+ hub_strategy=HubStrategy.EVERY_SAVE,
70
+ hub_token=<HUB_TOKEN>,
71
+ ignore_data_skip=False,
72
+ include_for_metrics=[],
73
+ include_inputs_for_metrics=False,
74
+ include_num_input_tokens_seen=False,
75
+ include_tokens_per_second=False,
76
+ jit_mode_eval=False,
77
+ label_names=None,
78
+ label_smoothing_factor=0.0,
79
+ learning_rate=1e-05,
80
+ length_column_name=length,
81
+ liger_kernel_config=None,
82
+ load_best_model_at_end=False,
83
+ local_rank=0,
84
+ log_level=info,
85
+ log_level_replica=warning,
86
+ log_on_each_node=True,
87
+ logging_dir=data/OLMoE-1B-7B-0125/sft/nemotron_code/runs/Aug14_17-10-35_ip-172-31-35-111,
88
+ logging_first_step=False,
89
+ logging_nan_inf_filter=True,
90
+ logging_steps=1,
91
+ logging_strategy=IntervalStrategy.STEPS,
92
+ lr_scheduler_kwargs={'min_lr_rate': 0.1},
93
+ lr_scheduler_type=SchedulerType.COSINE_WITH_MIN_LR,
94
+ max_grad_norm=1.0,
95
+ max_length=8192,
96
+ max_seq_length=None,
97
+ max_steps=-1,
98
+ metric_for_best_model=None,
99
+ model_init_kwargs=None,
100
+ mp_parameters=,
101
+ neftune_noise_alpha=None,
102
+ no_cuda=False,
103
+ num_train_epochs=1,
104
+ optim=OptimizerNames.ADAMW_TORCH,
105
+ optim_args=None,
106
+ optim_target_modules=None,
107
+ output_dir=data/OLMoE-1B-7B-0125/sft/nemotron_code,
108
+ overwrite_hub_revision=False,
109
+ overwrite_output_dir=True,
110
+ packing=True,
111
+ pad_to_multiple_of=None,
112
+ pad_token=<PAD_TOKEN>,
113
+ padding_free=False,
114
+ past_index=-1,
115
+ per_device_eval_batch_size=16,
116
+ per_device_train_batch_size=4,
117
+ prediction_loss_only=False,
118
+ push_to_hub=True,
119
+ push_to_hub_model_id=None,
120
+ push_to_hub_organization=None,
121
+ push_to_hub_revision=False,
122
+ push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
123
+ ray_scope=last,
124
+ remove_unused_columns=True,
125
+ report_to=['wandb'],
126
+ restore_callback_states_from_checkpoint=False,
127
+ resume_from_checkpoint=None,
128
+ run_name=None,
129
+ save_on_each_node=False,
130
+ save_only_model=False,
131
+ save_safetensors=True,
132
+ save_steps=500,
133
+ save_strategy=SaveStrategy.STEPS,
134
+ save_total_limit=1,
135
+ seed=1234,
136
+ skip_memory_metrics=True,
137
+ system_prompt=None,
138
+ tf32=None,
139
+ torch_compile=False,
140
+ torch_compile_backend=None,
141
+ torch_compile_mode=None,
142
+ torch_empty_cache_steps=None,
143
+ torchdynamo=None,
144
+ tpu_metrics_debug=False,
145
+ tpu_num_cores=None,
146
+ use_cpu=False,
147
+ use_ipex=False,
148
+ use_legacy_prediction_loop=False,
149
+ use_liger_kernel=False,
150
+ use_mps_device=False,
151
+ wandb_entity=None,
152
+ wandb_project=None,
153
+ wandb_run_group=None,
154
+ warmup_ratio=0.1,
155
+ warmup_steps=0,
156
+ weight_decay=0.0,
157
+ )
158
+ 2025-08-14 17:10:40 - INFO - __main__ - *** Initializing model kwargs ***
159
+ 2025-08-14 17:30:42 - INFO - __main__ - *** Train ***
160
+ 2025-08-14 17:30:42 - INFO - __main__ - OlmoeForCausalLM(
161
+ (model): OlmoeModel(
162
+ (embed_tokens): Embedding(50304, 2048, padding_idx=1)
163
+ (layers): ModuleList(
164
+ (0-15): 16 x OlmoeDecoderLayer(
165
+ (self_attn): OlmoeFlashAttention2(
166
+ (q_proj): Linear(in_features=2048, out_features=2048, bias=False)
167
+ (k_proj): Linear(in_features=2048, out_features=2048, bias=False)
168
+ (v_proj): Linear(in_features=2048, out_features=2048, bias=False)
169
+ (o_proj): Linear(in_features=2048, out_features=2048, bias=False)
170
+ (q_norm): OlmoeRMSNorm((0,), eps=1e-05)
171
+ (k_norm): OlmoeRMSNorm((0,), eps=1e-05)
172
+ )
173
+ (mlp): OlmoeSparseMoeBlock(
174
+ (gate): Linear(in_features=2048, out_features=64, bias=False)
175
+ (experts): ModuleList(
176
+ (0-63): 64 x OlmoeMLP(
177
+ (gate_proj): Linear(in_features=2048, out_features=1024, bias=False)
178
+ (up_proj): Linear(in_features=2048, out_features=1024, bias=False)
179
+ (down_proj): Linear(in_features=1024, out_features=2048, bias=False)
180
+ (act_fn): SiLU()
181
+ )
182
+ )
183
+ )
184
+ (input_layernorm): OlmoeRMSNorm((0,), eps=1e-05)
185
+ (post_attention_layernorm): OlmoeRMSNorm((0,), eps=1e-05)
186
+ )
187
+ )
188
+ (norm): OlmoeRMSNorm((0,), eps=1e-05)
189
+ (rotary_emb): OlmoeRotaryEmbedding()
190
+ )
191
+ (lm_head): Linear(in_features=2048, out_features=50304, bias=False)
192
+ )
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2ee7e235fe7a9907fd63ccd29116e4d4e26dbc2bc923533df73faee82824dcc
3
+ size 7608