| |
| |
| { |
| |
| |
| "pipe_parallel_size": 1, |
| "model_parallel_size": 1, |
| "make_vocab_size_divisible_by": 128, |
|
|
| |
| "num_layers": 16, |
| "hidden_size": 2048, |
| "num_attention_heads": 32, |
| "num_kv_heads": 8, |
| "intermediate_size": 24576, |
| "seq_length": 2048, |
| "max_position_embeddings": 2048, |
| "pos_emb": "rotary", |
| "no_weight_tying": true, |
| "gpt_j_residual": false, |
| "output_layer_parallelism": "column", |
| "norm": "rmsnorm", |
| "rms_norm_epsilon": 1.0e-5, |
| "rmsnorm_fusion": true, |
| |
| |
| "scaled_upper_triang_masked_softmax_fusion": true, |
| "scaled_masked_softmax_fusion": true, |
| "bias_gelu_fusion": false, |
| "rope_fusion": true, |
| |
| "use_bias_in_norms": false, |
| "use_bias_in_attn_linear": false, |
| "activation": "swiglu", |
| "use_flashattn_swiglu": true, |
| "mlp_multiple_of": 256, |
|
|
| |
| "init_method": "normal", |
| "output_layer_init_method": "normal", |
| "init_method_std": 0.02, |
|
|
| |
| "optimizer": { |
| "type": "Adam", |
| "params": { |
| "lr": 0.0004, |
| "betas": [0.9, 0.95], |
| "eps": 1.0e-8, |
| } |
| }, |
|
|
| |
| "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 |
| }, |
| "min_lr": 0.00004, |
|
|
| |
| |
| "train_micro_batch_size_per_gpu": 16, |
| "gradient_accumulation_steps": 2, |
| "train_batch_size": 1024, |
| "data_impl": "mmap", |
|
|
| |
| "checkpoint_activations": false, |
| "checkpoint_num_layers": 1, |
| "partition_activations": false, |
| "synchronize_each_layer": false, |
|
|
| |
| "gradient_clipping": 1.0, |
| "weight_decay": 0.1, |
| "hidden_dropout": 0, |
| "attention_dropout": 0, |
| |
| "attention_config": [[["flash"], 16]], |
|
|
| |
| "precision": "bfloat16", |
| "fp32_allreduce": true, |
| "bf16": { |
| "enabled": true |
| }, |
| "data_types": { |
| "grad_accum_dtype": "fp32" |
| }, |
|
|
| |
| "train_iters": 48000, |
| "lr_decay_iters": 48000, |
| "distributed_backend": "nccl", |
| "lr_decay_style": "cosine", |
| "warmup": 0.05, |
| "checkpoint_factor": 1000, |
| "eval_interval": 2000, |
| "eval_iters": 10, |
| "extra_save_iters": [0, 1, 4, 16, 64, 256, 512], |
| |
|
|
| |
| "log_interval": 10, |
| "steps_per_print": 50, |
| "wall_clock_breakdown": true, |
|
|
| |
| |
| |
| |
|
|
| |
| |
| |
| "no_ssh_check": true, |
| } |
|
|