diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/assignments.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/assignments.json new file mode 100644 index 0000000000000000000000000000000000000000..f035ce32d1ed6c783a5a583c21a628515402162d --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/assignments.json @@ -0,0 +1,400 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty" +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/log.jsonl b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/log.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c2dadfd83c281517743dc914b38a95baeb41f224 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/log.jsonl @@ -0,0 +1,61 @@ +{"step": 0, "loss": null, "lr": null, "val_pool": 1.5649412870407104, "acc_pool": 0.2456188725490196, "val_fresh": 1.5570073127746582, "acc_fresh": 0.24725030637254902} +{"step": 20, "loss": 1.4243314266204834, "lr": 4e-06, "grad_norm": 15.653141021728516, "steps_per_s": 0.9643950882587191} +{"step": 40, "loss": 1.5032522678375244, "lr": 8e-06, "grad_norm": 25.001659393310547, "steps_per_s": 0.8788852161124637} +{"step": 60, "loss": 1.3652737140655518, "lr": 1.2e-05, "grad_norm": 3.4861929416656494, "steps_per_s": 0.8964167578172743} +{"step": 80, "loss": 1.379769206047058, "lr": 1.6e-05, "grad_norm": 3.6495163440704346, "steps_per_s": 0.9270488112627321} +{"step": 100, "loss": 1.374131202697754, "lr": 2e-05, "grad_norm": 4.70890998840332, "steps_per_s": 0.9647674881860236} +{"step": 100, "loss": 1.374131202697754, "lr": 2e-05, "val_pool": 1.367414951324463, "acc_pool": 0.30166207107843135, "val_fresh": 1.3707634210586548, "acc_fresh": 0.3001531862745098} +{"step": 120, "loss": 1.3706398010253906, "lr": 2.4e-05, "grad_norm": 5.336164474487305, "steps_per_s": 0.7349624288037699} +{"step": 140, "loss": 1.3893036842346191, "lr": 2.8e-05, "grad_norm": 7.232271671295166, "steps_per_s": 0.9248630202486414} +{"step": 160, "loss": 1.4179246425628662, "lr": 3.2e-05, "grad_norm": 8.953091621398926, "steps_per_s": 0.891235731498714} +{"step": 180, "loss": 1.3642830848693848, "lr": 3.6e-05, "grad_norm": 3.894537925720215, "steps_per_s": 0.9288666323638448} +{"step": 200, "loss": 1.3625737428665161, "lr": 4e-05, "grad_norm": 3.2532620429992676, "steps_per_s": 0.9654044164223425} +{"step": 200, "loss": 1.3625737428665161, "lr": 4e-05, "val_pool": 1.3708363771438599, "acc_pool": 0.29706648284313725, "val_fresh": 1.3746426105499268, "acc_fresh": 0.2970511642156863} +{"step": 220, "loss": 1.3642362356185913, "lr": 4.4000000000000006e-05, "grad_norm": 4.645395755767822, "steps_per_s": 0.7343565901024004} +{"step": 240, "loss": 1.3477346897125244, "lr": 4.8e-05, "grad_norm": 5.117073059082031, "steps_per_s": 0.9311091993590198} +{"step": 260, "loss": 1.3115713596343994, "lr": 5.2000000000000004e-05, "grad_norm": 2.7701916694641113, "steps_per_s": 0.9210028493544529} +{"step": 280, "loss": 0.7285710573196411, "lr": 5.6e-05, "grad_norm": 3.4009876251220703, "steps_per_s": 0.9273770413400642} +{"step": 300, "loss": 0.6157844066619873, "lr": 6e-05, "grad_norm": 1.430940866470337, "steps_per_s": 0.9633406916254845} +{"step": 300, "loss": 0.6157844066619873, "lr": 6e-05, "val_pool": 0.5952867865562439, "acc_pool": 0.7555376838235294, "val_fresh": 0.5930402874946594, "acc_fresh": 0.7565333946078432} +{"step": 320, "loss": 0.5587788820266724, "lr": 6.4e-05, "grad_norm": 3.2498738765716553, "steps_per_s": 0.7332952045783112} +{"step": 340, "loss": 0.5162733197212219, "lr": 6.8e-05, "grad_norm": 1.2510385513305664, "steps_per_s": 0.9247766808557737} +{"step": 360, "loss": 0.49384310841560364, "lr": 7.2e-05, "grad_norm": 0.9384602904319763, "steps_per_s": 0.922839343285992} +{"step": 380, "loss": 0.5041429996490479, "lr": 7.6e-05, "grad_norm": 2.7511701583862305, "steps_per_s": 0.922091111424754} +{"step": 400, "loss": 0.4689694046974182, "lr": 8e-05, "grad_norm": 0.8410488367080688, "steps_per_s": 0.9610155448421697} +{"step": 400, "loss": 0.4689694046974182, "lr": 8e-05, "val_pool": 0.4623885154724121, "acc_pool": 0.773874080882353, "val_fresh": 0.4642668068408966, "acc_fresh": 0.7732536764705882} +{"step": 420, "loss": 0.43636882305145264, "lr": 8.400000000000001e-05, "grad_norm": 0.5994216799736023, "steps_per_s": 0.7549488904086871} +{"step": 440, "loss": 0.41917869448661804, "lr": 8.800000000000001e-05, "grad_norm": 0.9370407462120056, "steps_per_s": 0.9603443044191948} +{"step": 460, "loss": 0.4085506200790405, "lr": 9.2e-05, "grad_norm": 1.226957082748413, "steps_per_s": 0.9610072233510402} +{"step": 480, "loss": 0.4154292345046997, "lr": 9.6e-05, "grad_norm": 1.1151992082595825, "steps_per_s": 0.9612757623009867} +{"step": 500, "loss": 0.4019603133201599, "lr": 0.0001, "grad_norm": 0.9619501829147339, "steps_per_s": 0.9609647278039406} +{"step": 500, "loss": 0.4019603133201599, "lr": 0.0001, "val_pool": 0.4131251275539398, "acc_pool": 0.7843367034313725, "val_fresh": 0.41556552052497864, "acc_fresh": 0.7819393382352942} +{"step": 520, "loss": 0.40740329027175903, "lr": 0.00010400000000000001, "grad_norm": 0.9157659411430359, "steps_per_s": 0.7544011020887367} +{"step": 540, "loss": 0.4115794599056244, "lr": 0.000108, "grad_norm": 1.1218047142028809, "steps_per_s": 0.9604821257421815} +{"step": 560, "loss": 0.41734808683395386, "lr": 0.000112, "grad_norm": 1.563480257987976, "steps_per_s": 0.9601548550811388} +{"step": 580, "loss": 0.4014365077018738, "lr": 0.000116, "grad_norm": 1.1418137550354004, "steps_per_s": 0.9594268306587413} +{"step": 600, "loss": 0.4116640090942383, "lr": 0.00012, "grad_norm": 0.5629714131355286, "steps_per_s": 0.9602501636947747} +{"step": 600, "loss": 0.4116640090942383, "lr": 0.00012, "val_pool": 0.40946725010871887, "acc_pool": 0.7843060661764706, "val_fresh": 0.4109012484550476, "acc_fresh": 0.7830116421568627} +{"step": 620, "loss": 0.40837958455085754, "lr": 0.000124, "grad_norm": 0.918556809425354, "steps_per_s": 0.7560544855990939} +{"step": 640, "loss": 0.41173288226127625, "lr": 0.000128, "grad_norm": 0.5505112409591675, "steps_per_s": 0.9615617459394645} +{"step": 660, "loss": 0.4142798185348511, "lr": 0.000132, "grad_norm": 0.9435031414031982, "steps_per_s": 0.9603276039462707} +{"step": 680, "loss": 0.4212858974933624, "lr": 0.000136, "grad_norm": 1.7058639526367188, "steps_per_s": 0.9606553045159094} +{"step": 700, "loss": 0.4099193215370178, "lr": 0.00014000000000000001, "grad_norm": 0.8028742074966431, "steps_per_s": 0.9604798205859858} +{"step": 700, "loss": 0.4099193215370178, "lr": 0.00014000000000000001, "val_pool": 0.40551286935806274, "acc_pool": 0.7848651960784314, "val_fresh": 0.40673720836639404, "acc_fresh": 0.7831801470588236} +{"step": 720, "loss": 0.40390583872795105, "lr": 0.000144, "grad_norm": 1.0551091432571411, "steps_per_s": 0.7547703301780712} +{"step": 740, "loss": 0.39738181233406067, "lr": 0.00014800000000000002, "grad_norm": 0.8597906231880188, "steps_per_s": 0.9596383567410522} +{"step": 760, "loss": 0.4019622206687927, "lr": 0.000152, "grad_norm": 0.5116140842437744, "steps_per_s": 0.9596562650981474} +{"step": 780, "loss": 0.4003094732761383, "lr": 0.000156, "grad_norm": 0.24500487744808197, "steps_per_s": 0.960821677154272} +{"step": 800, "loss": 0.4058111906051636, "lr": 0.00016, "grad_norm": 1.24777090549469, "steps_per_s": 0.958433322536006} +{"step": 800, "loss": 0.4058111906051636, "lr": 0.00016, "val_pool": 0.4052489995956421, "acc_pool": 0.7867034313725491, "val_fresh": 0.4054286479949951, "acc_fresh": 0.7847732843137255} +{"step": 820, "loss": 0.40366074442863464, "lr": 0.000164, "grad_norm": 0.9442216753959656, "steps_per_s": 0.7540800903782675} +{"step": 840, "loss": 0.40515416860580444, "lr": 0.00016800000000000002, "grad_norm": 0.6727243661880493, "steps_per_s": 0.9587682949351649} +{"step": 860, "loss": 0.40369734168052673, "lr": 0.000172, "grad_norm": 0.5678946375846863, "steps_per_s": 0.9592518731984551} +{"step": 880, "loss": 0.41254284977912903, "lr": 0.00017600000000000002, "grad_norm": 0.5046204328536987, "steps_per_s": 0.9590386851581901} +{"step": 900, "loss": 0.4015820622444153, "lr": 0.00018, "grad_norm": 0.5599491000175476, "steps_per_s": 0.9599588235850472} +{"step": 900, "loss": 0.4015820622444153, "lr": 0.00018, "val_pool": 0.4045688211917877, "acc_pool": 0.7845971200980392, "val_fresh": 0.4050374925136566, "acc_fresh": 0.7854473039215686} +{"step": 920, "loss": 0.41163334250450134, "lr": 0.000184, "grad_norm": 0.9777715802192688, "steps_per_s": 0.7551931300600387} +{"step": 940, "loss": 0.39626848697662354, "lr": 0.000188, "grad_norm": 0.8927518129348755, "steps_per_s": 0.9630282643190547} +{"step": 960, "loss": 0.4067991375923157, "lr": 0.000192, "grad_norm": 0.6673359870910645, "steps_per_s": 0.9630643021888818} +{"step": 980, "loss": 0.4072302579879761, "lr": 0.00019600000000000002, "grad_norm": 0.5457248091697693, "steps_per_s": 0.9627852290162741} +{"step": 1000, "loss": 0.40571266412734985, "lr": 0.0002, "grad_norm": 0.5706065893173218, "steps_per_s": 0.9626016038724555} +{"step": 1000, "loss": 0.40571266412734985, "lr": 0.0002, "val_pool": 0.40318307280540466, "acc_pool": 0.7850643382352941, "val_fresh": 0.4032072126865387, "acc_fresh": 0.7858838848039216} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..9c6cafd3d013313090eb712a67a89181dadeb0d7 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99ce49bd2fc1bc361550f9eacf9c863cbf447de698bab12f38edb9bd406bed50 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..f6e612fa54cb70eb798939006e81d47b6a8af609 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00025/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 25 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..6ba69c894ad97ec4c062f3a863621cd88fde342e --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aed2bcd2dff33c533bc9100ade0a7858be64d9006814ce2f554664b939a095f4 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..3ba1b38785ceb28599f62bf5bc3b18bb8ce34bd7 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00050/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 50 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..243c07abbb24933dc9afa6f05eb3f67d386684cf --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fed514c7dbf96d54be9e60272c11e11c6cc70f33f306251906b98fdd229af76 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..18ab10d59c2e2d2954545e8f219730ce3a600e7e --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00075/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 75 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..b19288df773d69b61b2ab5e5181f66b51a347784 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e6ba3ac678910c3ffc00318eff6e77f5435b0162850524acac7342b7466cebc +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..769ba813683dfc2d2c6e088299d251da7bd2a2fc --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00100/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 100 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..130ddfd2234ca525281a9c2fa8127c85f08c3370 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17223547f8b9d66c5956a67cdacefe666f947dd6bd131d589a9584ae0f650553 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..b11d8fbd66ddb1c58a5133a6f0d28341bbd06fba --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00125/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 125 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..135c99995762365afa25accf785cca64a73e6899 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f40b6c1bd494edcad0c781f4e6f415ec43ce555fdd2411b53ff2741be78df06d +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..1adcbfcf3b1dde464eb9a30bbf260230daa0f666 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00150/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 150 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..f91741be015bd68590c3ef84b8e100fc55e498b5 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07d027f6de31e51de50759aeac6db8444c106a44147f6f4a50a162818f7d171c +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..2c4a3083f024c3737c1d96e47f6df934d22d0329 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00175/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 175 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..756596c9872e67e8b9db32e73e375a1985421f19 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f6337928af46d1cf4ae437e0aee07a4727437e442bf836bd51ad8c9eaa4b4f7 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..e70b285091463a9905945678afcd016b93331d04 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00200/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 200 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..a0e4f4ebd7e8686fd0e0ad0047dc620772734f19 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e634a7f4646b64d51b40328b9647525ba63738adfa757d25041e6fb52823a95 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..42089200fdd0983304e286943ac6aeaf9f993038 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00225/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 225 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..7ff75d2cdc3a61f001a6018ab9135c293b319a13 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97b72a20f1d9d138475f5ab92d6512fcbe56c77614b2a215f85775f0b3661a2b +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..43e6ccf7fad0b94ab5ee8951090939400f6b4ba7 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00250/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 250 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..4aaba4608394bbaab0cf65ee46e7f0599156f7a1 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7817ac1bf300ad6ee768ec5b49711e6a5d63bcba1f871ab1491dee7c415376ba +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..b7818d85407b9fead7435e8da96eea9fffd5190d --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00275/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 275 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..532d19ae7d0c9b3bc1facb7e4129f7738908991f --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f5eb6a37eae479fa844368795d724d08f5a5b0d3b8d4e2a843f741aca40286c +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..a9ca3490f4b484bac5f27ae92bcd519537f38461 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00300/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 300 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..9886f38838102cf9353ba0384846150a686fb736 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cacb08db0b2614096b2e113ecd0719aa6845011c4031438ccdfda5d835461418 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..d0f40aa52d897475ab75f36bfbbe74380866f872 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00325/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 325 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ce944c1844e12aa6ae32c06df35567c94fce3896 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3cab7ff6b7e575934a8c683213fb47259283b684931592712ad7c7df93e27d8 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..1e68af44a5d23a0a0e72ac82161294e6f50bcf0a --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00350/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 350 +} \ No newline at end of file diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1b9d67736885b1bcfdfdb5c9f6d18af5a477948c --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/config.json @@ -0,0 +1,29 @@ +{ + "architectures": [ + "LlamaForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": null, + "eos_token_id": null, + "head_dim": 64, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 5632, + "max_position_embeddings": 256, + "mlp_bias": false, + "model_type": "llama", + "num_attention_heads": 32, + "num_hidden_layers": 22, + "num_key_value_heads": 4, + "pretraining_tp": 1, + "rms_norm_eps": 1e-05, + "rope_scaling": null, + "rope_theta": 10000.0, + "tie_word_embeddings": false, + "torch_dtype": "float32", + "transformers_version": "4.53.0", + "use_cache": false, + "vocab_size": 4 +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/generation_config.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/generation_config.json new file mode 100644 index 0000000000000000000000000000000000000000..58c606250141146bd9fabea6b5140de5b09023e4 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/generation_config.json @@ -0,0 +1,5 @@ +{ + "_from_model_config": true, + "transformers_version": "4.53.0", + "use_cache": false +} diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/model.safetensors b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..dd72d685f26cfcfbb886d72bfe6619c565089e52 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9cd130a28bc672f896d723a4a6272dc118938ebdeda4d967a4015f5acc9d264 +size 1938008528 diff --git a/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/progattn.json b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/progattn.json new file mode 100644 index 0000000000000000000000000000000000000000..687700945d68a3e3ccfc0032196e37033f4a0ec7 --- /dev/null +++ b/automaton_newtables/checkpoints/auto_S16_newtables_tinyllama_random_fixedtask32_s0_early/steps/step_00375/progattn.json @@ -0,0 +1,401 @@ +{ + "experiment": "t5_automata_train", + "run": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "args": { + "S": 16, + "T_states": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "data_seed": 0, + "arch": "tinyllama", + "layers": null, + "heads": null, + "kv_heads": null, + "hidden": null, + "mlp": null, + "seed": 0, + "init": "random", + "assignments": "checkpoints/t8_heads/task32.json", + "select_from": null, + "frac": 0.0, + "head_mode": "program", + "reg_lambda": 1.0, + "reg_release": 0, + "fix_until": 0, + "reg_assignments": null, + "batch": 64, + "lr": 0.0002, + "min_lr": 1e-05, + "warmup": 1000, + "wd": 0.1, + "clip": 1.0, + "max_steps": 40000, + "min_steps": 1000, + "eval_every": 100, + "log_every": 20, + "patience": 20, + "tol": 0.002, + "decay_frac": 0.2, + "decay_min": 500, + "n_val": 512, + "n_attn": 32, + "save_every": 100000, + "snapshot_steps": "25:375:25", + "stop_at": 1000, + "resume": false, + "no_amp": false, + "device": "cuda", + "run_name": "auto_S16_newtables_tinyllama_random_fixedtask32_s0_early", + "ckpt_root": "checkpoints", + "out": null + }, + "task": { + "S": 16, + "T": 16, + "C": 4, + "n_rules": 0, + "rule_seed": 0, + "seq_len": 256, + "loss_floor": 0.08154672712469944 + }, + "arch": "tinyllama", + "model_config": { + "vocab_size": 4, + "max_position_embeddings": 256, + "hidden_size": 2048, + "intermediate_size": 5632, + "num_hidden_layers": 22, + "num_attention_heads": 32, + "num_key_value_heads": 4, + "hidden_act": "silu", + "initializer_range": 0.02, + "rms_norm_eps": 1e-05, + "pretraining_tp": 1, + "use_cache": false, + "rope_theta": 10000.0, + "rope_scaling": null, + "attention_bias": false, + "attention_dropout": 0.0, + "mlp_bias": false, + "head_dim": 64, + "return_dict": true, + "output_hidden_states": false, + "torchscript": false, + "torch_dtype": null, + "use_bfloat16": false, + "tf_legacy_loss": false, + "pruned_heads": {}, + "tie_word_embeddings": false, + "chunk_size_feed_forward": 0, + "is_encoder_decoder": false, + "is_decoder": false, + "cross_attention_hidden_size": null, + "add_cross_attention": false, + "tie_encoder_decoder": false, + "max_length": 20, + "min_length": 0, + "do_sample": false, + "early_stopping": false, + "num_beams": 1, + "num_beam_groups": 1, + "diversity_penalty": 0.0, + "temperature": 1.0, + "top_k": 50, + "top_p": 1.0, + "typical_p": 1.0, + "repetition_penalty": 1.0, + "length_penalty": 1.0, + "no_repeat_ngram_size": 0, + "encoder_no_repeat_ngram_size": 0, + "bad_words_ids": null, + "num_return_sequences": 1, + "output_scores": false, + "return_dict_in_generate": false, + "forced_bos_token_id": null, + "forced_eos_token_id": null, + "remove_invalid_values": false, + "exponential_decay_length_penalty": null, + "suppress_tokens": null, + "begin_suppress_tokens": null, + "architectures": null, + "finetuning_task": null, + "id2label": { + "0": "LABEL_0", + "1": "LABEL_1" + }, + "label2id": { + "LABEL_0": 0, + "LABEL_1": 1 + }, + "tokenizer_class": null, + "prefix": null, + "bos_token_id": null, + "pad_token_id": null, + "eos_token_id": null, + "sep_token_id": null, + "decoder_start_token_id": null, + "task_specific_params": null, + "problem_type": null, + "_name_or_path": "", + "transformers_version": "4.53.0", + "model_type": "llama", + "output_attentions": false + }, + "n_params": 968992768, + "init": "random", + "init_run": null, + "head_mode": "program", + "assignments": [ + { + "layer": 0, + "head": 14, + "program": "prev_token" + }, + { + "layer": 1, + "head": 0, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 1, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 2, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 5, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 6, + "program": "next_cell_prev_state_right" + }, + { + "layer": 1, + "head": 7, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 10, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 11, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 12, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 13, + "program": "next_cell_prev_state_left" + }, + { + "layer": 1, + "head": 14, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 15, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 17, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 19, + "program": "prev_token" + }, + { + "layer": 1, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 1, + "head": 26, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 27, + "program": "current_cell_window" + }, + { + "layer": 1, + "head": 28, + "program": "prev_token" + }, + { + "layer": 1, + "head": 30, + "program": "next_cell_prev_state_left" + }, + { + "layer": 6, + "head": 17, + "program": "prev_token" + }, + { + "layer": 6, + "head": 23, + "program": "prev_token" + }, + { + "layer": 6, + "head": 31, + "program": "next_cell_prev_state_left" + }, + { + "layer": 7, + "head": 9, + "program": "next_cell_prev_state_right" + }, + { + "layer": 7, + "head": 12, + "program": "next_cell_prev_state" + }, + { + "layer": 7, + "head": 28, + "program": "next_cell_prev_state_left" + }, + { + "layer": 8, + "head": 8, + "program": "next_cell_prev_state_right" + }, + { + "layer": 8, + "head": 16, + "program": "current_cell_window" + }, + { + "layer": 8, + "head": 22, + "program": "next_cell_prev_state" + }, + { + "layer": 8, + "head": 31, + "program": "prev_token" + }, + { + "layer": 12, + "head": 9, + "program": "prev_token" + }, + { + "layer": 12, + "head": 27, + "program": "prev_token" + } + ], + "selection": { + "source": "checkpoints/t8_heads/task32.json", + "heads_selected": 32 + }, + "oracle": { + "pool": { + "nll": 0.39469465373428747, + "acc": 0.7152879901960785, + "nll_per_state": [ + 1.3862943611198906, + 1.2382221484758593, + 0.9309088477197898, + 0.6828244320213328, + 0.5012455929732808, + 0.372803525091201, + 0.2785449851566577, + 0.21034715464746384, + 0.17768665517283752, + 0.14130319720887555, + 0.11879622088698281, + 0.09848917458151565, + 0.07665909980313848, + 0.05872120889997583, + 0.05922888505761251, + 0.04501395264378551 + ], + "acc_per_state": [ + 0.0, + 0.1068115234375, + 0.3284912109375, + 0.5074462890625, + 0.638427734375, + 0.7310791015625, + 0.799072265625, + 0.8482666015625, + 0.871826171875, + 0.8980712890625, + 0.914306640625, + 0.928955078125, + 0.9447021484375, + 0.9576416015625, + 0.957275390625, + 0.967529296875 + ] + }, + "fresh": { + "nll": 0.39580955039419546, + "acc": 0.714483762254902, + "nll_per_state": [ + 1.3862943611198906, + 1.235514542301797, + 0.9297242700186376, + 0.6882396443694574, + 0.507168481479042, + 0.36214232578083083, + 0.2775296328413843, + 0.23691554023045003, + 0.18597869908090325, + 0.13453418177371984, + 0.10830424696249144, + 0.09002790528757101, + 0.0808897344501108, + 0.06955163359622497, + 0.05364444732360905, + 0.04839846036136337 + ], + "acc_per_state": [ + 0.0, + 0.1087646484375, + 0.329345703125, + 0.5035400390625, + 0.6341552734375, + 0.73876953125, + 0.7998046875, + 0.8291015625, + 0.8658447265625, + 0.9029541015625, + 0.921875, + 0.93505859375, + 0.941650390625, + 0.9498291015625, + 0.9613037109375, + 0.965087890625 + ] + } + }, + "reg_assignments": [], + "repo_rev": "e253cb6be483602f95303ba0b366f8d01614329d+dirty", + "upstream_rev": "2766415790a22fe38fb5b1dcfec66136f163275c+dirty", + "step": 375 +} \ No newline at end of file