asher577 commited on
Commit
16f7867
·
verified ·
1 Parent(s): c5de8b9

Upload training_config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. training_config.yaml +113 -0
training_config.yaml ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ n_layer: 2
3
+ d_model: 3072
4
+ n_ctx: 512
5
+ d_head: 16
6
+ d_mlp: 12288
7
+ vocab_size: 4096
8
+ use_rms_norm: true
9
+ tie_embeddings: false
10
+ use_positional_embeddings: false
11
+ use_bigram_table: false
12
+ use_attention_sinks: true
13
+ activation: gelu
14
+ dropout: 0.0
15
+ use_bias: true
16
+ use_flash_attention: true
17
+ sparsity:
18
+ enable_weight_sparsity: true
19
+ target_l0_fraction: 0.005
20
+ sparsity_anneal_start_fraction: 0.01
21
+ sparsity_anneal_end_fraction: 0.33
22
+ anneal_type: linear
23
+ min_weights_per_neuron: 4
24
+ enable_activation_sparsity: true
25
+ activation_topk_fraction: 0.2
26
+ activation_sparsity_locations: attn_q,attn_k,attn_v,attn_out,mlp_neuron,mlp_out
27
+ activation_topk_mode: per_token
28
+ mlp_neuron_pre_activation: true
29
+ activation_topk_annealing: linear
30
+ activation_topk_anneal_start_fraction: 0.01
31
+ activation_topk_anneal_end_fraction: 0.33
32
+ optimizer:
33
+ optimizer_type: adamw
34
+ learning_rate: 0.001
35
+ beta1: 0.9
36
+ beta2: 0.95
37
+ weight_decay: 0.001
38
+ eps: 0.1
39
+ enable_grad_clip: true
40
+ grad_clip_rms: 1.0
41
+ warmup_fraction: 0.01
42
+ enable_lr_decay: true
43
+ min_lr_fraction: 0.0
44
+ lr_decay_start_fraction: 0.8
45
+ lr_decay_end_fraction: 1.0
46
+ use_sharkfin_schedule: true
47
+ training:
48
+ dataset_name: jacobcd52/simplestories-tokenized
49
+ dataset_split: train
50
+ text_column: story
51
+ tokenizer_name: SimpleStories/SimpleStories-1.25M
52
+ total_tokens: 1000000000
53
+ batch_size: 32
54
+ gradient_accumulation_steps: 1
55
+ mixed_precision: bf16
56
+ checkpoint_dir: checkpoints/ablation_pretraining/pgd_d3072
57
+ checkpoint_every_n_steps: 0
58
+ keep_n_checkpoints: 0
59
+ log_every_n_steps: 10
60
+ log_gradients_every_n_steps: 100
61
+ log_weights_every_n_steps: 100
62
+ log_sparsity_every_n_steps: 100
63
+ eval_every_n_steps: 100
64
+ val_split: test
65
+ val_holdout_fraction: 0.01
66
+ val_max_batches: 20
67
+ wandb_project: nodesparse_adv_pretraining
68
+ wandb_run_name: thirds_reallyhighbeta_otherlosses
69
+ wandb_entity: null
70
+ use_wandb: true
71
+ seed: 0
72
+ hf_repo: asher577/thirds_reallyhighbeta_otherlosses
73
+ num_workers: 8
74
+ resume_from_checkpoint: null
75
+ use_torch_compile: false
76
+ torch_compile_mode: default
77
+ torch_compile_backend: inductor
78
+ ablation:
79
+ ci_fn_type: global_reverse_residual
80
+ d_resid_ci_fn: 1024
81
+ reader_hidden_dims: 1024,1024
82
+ use_attn_transitions: false
83
+ attn_n_heads: 4
84
+ attn_max_len: 2048
85
+ ci_targets: attn_q,attn_k,attn_v,attn_out,mlp_pre,mlp_out
86
+ ablation_mode: pgd
87
+ stochastic_n_bins: 10
88
+ pgd_init: random
89
+ pgd_lr: 0.4
90
+ pgd_n_steps: 1
91
+ pgd_use_sign_grad: true
92
+ pgd_outer_lr: 0.0
93
+ pgd_mode: batch
94
+ adversarial_loss_frac: 0.5
95
+ stochastic_loss_frac: 0.0
96
+ ci_loss_frac: 0.25
97
+ unmasked_loss_frac: 0.25
98
+ minimality_coeff: 6.0e-06
99
+ minimality_coeff_final_frac: 1.0
100
+ minimality_coeff_annealing: true
101
+ minimality_coeff_anneal_start_frac: 0.5
102
+ minimality_coeff_anneal_end_frac: 0.8
103
+ minimality_coeff_anneal_type: linear
104
+ minimality_pnorm: 2.0
105
+ minimality_eps: 5.0e-07
106
+ minimality_beta: 2.8
107
+ minimality_p_anneal_start_frac: 0.5
108
+ minimality_p_anneal_final_p: 0.4
109
+ minimality_p_anneal_end_frac: 0.8
110
+ initial_ci: 1.0
111
+ minimality_warmup_frac: 0.02
112
+ ci_thresholding: 0.0
113
+ ci_learning_rate: null