|
| 1 | +{ |
| 2 | + "pipe-parallel-size": 1, |
| 3 | + "model-parallel-size": 1, |
| 4 | + |
| 5 | + "num-layers": 24, |
| 6 | + "hidden-size": 2048, |
| 7 | + "num-attention-heads": 16, |
| 8 | + "seq-length": 2048, |
| 9 | + "max-position-embeddings": 2048, |
| 10 | + "norm": "layernorm", |
| 11 | + "pos-emb": "rotary", |
| 12 | + "no-weight-tying": true, |
| 13 | + "gpt_j_residual": false, |
| 14 | + "output_layer_parallelism": "column", |
| 15 | + "attention_config": [[["flash"], 24]], |
| 16 | + "scaled-upper-triang-masked-softmax-fusion": false, |
| 17 | + "bias-gelu-fusion": false, |
| 18 | + |
| 19 | + "init_method": "small_init", |
| 20 | + "output_layer_init_method": "wang_init", |
| 21 | + |
| 22 | + "optimizer": { |
| 23 | + "type": "Adam", |
| 24 | + "params": { |
| 25 | + "lr": 0.0002, |
| 26 | + "betas": [0.9, 0.95], |
| 27 | + "eps": 1.0e-8 |
| 28 | + } |
| 29 | + }, |
| 30 | + "min_lr": 0.00002, |
| 31 | + |
| 32 | + "zero_optimization": { |
| 33 | + "stage": 1, |
| 34 | + "allgather_partitions": true, |
| 35 | + "allgather_bucket_size": 500000000, |
| 36 | + "overlap_comm": true, |
| 37 | + "reduce_scatter": true, |
| 38 | + "reduce_bucket_size": 500000000, |
| 39 | + "contiguous_gradients": true |
| 40 | + }, |
| 41 | + "train_micro_batch_size_per_gpu": 1, |
| 42 | + "autotuning": { |
| 43 | + "enabled": true, |
| 44 | + "arg_mappings": { |
| 45 | + "train_micro_batch_size_per_gpu": "--train_micro_batch_size_per_gpu", |
| 46 | + "gradient_accumulation_steps ": "--gradient_accumulation_steps" |
| 47 | + } |
| 48 | + }, |
| 49 | + "data-impl": "mmap", |
| 50 | + |
| 51 | + "checkpoint-activations": false, |
| 52 | + "checkpoint-num-layers": 1, |
| 53 | + "partition-activations": true, |
| 54 | + "synchronize-each-layer": true, |
| 55 | + |
| 56 | + "gradient_clipping": 1.0, |
| 57 | + "weight-decay": 0.1, |
| 58 | + "hidden-dropout": 0, |
| 59 | + "attention-dropout": 0, |
| 60 | + |
| 61 | + "fp16": { |
| 62 | + "fp16": true, |
| 63 | + "enabled": true, |
| 64 | + "loss_scale": 0, |
| 65 | + "loss_scale_window": 1000, |
| 66 | + "hysteresis": 2, |
| 67 | + "min_loss_scale": 1 |
| 68 | + }, |
| 69 | + |
| 70 | + "train-iters": 320000, |
| 71 | + "lr-decay-iters": 320000, |
| 72 | + "distributed-backend": "nccl", |
| 73 | + "lr-decay-style": "cosine", |
| 74 | + "warmup": 0.01, |
| 75 | + "checkpoint-factor": 10000, |
| 76 | + "eval-interval": 1000, |
| 77 | + "eval-iters": 10, |
| 78 | + "launcher": "slurm", |
| 79 | + "deepspeed_slurm": true, |
| 80 | + "no_ssh_check": true, |
| 81 | + |
| 82 | + "log-interval": 10, |
| 83 | + "steps_per_print": 10, |
| 84 | + "keep-last-n-checkpoints": 1, |
| 85 | + "wall_clock_breakdown": true |
| 86 | +} |
0 commit comments