iskhare commited on
Commit
144729c
·
verified ·
1 Parent(s): afec7b3

backup: sq8/baseline-50k/vqvae/training-config.yaml

Browse files
sq8/baseline-50k/vqvae/training-config.yaml ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: summarization
8
+ experiment: ablation-vqvae-sq8
9
+ experiment_dir: /workspace/ncm/runs/ablation-vqvae-sq8/vqvae
10
+ training:
11
+ seed: 42
12
+ log_interval: 10
13
+ eval_interval: 1000
14
+ checkpoint_interval: 5000
15
+ val_iters: 100
16
+ n_epochs: 3
17
+ total_iters: null
18
+ tqdm_interval: 10
19
+ batch_size: 64
20
+ eval_batch_size: 16
21
+ demo_batch_size: 4
22
+ stop_after_iters: 50000
23
+ model:
24
+ n_layers: 6
25
+ context_length: 1024
26
+ embed_dim: 384
27
+ in_vocab_size: 50304
28
+ vqvae_vocab_size:
29
+ - 16384
30
+ - 16384
31
+ - 16384
32
+ - 16384
33
+ - 16384
34
+ - 16384
35
+ - 16384
36
+ - 16384
37
+ compression_factor: 1
38
+ dropout: 0.2
39
+ pre_quant_groupnorm: 4
40
+ vector_quantizer:
41
+ clss: multiscale_residual_vector_quantizer
42
+ decay: 0.99
43
+ epsilon: 1.0e-05
44
+ commitment_cost: 0.25
45
+ learned_l1_sampling: true
46
+ learned_l1_cascade: true
47
+ learned_l1_cascade_base: 4
48
+ learned_all_sampling: false
49
+ quant_resi:
50
+ enabled: true
51
+ ratio: 0.5
52
+ share_mode: 0
53
+ learnable_ratio: false
54
+ levels:
55
+ use_manual_levels: true
56
+ manual_levels:
57
+ - 1
58
+ - 9
59
+ - 36
60
+ - 100
61
+ - 196
62
+ - 324
63
+ - 625
64
+ - 1024
65
+ aux:
66
+ fine_drop:
67
+ prob: 0.5
68
+ min_keep: 1
69
+ wandb:
70
+ project: ncp-release
71
+ enable: false
72
+ group: ablation-vqvae-sq8
73
+ resume: null
74
+ gradients_and_params:
75
+ enable: false
76
+ log: all
77
+ log_freq: 1000
78
+ optimization:
79
+ lr: 0.0003
80
+ lr_decay_iters: null
81
+ min_lr: null
82
+ beta_1: 0.9
83
+ beta_2: 0.99
84
+ weight_decay: 0.01
85
+ max_grad_norm: 1.0
86
+ grad_accumulation_steps: 1
87
+ torch_compile:
88
+ enable: true
89
+ mode: default
90
+ dynamic: false
91
+ fullgraph: false
92
+ backend: inductor
93
+ mixed_precision:
94
+ enable: true
95
+ opt_level: O1
96
+ loss_scale: dynamic
97
+ dataset:
98
+ train_source: data/full_owt/train_gpt2.bin
99
+ validate_source: data/full_owt/valid_gpt2.bin
100
+ pre_tokenizer:
101
+ name: hf
102
+ tokenizer: hf
103
+ model_id: gpt2
104
+ special_tokens:
105
+ eos_token: <|endoftext|>