-
Notifications
You must be signed in to change notification settings - Fork 1k
/
stablelm-3b-4e1t.yml
executable file
·133 lines (115 loc) · 2.89 KB
/
stablelm-3b-4e1t.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
# parallelism settings
"pipe-parallel-size": 1,
"model-parallel-size": 1,
# model settings
"num-layers": 32,
"hidden-size": 2560,
"num-attention-heads": 32,
"seq-length": 4096,
"max-position-embeddings": 4096,
# architecture design
"attention_head_type": "multihead",
"norm": "layernorm",
"pos-emb": "rotary",
"rotary_pct": 0.25,
"rotary_interleaved": false,
"mlp_multiple_of": 256,
"mlp_type": "gated",
"activation": "silu",
"no-weight-tying": true,
"gpt_j_residual": false,
"gpt_j_tied": false,
"output_layer_parallelism": "column",
# init methods
"output_layer_init_method": "scaled_normal",
# biases
"use_bias_in_norms": true,
"use_bias_in_attn_linear": false,
"use_bias_in_mlp": false,
# fused ops
"attention-config": [[["flash"], 32]],
# optimizer settings
"optimizer": {
"type": "Adam",
"params": {
"lr": 3.2e-4,
"betas": [0.9, 0.95],
"eps": 1.0e-6
},
},
"min_lr": 1.28e-5, # Decay to 4% of lr
# 955_000 iters ~= 4.0T tokens at bs=4M
"train-iters": 955_000,
"lr-decay-iters": 955_000,
"lr-decay-style": "cosine",
"warmup": 0.005, # ~5k warmup steps
# ZeRO settings
"zero_optimization": {
"stage": 1,
"allgather_partitions": true,
"allgather_bucket_size": 1260000000,
"overlap_comm": true,
"reduce_scatter": true,
"reduce_bucket_size": 1260000000,
"contiguous_gradients": true,
"cpu_offload": false,
},
# batch / data settings
"train_micro_batch_size_per_gpu": 4,
"gradient_accumulation_steps": 1,
"data-impl": "mmap",
"eval-interval": 5_000,
"eval-iters": 10,
"eval_batch_size": 8,
"eval_tasks": [],
# activation checkpointing
"checkpoint-activations": true,
"checkpoint-num-layers": 1,
"partition-activations": true,
"synchronize-each-layer": true,
# regularization
"gradient_clipping": 1.0,
"weight-decay": 0.1,
"hidden-dropout": 0,
"attention-dropout": 0,
# precision settings
"bf16": { "enabled": true },
"precision": "bfloat16",
"full_precision_lm_cross_entropy": true,
# misc. training settings
"num-workers": 2,
"distributed-backend": "nccl",
# checkpoint settings
"checkpoint-factor": 2_000,
"s3_sync_interval": 10_000,
"extra-save-iters": [0],
"save": "",
"load": "",
"s3_path": "",
# data path settings
"train-data-paths": [],
"train-data-weights": [],
"valid-data-paths": [],
"valid-data-weights": [],
"test-data-paths": [],
"test-data-weights": [],
# tokenizer settings
"tokenizer-type": "HFTokenizer",
"vocab-file": "neox-tokenizer-vocab.json",
# log settings
"log-interval": 10,
"steps_per_print": 10,
"wall_clock_breakdown": true,
"use_wandb": true,
"wandb_host": "",
"wandb_team": "",
"wandb_project": "",
"wandb_group": "",
"wandb_name": "",
# "wandb_id": "",
# "wandb_resume": "",
# multi-node launcher
"launcher": "slurm",
"deepspeed_slurm": true,
}