-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d246a1
commit 84c5380
Showing
2 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
# parallelism settings | ||
"pipe_parallel_size": 1, | ||
"model_parallel_size": 1, | ||
|
||
# model settings | ||
"num_layers": 8, | ||
"num_attention_heads": 8, | ||
"seq_length": 128, | ||
"max_position_embeddings": 128, | ||
"pos_emb": "rotary", | ||
"rotary_pct": 0.25, | ||
"no_weight_tying": true, | ||
"gpt_j_residual": true, | ||
"output_layer_parallelism": "column", | ||
|
||
# "attention_config": [[["flash"], 8]], | ||
|
||
# these should provide some speedup but takes a while to build, set to true if desired | ||
"scaled_upper_triang_masked_softmax_fusion": true, | ||
"bias_gelu_fusion": true, | ||
|
||
# init methods | ||
"init_method": "normal", | ||
"output_layer_init_method": "scaled_normal", | ||
|
||
# optimizer settings | ||
"optimizer": { | ||
"type": "Adam", | ||
"params": { | ||
"lr": 0.006, | ||
"betas": [0.9, 0.95], | ||
"eps": 1.0e-8, | ||
} | ||
}, | ||
# "min_lr": 0.006, | ||
|
||
# for all zero_optimization options, see https://www.deepspeed.ai/docs/config-json/#zero-optimizations-for-fp16-training | ||
"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": 8, | ||
"data_impl": "mmap", | ||
"num_workers": 1, | ||
|
||
# activation checkpointing | ||
"checkpoint_activations": true, | ||
"checkpoint_num_layers": 1, | ||
"partition_activations": true, | ||
"synchronize_each_layer": true, | ||
|
||
# regularization | ||
"gradient_clipping": 1.0, | ||
"weight_decay": 0.0, | ||
"hidden_dropout": 0, | ||
"attention_dropout": 0, | ||
|
||
# precision settings | ||
"precision": "fp32", | ||
# "fp16": { | ||
# "fp16": true, | ||
# "enabled": true, | ||
# "loss_scale": 0, | ||
# "loss_scale_window": 1000, | ||
# "initial_scale_power": 12, | ||
# "hysteresis": 2, | ||
# "min_loss_scale": 1, | ||
# }, | ||
|
||
# misc. training settings | ||
"train_iters": 300, | ||
"lr_decay_iters": 300, | ||
"distributed_backend": "nccl", | ||
"lr_decay_style": "cosine", | ||
"warmup": 0.01, | ||
"checkpoint_factor": 300, | ||
"eval_interval": 300, | ||
"eval_iters": 10, | ||
|
||
# logging | ||
"log_interval": 10, | ||
"steps_per_print": 10, | ||
"wall_clock_breakdown": true, | ||
|
||
"tokenizer_type": "HFTokenizer", | ||
"vocab-file": "/weka/lintangsutawika/09-mup-neox/20B_tokenizer.json", | ||
|
||
"coord_check": true, | ||
"use_mup": true, | ||
# sigma_base | ||
"init_method_std": 0.08, | ||
# "mup_embedding_multiplier": 5, | ||
# "mup_output_multiplier": 1, | ||
# "mup_width_multiplier": 1, | ||
"mup_d_model_base": 128, | ||
"hidden_size": 128, | ||
|
||
"data-path": "/weka/lintangsutawika/09-mup-neox/data/enwik8/enwik8_text_document", | ||
|
||
# "launcher": "slurm", | ||
# "deepspeed_slurm": true, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters