Views
No views yet
1{
2 # 8 Nodes 8xA100 40GB
3 "eval_batch_size": 2,
4
5 "pipe-parallel-size": 1,
6 "model-parallel-size": 1,
7
8 "num-layers": 32,
9 "hidden-size": 2560,
10 "num-attention-heads": 32,
11 "seq-length": 4096,
12 "max-position-embeddings": 4096,
13
14 "norm": "layernorm",
15 "pos-emb": "rotary",
16 "rotary-pct": 0.25,
17 "no-weight-tying": true,
18 "gpt-j-residual": true,
19 "output-layer-parallelism": "column",
20
21 "init_method": "small_init",
22 "output_layer_init_method": "wang_init",
23
24 "attention-config": [[["flash"], 32]],
25 "scaled-upper-triang-masked-softmax-fusion": true,
26 "bias-gelu-fusion": true,
27
28 "optimizer": {
29 "type": "Adam",
30 "params": {
31 "lr": 1.6e-5,
32 "betas": [0.9, 0.95],
33 "eps": 1.0e-08
34 },
35 },
36 "min_lr": 8.0e-06,
37
38 "zero_optimization":{
39 "stage": 1,
40 "allgather_partitions": true,
41 "allgather_bucket_size": 500000000,
42 "overlap_comm": true,
43 "reduce_scatter": true,
44 "reduce_bucket_size": 500000000,
45 "contiguous_gradients": true,
46 "cpu_offload": false,
47 },
48 "train_micro_batch_size_per_gpu": 4,
49 "gradient-accumulation-steps": 4,
50 "data-impl": "mmap",
51
52 "checkpoint-activations": true,
53 "checkpoint-num-layers": 1,
54 "partition-activations": true,
55 "synchronize-each-layer": true,
56
57 "gradient_clipping": 1.0,
58 "weight-decay": 0.1,
59 "hidden-dropout": 0,
60 "attention-dropout": 0,
61
62 "fp16": {
63 "fp16": true,
64 "enabled": true,
65 "loss_scale": 0,
66 "loss_scale_window": 1000,
67 "initial_scale_power": 12,
68 "hysteresis": 2,
69 "min_loss_scale": 1,
70 },
71
72 "train-iters": 318000,
73 "lr-decay-iters": 318000,
74 "distributed-backend": "nccl",
75 "lr-decay-style": "cosine",
76 "warmup": 0.01,
77 "checkpoint-factor": 500,
78 "eval-interval": 50000,
79 "eval-iters": 10,
80 "extra-save-iters": [0, 512, 152001],
81
82 "train-data-paths": ["pile_0.87_deduped_text_document"],
83 "valid-data-paths": ["pile_0.87_deduped_text_document"],
84 "test-data-paths": ["pile_0.87_deduped_text_document"],
85
86 "tokenizer_type": "HFTokenizer",
87 "vocab-file": "20B_tokenizer.json",
88
89 "log-interval": 10,
90 "steps_per_print": 10,
91 "wall_clock_breakdown": true,
92 "log-grad-norm": true,
93
94 "launcher": "slurm",
95 "deepspeed_slurm": true,
96}