Upload 13B.yml
Browse files
13B.yml
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# GPT-2 pretraining setup
|
2 |
+
{
|
3 |
+
# parallelism settings ( you will want to change these based on your cluster setup, ideally scheduling pipeline stages
|
4 |
+
# across the node boundaries )
|
5 |
+
"pipe-parallel-size": 1,
|
6 |
+
"model-parallel-size": 4,
|
7 |
+
|
8 |
+
# model settings
|
9 |
+
"num-layers": 36,
|
10 |
+
"hidden-size": 5120,
|
11 |
+
"num-attention-heads": 40,
|
12 |
+
"seq-length": 2048,
|
13 |
+
"max-position-embeddings": 2048,
|
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 |
+
# these should provide some speedup but takes a while to build, set to true if desired
|
22 |
+
"scaled-upper-triang-masked-softmax-fusion": true,
|
23 |
+
"bias-gelu-fusion": true,
|
24 |
+
|
25 |
+
# optimizer settings
|
26 |
+
"optimizer": {
|
27 |
+
"type": "Adam",
|
28 |
+
"params": {
|
29 |
+
"lr": 0.00012,
|
30 |
+
"betas": [0.9, 0.95],
|
31 |
+
"eps": 1.0e-8,
|
32 |
+
}
|
33 |
+
},
|
34 |
+
"zero_optimization": {
|
35 |
+
"stage": 1,
|
36 |
+
"allgather_partitions": True,
|
37 |
+
"allgather_bucket_size": 1260000000,
|
38 |
+
"overlap_comm": True,
|
39 |
+
"reduce_scatter": True,
|
40 |
+
"reduce_bucket_size": 1260000000,
|
41 |
+
"contiguous_gradients": True,
|
42 |
+
"cpu_offload": False
|
43 |
+
},
|
44 |
+
|
45 |
+
# batch / data settings
|
46 |
+
"train_micro_batch_size_per_gpu": 8,
|
47 |
+
"gradient_accumulation_steps": 2,
|
48 |
+
"data-impl": "mmap",
|
49 |
+
|
50 |
+
# activation checkpointing
|
51 |
+
"checkpoint-activations": true,
|
52 |
+
"checkpoint-num-layers": 1,
|
53 |
+
"partition-activations": true,
|
54 |
+
"synchronize-each-layer": true,
|
55 |
+
|
56 |
+
# regularization
|
57 |
+
"gradient_clipping": 1.0,
|
58 |
+
"weight-decay": 0.1,
|
59 |
+
"hidden-dropout": 0,
|
60 |
+
"attention-dropout": 0,
|
61 |
+
|
62 |
+
# precision settings
|
63 |
+
"fp16": {
|
64 |
+
"fp16": true,
|
65 |
+
"enabled": true,
|
66 |
+
"loss_scale": 0,
|
67 |
+
"loss_scale_window": 1000,
|
68 |
+
"initial_scale_power": 12,
|
69 |
+
"hysteresis": 2,
|
70 |
+
"min_loss_scale": 1
|
71 |
+
},
|
72 |
+
|
73 |
+
# misc. training settings
|
74 |
+
"train-iters": 143000,
|
75 |
+
"lr-decay-iters": 143000,
|
76 |
+
"distributed-backend": "nccl",
|
77 |
+
"lr-decay-style": "cosine",
|
78 |
+
"warmup": 0.01,
|
79 |
+
"save-interval": 1000,
|
80 |
+
"eval-interval": 1000,
|
81 |
+
"eval-iters": 10,
|
82 |
+
|
83 |
+
# logging
|
84 |
+
"log-interval": 10,
|
85 |
+
"steps_per_print": 10,
|
86 |
+
"wall_clock_breakdown": true,
|
87 |
+
|
88 |
+
"use_wandb": True,
|
89 |
+
"wandb_host": "https://api.wandb.ai",
|
90 |
+
|
91 |
+
# Data paths and options when using EleutherAI cluster
|
92 |
+
"train-data-paths": ["/fsx/pile_deduped/pile_0.87_deduped_text_document"],
|
93 |
+
"valid-data-paths": ["/fsx/pile_deduped/pile_0.87_deduped_text_document"],
|
94 |
+
"test-data-paths": ["/fsx/pile_deduped/pile_0.87_deduped_text_document"],
|
95 |
+
|
96 |
+
"tokenizer_type": "HFTokenizer",
|
97 |
+
"vocab-file": "/fsx/pile/20B_tokenizer.json",
|
98 |
+
|
99 |
+
"save": "/fsx/shiv/gpt-neox-old/runs/checkpoints/pythia/13B_deduped_new/",
|
100 |
+
"load": "/fsx/shiv/gpt-neox-old/runs/checkpoints/pythia/13B_deduped_new/",
|
101 |
+
"tensorboard-dir": "/fsx/shiv/gpt-neox-old/runs/tensorboard",
|
102 |
+
"log-dir": "/fsx/shiv/gpt-neox-old/runs/logs",
|
103 |
+
|
104 |
+
"wandb_team": "eleutherai",
|
105 |
+
"wandb_project": "pythia",
|
106 |
+
"wandb_group": "13B dedupe",
|
107 |
+
"launcher": "openmpi",
|
108 |
+
"deepspeed_mpi": true
|
109 |
+
}
|