thefinalboss commited on
Commit
a1bcfe7
·
verified ·
1 Parent(s): d250544

Upload configs/350m_fast.yaml

Browse files
Files changed (1) hide show
  1. configs/350m_fast.yaml +49 -0
configs/350m_fast.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CogNet 350M — Fast iteration config (smaller model for rapid prototyping)
2
+ model_size: "350m"
3
+ vocab_size: 32000
4
+ max_seq_len: 4096
5
+ dropout: 0.0
6
+ use_gradient_checkpointing: false # Not needed for 350M
7
+
8
+ # Data
9
+ dataset_paths:
10
+ - "wikimedia/wikipedia"
11
+ - "bigcode/the-stack"
12
+ dataset_splits:
13
+ - "train"
14
+ - "train"
15
+ data_cache_dir: "./data_cache"
16
+ max_tokens: 10000000000 # 10B tokens
17
+ preprocessing_num_workers: 8
18
+
19
+ # Training
20
+ batch_size: 8
21
+ gradient_accumulation_steps: 4
22
+ max_lr: 5.0e-4
23
+ min_lr: 5.0e-5
24
+ warmup_steps: 500
25
+ max_steps: 50000
26
+ weight_decay: 0.1
27
+ beta1: 0.9
28
+ beta2: 0.95
29
+ grad_clip: 1.0
30
+
31
+ # Precision
32
+ dtype: "bfloat16"
33
+
34
+ # Distributed
35
+ use_fsdp: true
36
+ compile_model: true
37
+
38
+ # Checkpointing
39
+ checkpoint_dir: "./checkpoints"
40
+ save_interval: 2000
41
+ eval_interval: 500
42
+ log_interval: 5
43
+ async_checkpoint: true
44
+
45
+ # Generation
46
+ gen_interval: 1000
47
+ gen_max_tokens: 64
48
+ gen_temperature: 0.8
49
+ gen_top_k: 40