nicholasKluge commited on
Commit
46873d7
·
verified ·
1 Parent(s): 0ffd80a

Create config_stage_2.yaml

Browse files
Files changed (1) hide show
  1. config_stage_2.yaml +104 -0
config_stage_2.yaml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Directory settings
2
+ checkpoint_dir: "/lustre/scratch/data/polyglot_datasets/bengali/checkpoints/models/LilTii/v2"
3
+ train_dataset_dir:
4
+ # Total: ~102B
5
+ # Bengali Text (~40B)
6
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_1" # 5.8B (ben)
7
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_2" # 8.6B (ben)
8
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_3" # 4.2B (ben)
9
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_4" # 1.5B (ben)
10
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_5" # 5.5M (ben)
11
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_1" # 5.8B (ben)
12
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_2" # 8.6B (ben)
13
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_3" # 4.2B (ben)
14
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_4" # 1.5B (ben)
15
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/edu_score_5" # 5.5M (ben)
16
+ # Synth (~24B)
17
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/cosmopedia/full" # 24.B (eng)
18
+ # Edu English Text (~14B)
19
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/fineweb_edu/edu_score_4" # 14.B (eng)
20
+ # Reasoning (~14.6B)
21
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/math_meta_reasoning_filtered" # 1.2B (eng)
22
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/math_meta_reasoning_filtered" # 1.2B (eng)
23
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/nvidia_openscience" # 9.8B (eng)
24
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/big_reasoning_traces" # 2.4B (eng)
25
+ # Edu Math Text (~9.5B)
26
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/finemath_34b/edu_score_4" # 8.5B (eng)
27
+ - "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/finemath_34b/edu_score_5" # 1.0B (eng)
28
+ val_dataset_dir: "/lustre/scratch/data/polyglot_datasets/bengali/tokenized/validation_split"
29
+ dataset_type: "parquet"
30
+ cache_dir: "/lustre/mlnvme/data/polyglot/.cache"
31
+
32
+ # Data loading settings
33
+ pin_memory: true
34
+ num_workers_for_dataloader: 32
35
+ shuffle_dataset: true
36
+
37
+ # Model architecture settings
38
+ vocab_size: 49152
39
+ num_hidden_layers: 28
40
+ num_attention_heads: 16
41
+ num_key_value_heads: 8
42
+ head_dim: null
43
+ hidden_size: 1536
44
+ intermediate_size: 3072
45
+ max_position_embeddings: 4096
46
+ tie_word_embeddings: true
47
+ hidden_act: "silu"
48
+ output_hidden_states: false
49
+ attn_implementation: "flash_attention_2"
50
+ use_cache: false
51
+ no_rope_layer_interval: null
52
+ rope_theta: 50000.0
53
+ rope_scale_factor: null
54
+ rms_norm_eps: 0.000001
55
+
56
+ # Training settings
57
+ total_batch_size: 2097152
58
+ micro_batch_size: 16
59
+ eval_micro_batch_size: 8
60
+ num_train_epochs: 1
61
+ warmup_steps: 0
62
+ max_learning_rate: 0.0007
63
+ min_learning_rate: 0.0
64
+ weight_decay: 0.1
65
+ beta1: 0.9
66
+ beta2: 0.95
67
+ eps: 0.00000001
68
+ lr_decay_type: "wsd"
69
+ lr_decay_iters_coef: 0.0
70
+ seed: 1337
71
+ max_steps: 47500
72
+ max_grad_norm: 1.0
73
+
74
+ # Precision and optimization settings
75
+ torch_compile: false
76
+ mat_mul_precision: "highest"
77
+ tf32: true
78
+ bf16: true
79
+ gradient_checkpointing: false
80
+ use_liger_kernel: true
81
+ static_graph: false
82
+
83
+ # Hub settings
84
+ push_to_hub: false
85
+ hub_token: null
86
+ hub_model_id: null
87
+
88
+ # Tokenizer and Reference model
89
+ tokenizer_name_or_path: "Polygl0t/LilTii-v0.2"
90
+ reference_model: "HuggingFaceTB/SmolLM2-360M"
91
+
92
+ # Checkpoint settings
93
+ resume_from_checkpoint: "/lustre/scratch/data/polyglot_datasets/bengali/checkpoints/models/LilTii/v2/Warmup-Stable"
94
+ checkpointing_steps: 2500
95
+ begin_new_stage: true
96
+ stage_name: "Stable2"
97
+
98
+ # Miscellaneous settings
99
+ sanity_check: false
100
+ sanity_check_num_samples: 100000
101
+ wandb_token: null
102
+ wandb_id: "LilTii-v0.2"
103
+ wandb_project: "Polyglot"
104
+ wandb_desc: "Developing LLMs for low-resource languages"