abao commited on
Commit
eb259fd
·
verified ·
1 Parent(s): 87f0acb

Upload folder using huggingface_hub

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
+ checkpoints-DDPStrategy/step-00099999-cd140m-n5v2-dt0p3-mr27-mbd8-100k filter=lfs diff=lfs merge=lfs -text
checkpoints-DDPStrategy/step-00099999-cd140m-n5v2-dt0p3-mr27-mbd8-100k ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:517c3bd9d3a50dc3d263552f9ed23b6d2f32f02d7df6748d55ffdfd2a931059b
3
+ size 578368517
run_config.json ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_name": "cd140m-n5v2-dt0p3-mr27-mbd8-100k",
3
+ "out_dir": "/datastor2/abao/checkpoints/parcae_runs/cd140m-n5v2-dt0p3-mr27-mbd8-100k",
4
+ "resume": false,
5
+ "resume_checkpoint_path": null,
6
+ "max_tokens": 0,
7
+ "max_steps": 100000,
8
+ "max_flops": null,
9
+ "token_to_param_ratio": null,
10
+ "exit_at_step": null,
11
+ "seed": 42,
12
+ "model_name": "parcae-small-140m",
13
+ "model_impl": "dynamic",
14
+ "block_size": 29,
15
+ "ignore_block_size_mismatch": true,
16
+ "model_checkpoint": "/datastor2/abao/checkpoints/parcae_runs/init/parcae-140m-fabric.pt",
17
+ "doc_block_attn": false,
18
+ "cache_attn": false,
19
+ "eod_token": null,
20
+ "recurrence_schedule": "linear",
21
+ "cirriculum_steps": 0,
22
+ "world_batch_size": 512,
23
+ "batch_size_ramp": 0,
24
+ "optimizer": "MuonAdamW",
25
+ "optim_config": {
26
+ "lr": 0.005,
27
+ "muon_lr": 0.005,
28
+ "weight_decay": 0.0,
29
+ "betas": [
30
+ 0.9,
31
+ 0.95
32
+ ],
33
+ "eps": 1e-10,
34
+ "muon_momentum": 0.95,
35
+ "muon_wd": 0.0,
36
+ "muon_ns_steps": 5,
37
+ "muon_momentum_warmup_steps": 100
38
+ },
39
+ "grad_clip": 1.0,
40
+ "warmup_steps": 0.05,
41
+ "cooldown_steps": 0.2,
42
+ "lr_schedule": "trapezoid",
43
+ "min_lr": 0.0,
44
+ "no_weight_decay_for_bias_and_norm_params": true,
45
+ "label_smoothing": 0.0,
46
+ "z_regularization": 0.0,
47
+ "goldfish": {
48
+ "k_token_loss_dropout": 4,
49
+ "start_position": 0,
50
+ "context_width": 13,
51
+ "strategy": null
52
+ },
53
+ "fabric_strategy": "ddp",
54
+ "fabric_precision": "bf16-mixed",
55
+ "fabric_use_lightning_environment": false,
56
+ "fabric": {
57
+ "optimize_communication": false,
58
+ "all_reduce_dtype": null,
59
+ "row_tensor_parallel_size": 1,
60
+ "col_tensor_parallel_size": 1,
61
+ "depth_tensor_parallel_size": 1,
62
+ "optim_sharding": false,
63
+ "allow_optim_fusion": false,
64
+ "use_apex_adamw": false,
65
+ "fsdp_use_original_params": false
66
+ },
67
+ "micro_batch_size": 512,
68
+ "compile_model": true,
69
+ "compile_backend": "inductor",
70
+ "compile_mode": "default",
71
+ "compile_fullgraph": false,
72
+ "compile_dynamic": false,
73
+ "matmul_precision": "high",
74
+ "dataloader_num_workers": 0,
75
+ "n_chunks": 4,
76
+ "gradient_checkpointing": false,
77
+ "allow_nonfinite_loss": false,
78
+ "compiled_autograd": false,
79
+ "compile_optimizer": false,
80
+ "dynamo_ddp_config": "ddp_optimizer",
81
+ "loss_guardrail_active": false,
82
+ "skip_nonfinite_grads": true,
83
+ "fail_instead_of_recompile": false,
84
+ "logger_name": "wandb",
85
+ "logger_entity": "gilpinlab",
86
+ "logger_project": "parcae-countdown",
87
+ "logger_group": "cd140m-n5v2-long",
88
+ "data_telemetry": false,
89
+ "model_telemetry": true,
90
+ "extreme_telemetry": false,
91
+ "shape_watching_steps": 3,
92
+ "log_step_interval": 1,
93
+ "eval_iters": 3,
94
+ "eval_precision": "same",
95
+ "save_step_interval": 10000,
96
+ "eval_step_interval": 500,
97
+ "save_first_step": false,
98
+ "save_last_step": true,
99
+ "save_n_min_before_job_done": null,
100
+ "save_keep_last": 9,
101
+ "best_checkpoint_metric": null,
102
+ "best_checkpoint_mode": "max",
103
+ "measure_utilization": true,
104
+ "partial_depth_eval": [
105
+ 8,
106
+ 27,
107
+ 32
108
+ ],
109
+ "generative_eval": {
110
+ "enabled": true,
111
+ "target": "countdown_store_eval_hook:evaluate",
112
+ "depths": [
113
+ 8,
114
+ 27,
115
+ 32
116
+ ],
117
+ "num_batches": 1,
118
+ "seed": 1234,
119
+ "max_new_tokens": null,
120
+ "extra": {
121
+ "eval_train": "/datastor2/abao/data/countdown/store_mid_n5v2_sft/eval_train",
122
+ "eval_id": "/datastor2/abao/data/countdown/store_mid_n5v2_sft/eval_id",
123
+ "eval_ood": "/datastor2/abao/data/countdown/store_mid_n5v2_sft/eval_ood"
124
+ }
125
+ },
126
+ "shuffle_filenames": true,
127
+ "shuffle_blocks": true,
128
+ "pad_to_block_size": true,
129
+ "add_bos": true,
130
+ "add_eos": true,
131
+ "pack_sequences": false,
132
+ "pack_buffer_size": 1000,
133
+ "data_signature": {
134
+ "keys": [
135
+ "text"
136
+ ],
137
+ "format_fn": "pass_text"
138
+ },
139
+ "collate_checks_enabled": true,
140
+ "all_block_size_tensors": false,
141
+ "use_chat_template": false,
142
+ "data_config": {
143
+ "train_data": [
144
+ {
145
+ "type": "hfds",
146
+ "prefix": "countdown-train",
147
+ "weight": 1,
148
+ "data_signature": {
149
+ "keys": [
150
+ "input",
151
+ "target"
152
+ ],
153
+ "format_fn": "condition_input_supervise_target"
154
+ },
155
+ "name": null,
156
+ "data_dir": "/datastor2/abao/data/countdown/store_mid_n5v2_sft/train",
157
+ "text_key": null,
158
+ "repetitions": null,
159
+ "wrap_epochs": true,
160
+ "max_epoch": null,
161
+ "scheduler": null,
162
+ "return_data_id": false
163
+ }
164
+ ],
165
+ "val_data": [
166
+ {
167
+ "type": "hfds",
168
+ "prefix": "countdown-val",
169
+ "weight": 1,
170
+ "data_signature": {
171
+ "keys": [
172
+ "input",
173
+ "target"
174
+ ],
175
+ "format_fn": "condition_input_supervise_target"
176
+ },
177
+ "name": null,
178
+ "data_dir": "/datastor2/abao/data/countdown/store_mid_n5v2_sft/val",
179
+ "text_key": null,
180
+ "repetitions": null,
181
+ "wrap_epochs": false,
182
+ "max_epoch": null,
183
+ "scheduler": null,
184
+ "return_data_id": false
185
+ }
186
+ ]
187
+ },
188
+ "train_data_dir": "",
189
+ "val_data_dir": "",
190
+ "tokenizer_path": "/datastor2/abao/checkpoints/parcae_runs/cd140m-n5v2-dt0p3-mr27-mbd8-100k/tokenizer",
191
+ "model_config": {
192
+ "name": "parcae-small-140m",
193
+ "hf_config": {
194
+ "org": "SandyResearch",
195
+ "name": "parcae-small-140m"
196
+ },
197
+ "block_size": 2048,
198
+ "n_embd": 768,
199
+ "intermediate_size": 3072,
200
+ "num_attention_heads": 6,
201
+ "num_key_value_heads": 6,
202
+ "vocab_size": 32768,
203
+ "padding_multiple": 64,
204
+ "padded_vocab_size": 32768,
205
+ "rope_settings": {
206
+ "use_rope": true,
207
+ "rope_condense_ratio": 1,
208
+ "rope_base": 50000
209
+ },
210
+ "use_abacus": false,
211
+ "randomize_positions_from": null,
212
+ "block_class_name": "TransformerPreNormBlock",
213
+ "norm_class_name": "RMSNorm",
214
+ "attn_impl": "flash",
215
+ "norm_eps": 1e-05,
216
+ "mlp_class_name": "BaseMLP",
217
+ "nonlin_name": "ReLU2",
218
+ "bias": false,
219
+ "qk_bias": false,
220
+ "init_strategy": "scaled-zero",
221
+ "init_orthogonal": true,
222
+ "skip_initialization": false,
223
+ "mup_model_scaling_factor": 1,
224
+ "use_fused_head": "pytorch",
225
+ "debias_attention": false,
226
+ "center_attention": false,
227
+ "clip_qkv": null,
228
+ "qk_norm": true,
229
+ "logit_softcap": null,
230
+ "activation_checkpoint_impl": "per-iteration",
231
+ "simple_ops": false,
232
+ "strategy": "ddp",
233
+ "injection_type": "diagonal",
234
+ "dt_scale": 0.3,
235
+ "n_layers_in_recurrent_block": 2,
236
+ "n_layers_in_prelude": 2,
237
+ "n_layers_in_coda": 2,
238
+ "state_init": "like-init",
239
+ "recurrent_embedding_dimension": 768,
240
+ "recurrent_intermediation_embedding_dimension": 3072,
241
+ "recurrent_num_attention_heads": null,
242
+ "prelude_norm": true,
243
+ "sampling_scheme": "poisson-truncated-full",
244
+ "mean_recurrence": 27,
245
+ "mean_backprop_depth": 8,
246
+ "lockstep_n": false,
247
+ "lockstep_k": false,
248
+ "curriculum_target": "forward",
249
+ "recurrent_iteration_method": "per-sequence",
250
+ "tie_embeddings": true,
251
+ "model_class_name": "Parcae",
252
+ "_is_recurrent_block_config": false
253
+ },
254
+ "model_overwrite": {
255
+ "vocab_size": 32768,
256
+ "prelude_norm": true,
257
+ "dt_scale": 0.3,
258
+ "mean_recurrence": 27,
259
+ "mean_backprop_depth": 8
260
+ }
261
+ }
special_token_ids.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_id": 0,
3
+ "eos_id": 1,
4
+ "pad_id": 2,
5
+ "ignore_index": 2,
6
+ "add_bos": true,
7
+ "add_eos": true,
8
+ "vocab_size": 32768,
9
+ "tokenizer_source": "/datastor2/abao/lm_datasets/parcae_tokenizer_local",
10
+ "configs": [
11
+ "launch_configs/countdown-sft.yaml",
12
+ "launch_configs/countdown-sft-store-mid-n5v2.yaml",
13
+ "launch_configs/countdown-sft-140m-long100k.yaml"
14
+ ],
15
+ "model_overwrite": "{\"vocab_size\":32768,\"prelude_norm\":true,\"dt_scale\":0.3,\"mean_recurrence\":27,\"mean_backprop_depth\":8}"
16
+ }
tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|bos|>",
3
+ "eos_token": "<|eos|>",
4
+ "pad_token": "<|pad|>"
5
+ }
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tokenizer_class": "PreTrainedTokenizerFast",
3
+ "model_max_length": 2048,
4
+ "clean_up_tokenization_spaces": false,
5
+ "bos_token": "<|bos|>",
6
+ "eos_token": "<|eos|>",
7
+ "pad_token": "<|pad|>"
8
+ }