Upload training_config.yaml with huggingface_hub
Browse files- training_config.yaml +118 -0
training_config.yaml
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.05
|
| 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: mc_6e-8_beta_370
|
| 69 |
+
wandb_entity: null
|
| 70 |
+
use_wandb: true
|
| 71 |
+
seed: 0
|
| 72 |
+
hf_repo: asher577/thirds_mc_6e-8_beta_370
|
| 73 |
+
num_workers: 2
|
| 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 |
+
pgd_loss_frac: 0.5
|
| 87 |
+
stochastic_loss_frac: 0.16
|
| 88 |
+
ci_loss_frac: 0.17
|
| 89 |
+
unmasked_loss_frac: 0.17
|
| 90 |
+
pgd_init: random
|
| 91 |
+
pgd_lr: 0.4
|
| 92 |
+
pgd_n_steps: 1
|
| 93 |
+
pgd_use_sign_grad: true
|
| 94 |
+
pgd_outer_lr: 0.0
|
| 95 |
+
pgd_mode: batch
|
| 96 |
+
minimality_coeff: 6.0e-08
|
| 97 |
+
minimality_coeff_final_frac: 1.0
|
| 98 |
+
minimality_coeff_annealing: true
|
| 99 |
+
minimality_coeff_anneal_start_frac: 0.5
|
| 100 |
+
minimality_coeff_anneal_end_frac: 0.8
|
| 101 |
+
minimality_coeff_anneal_type: linear
|
| 102 |
+
minimality_pnorm: 2.0
|
| 103 |
+
minimality_eps: 1.0e-12
|
| 104 |
+
minimality_beta: 370
|
| 105 |
+
minimality_p_anneal_start_frac: 0.5
|
| 106 |
+
minimality_p_anneal_final_p: 0.4
|
| 107 |
+
minimality_p_anneal_end_frac: 0.8
|
| 108 |
+
minimality_beta_pnorm: 2.0
|
| 109 |
+
minimality_beta_p_anneal_start_frac: 0.5
|
| 110 |
+
minimality_beta_p_anneal_final_p: 0.4
|
| 111 |
+
minimality_beta_p_anneal_end_frac: 0.8
|
| 112 |
+
initial_ci: 1.0
|
| 113 |
+
minimality_warmup_frac: 0.02
|
| 114 |
+
ci_thresholding: 0.0
|
| 115 |
+
binarization_coeff: 0.0
|
| 116 |
+
binarization_anneal_start_frac: 0.8
|
| 117 |
+
binarization_anneal_end_frac: 1.0
|
| 118 |
+
ci_learning_rate: null
|