Skip to content

Commit

Permalink
[Bug] Make Configs Consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
austinburnett committed May 9, 2023
1 parent b608043 commit 9900071
Show file tree
Hide file tree
Showing 34 changed files with 876 additions and 874 deletions.
56 changes: 28 additions & 28 deletions configs/1-3B.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
{
# parallelism settings ( you will want to change these based on your cluster setup, ideally scheduling pipeline stages
# across the node boundaries )
"pipe-parallel-size": 1,
"model-parallel-size": 1,
"pipe_parallel_size": 1,
"model_parallel_size": 1,

# model settings
"num-layers": 24,
"hidden-size": 2048,
"num-attention-heads": 16,
"seq-length": 2048,
"max-position-embeddings": 2048,
"num_layers": 24,
"hidden_size": 2048,
"num_attention_heads": 16,
"seq_length": 2048,
"max_position_embeddings": 2048,
"norm": "layernorm",
"pos-emb": "rotary",
"no-weight-tying": true,
"pos_emb": "rotary",
"no_weight_tying": true,
"gpt_j_residual": false,
"output_layer_parallelism": "column",

# these should provide some speedup but takes a while to build, set to true if desired
"scaled-upper-triang-masked-softmax-fusion": false,
"bias-gelu-fusion": false,
"scaled_upper_triang_masked_softmax_fusion": false,
"bias_gelu_fusion": false,

# init methods
"init_method": "small_init",
Expand Down Expand Up @@ -49,19 +49,19 @@

# batch / data settings
"train_micro_batch_size_per_gpu": 4,
"data-impl": "mmap",
"data_impl": "mmap",

# activation checkpointing
"checkpoint-activations": true,
"checkpoint-num-layers": 1,
"partition-activations": true,
"synchronize-each-layer": true,
"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,
"weight_decay": 0.1,
"hidden_dropout": 0,
"attention_dropout": 0,

# precision settings
"fp16": {
Expand All @@ -74,18 +74,18 @@
},

# misc. training settings
"train-iters": 320000,
"lr-decay-iters": 320000,
"distributed-backend": "nccl",
"lr-decay-style": "cosine",
"train_iters": 320000,
"lr_decay_iters": 320000,
"distributed_backend": "nccl",
"lr_decay_style": "cosine",
"warmup": 0.01,
"checkpoint-factor": 10000,
"eval-interval": 1000,
"eval-iters": 10,
"checkpoint_factor": 10000,
"eval_interval": 1000,
"eval_iters": 10,

# logging
"log-interval": 100,
"log_interval": 100,
"steps_per_print": 10,
"keep-last-n-checkpoints": 4,
"keep_last_n_checkpoints": 4,
"wall_clock_breakdown": true,
}
56 changes: 28 additions & 28 deletions configs/125M-json.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"pipe-parallel-size": 1,
"model-parallel-size": 1,
"pipe_parallel_size": 1,
"model_parallel_size": 1,

"num-layers": 12,
"hidden-size": 768,
"num-attention-heads": 12,
"seq-length": 2048,
"max-position-embeddings": 2048,
"num_layers": 12,
"hidden_size": 768,
"num_attention_heads": 12,
"seq_length": 2048,
"max_position_embeddings": 2048,
"norm": "layernorm",
"pos-emb": "rotary",
"no-weight-tying": true,
"pos_emb": "rotary",
"no_weight_tying": true,
"gpt_j_residual": false,
"output_layer_parallelism": "column",

"scaled-upper-triang-masked-softmax-fusion": false,
"bias-gelu-fusion": false,
"scaled_upper_triang_masked_softmax_fusion": false,
"bias_gelu_fusion": false,

"init_method": "small_init",
"output_layer_init_method": "wang_init",
Expand All @@ -40,17 +40,17 @@
},

"train_micro_batch_size_per_gpu": 4,
"data-impl": "mmap",
"data_impl": "mmap",

"checkpoint-activations": true,
"checkpoint-num-layers": 1,
"partition-activations": true,
"synchronize-each-layer": true,
"checkpoint_activations": true,
"checkpoint_num_layers": 1,
"partition_activations": true,
"synchronize_each_layer": true,

"gradient_clipping": 1.0,
"weight-decay": 0.1,
"hidden-dropout": 0.0,
"attention-dropout": 0.0,
"weight_decay": 0.1,
"hidden_dropout": 0.0,
"attention_dropout": 0.0,

"fp16": {
"enabled": true,
Expand All @@ -60,18 +60,18 @@
"min_loss_scale": 1
},

"train-iters": 320000,
"lr-decay-iters": 320000,
"distributed-backend": "nccl",
"lr-decay-style": "cosine",
"train_iters": 320000,
"lr_decay_iters": 320000,
"distributed_backend": "nccl",
"lr_decay_style": "cosine",
"warmup": 0.01,
"checkpoint-factor": 10000,
"eval-interval": 1000,
"eval-iters": 10,
"checkpoint_factor": 10000,
"eval_interval": 1000,
"eval_iters": 10,

"log-interval": 100,
"log_interval": 100,
"steps_per_print": 10,
"keep-last-n-checkpoints": 4,
"keep_last_n_checkpoints": 4,
"wall_clock_breakdown": true,

