iskhare commited on
Commit
2ef6595
·
verified ·
1 Parent(s): 67208e8

Upload ablation-ncp-sq8 ncp config

Browse files
sq8/baseline-50k/ncp/training-config.yaml ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AUTO-GENERATED by scripts/ablation_sweep/make_nlevels_configs.py
2
+ # Number-of-levels ablation. The ladder is the repo squared-16 sqrt-space
3
+ # curve resampled to N points with monotonicity enforced in sqrt space, so
4
+ # every level stays a perfect square and N=16 reproduces squared-16 exactly.
5
+ # Level count touches FOUR fields: manual_levels, vqvae_vocab_size (both
6
+ # copies) and model.vocab_size -- all must have exactly N entries.
7
+ task: next-concept
8
+ experiment: ablation-ncp-sq8
9
+ experiment_dir: /workspace/ncm/runs/ablation-ncp-sq8/ncp
10
+ model:
11
+ n_layer: 16
12
+ n_head: 16
13
+ bias: true
14
+ dropout: 0.1
15
+ n_embd: 1024
16
+ context_length: 1024
17
+ vocab_size:
18
+ - 16384
19
+ - 16384
20
+ - 16384
21
+ - 16384
22
+ - 16384
23
+ - 16384
24
+ - 16384
25
+ - 16384
26
+ attn_pattern: block_diagonal
27
+ use_positional_encoding: true
28
+ use_level_encoding: true
29
+ prefix_len: 0
30
+ use_rope: true
31
+ rope_base: 100000
32
+ use_qk_norm: true
33
+ post_upsample_conv:
34
+ enabled: false
35
+ kernel_size: 3
36
+ use_relu2: true
37
+ use_flex_attention: true
38
+ shared_output_head: true
39
+ shared_head_mlp: false
40
+ shared_head_mlp_mult: 2.0
41
+ shared_head_mlp_residual: true
42
+ shared_head_mlp_blocks: 2
43
+ n_kv_heads: 4
44
+ mlp_ratio: 3.5
45
+ in_vocab_size: 50304
46
+ predict_level0: true
47
+ bos_token_id: 50256
48
+ tokenizer:
49
+ pre_tokenizer:
50
+ name: hf
51
+ tokenizer: hf
52
+ model_id: gpt2
53
+ special_tokens:
54
+ eos_token: <|endoftext|>
55
+ vqvae:
56
+ n_layers: 6
57
+ vqvae_vocab_size:
58
+ - 16384
59
+ - 16384
60
+ - 16384
61
+ - 16384
62
+ - 16384
63
+ - 16384
64
+ - 16384
65
+ - 16384
66
+ embed_dim: 384
67
+ compression_factor: 1
68
+ in_vocab_size: 50304
69
+ context_length: 1024
70
+ checkpoint_path: ncm/runs/ablation-vqvae-sq8/vqvae/checkpoint-iter-50000.pt
71
+ vector_quantizer_config:
72
+ clss: multiscale_residual_vector_quantizer
73
+ decay: 0.99
74
+ epsilon: 1.0e-05
75
+ commitment_cost: 0.25
76
+ learned_l1_sampling: true
77
+ learned_l1_cascade: true
78
+ learned_l1_cascade_base: 4
79
+ learned_all_sampling: false
80
+ quant_resi:
81
+ enabled: true
82
+ ratio: 0.5
83
+ share_mode: 0
84
+ learnable_ratio: false
85
+ levels:
86
+ use_manual_levels: true
87
+ manual_levels:
88
+ - 1
89
+ - 9
90
+ - 36
91
+ - 100
92
+ - 196
93
+ - 324
94
+ - 625
95
+ - 1024
96
+ aux:
97
+ fine_drop:
98
+ prob: 0.5
99
+ min_keep: 1
100
+ dropout: 0.2
101
+ pre_quant_groupnorm: 4
102
+ pre_quant_dropout: null
103
+ dataset:
104
+ train_source: data/full_owt/train_gpt2.bin
105
+ validate_source: data/full_owt/valid_gpt2.bin
106
+ wandb:
107
+ project: ncp-colm
108
+ group: ablation-ncp-sq8
109
+ enable: false
110
+ resume: null
111
+ gradients_and_params:
112
+ enable: false
113
+ log: all
114
+ log_freq: 1000
115
+ optimization:
116
+ level_loss_alpha: 0.25
117
+ lr: 0.0005
118
+ reset_lr: false
119
+ warmup_iters: 300
120
+ lr_decay_iters: null
121
+ min_lr: 1.0e-05
122
+ beta_1: 0.9
123
+ beta_2: 0.99
124
+ weight_decay: 0.01
125
+ max_grad_norm: 1.0
126
+ grad_accumulation_steps: 8
127
+ corruption:
128
+ mode: none
129
+ training:
130
+ seed: 55
131
+ log_interval: 10
132
+ eval_interval: 1000
133
+ checkpoint_interval: 1000
134
+ val_iters: 100
135
+ total_iters: null
136
+ tqdm_interval: 10
137
+ n_epochs: 3
138
+ batch_size: 8
139
+ eval_batch_size: 16
140
+ demo_batch_size: 4
141
+ stop_after_iters: 5000
142
+ keep_last: 100
143
+ torch_compile:
144
+ enable: true
145
+ mode: default
146
+ dynamic: false
147
+ fullgraph: false
148
+ backend: inductor
149
+ mixed_precision:
150
+ enable: true