"hostfile": "/mock_path"
Expand Down
56 changes: 28 additions & 28 deletions configs/125M.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
{
# parallelism settings ( you will want to change these based on your cluster setup, ideally scheduling pipeline stages
# across the node boundaries )
"pipe-parallel-size": 1,
"model-parallel-size": 1,
"pipe_parallel_size": 1,
"model_parallel_size": 1,

# model settings
"num-layers": 12,
"hidden-size": 768,
"num-attention-heads": 12,
"seq-length": 2048,
"max-position-embeddings": 2048,
"num_layers": 12,
"hidden_size": 768,
"num_attention_heads": 12,
"seq_length": 2048,
"max_position_embeddings": 2048,
"norm": "layernorm",
"pos-emb": "rotary",
"no-weight-tying": true,
"pos_emb": "rotary",
"no_weight_tying": true,
"gpt_j_residual": false,
"output_layer_parallelism": "column",

# these should provide some speedup but takes a while to build, set to true if desired
"scaled-upper-triang-masked-softmax-fusion": false,
"bias-gelu-fusion": false,
"scaled_upper_triang_masked_softmax_fusion": false,
"bias_gelu_fusion": false,

# init methods
"init_method": "small_init",
Expand Down Expand Up @@ -50,19 +50,19 @@

# batch / data settings
"train_micro_batch_size_per_gpu": 4,
"data-impl": "mmap",
"data_impl": "mmap",

# activation checkpointing
"checkpoint-activations": true,
"checkpoint-num-layers": 1,
"partition-activations": true,
"synchronize-each-layer": true,
"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.0,
"attention-dropout": 0.0,
"weight_decay": 0.1,
"hidden_dropout": 0.0,
"attention_dropout": 0.0,

# precision settings
"fp16": {
Expand All @@ -74,19 +74,19 @@
},

# misc. training settings
"train-iters": 320000,
"lr-decay-iters": 320000,
"distributed-backend": "nccl",
"lr-decay-style": "cosine",
"train_iters": 320000,
"lr_decay_iters": 320000,
"distributed_backend": "nccl",
"lr_decay_style": "cosine",
"warmup": 0.01,
"checkpoint-factor": 10000,
"eval-interval": 1000,
"eval-iters": 10,
"checkpoint_factor": 10000,
"eval_interval": 1000,
"eval_iters": 10,

# logging
"log-interval": 100,
"log_interval": 100,
"steps_per_print": 10,
"keep-last-n-checkpoints": 4,
"keep_last_n_checkpoints": 4,
"wall_clock_breakdown": true,

# networking
Expand Down
56 changes: 28 additions & 28 deletions configs/13B.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
{
# parallelism settings ( you will want to change these based on your cluster setup, ideally scheduling pipeline stages
# across the node boundaries )
"pipe-parallel-size": 1,
"model-parallel-size": 1,
"pipe_parallel_size": 1,
"model_parallel_size": 1,

# model settings
"num-layers": 40,
"hidden-size": 5120,
"num-attention-heads": 40,
"seq-length": 2048,
"max-position-embeddings": 2048,
"num_layers": 40,
"hidden_size": 5120,
"num_attention_heads": 40,
"seq_length": 2048,
"max_position_embeddings": 2048,
"norm": "layernorm",
"pos-emb": "rotary",
"no-weight-tying": true,
"pos_emb": "rotary",
"no_weight_tying": true,
"gpt_j_residual": false,
"output_layer_parallelism": "column",

# these should provide some speedup but takes a while to build, set to true if desired
"scaled-upper-triang-masked-softmax-fusion": false,
"bias-gelu-fusion": false,
"scaled_upper_triang_masked_softmax_fusion": false,
"bias_gelu_fusion": false,

# init methods
"init_method": "small_init",
Expand Down Expand Up @@ -50,19 +50,19 @@

# batch / data settings
"train_micro_batch_size_per_gpu": 4,
"data-impl": "mmap",
"data_impl": "mmap",

# activation checkpointing
"checkpoint-activations": true,
"checkpoint-num-layers": 1,
"partition-activations": true,
"synchronize-each-layer": true,
"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,
"weight_decay": 0.1,
"hidden_dropout": 0,
"attention_dropout": 0,

# precision settings
"fp16": {
Expand All @@ -75,18 +75,18 @@
},

# misc. training settings
"train-iters": 320000,
"lr-decay-iters": 320000,
"distributed-backend": "nccl",
"lr-decay-style": "cosine",
"train_iters": 320000,
"lr_decay_iters": 320000,
"distributed_backend": "nccl",
"lr_decay_style": "cosine",
"warmup": 0.01,
"checkpoint-factor": 10000,
"eval-interval": 1000,
"eval-iters": 10,
"checkpoint_factor": 10000,
"eval_interval": 1000,
"eval_iters": 10,

# logging
"log-interval": 100,
"log_interval": 100,
"steps_per_print": 10,
"keep-last-n-checkpoints": 4,
"keep_last_n_checkpoints": 4,
"wall_clock_breakdown": true,
}
Loading

0 comments on commit 9900071

Please sign in to comment.