Debian Codegraph @

tests/deepspeed/ds_config_zero2.json

raw
1 {
2 "fp16": {
3 "enabled": "auto",
4 "loss_scale": 0,
5 "loss_scale_window": 1000,
6 "initial_scale_power": 16,
7 "hysteresis": 2,
8 "min_loss_scale": 1
9 },
10 "bf16": {
11 "enabled": "auto"
12 },
13 "optimizer": {
14 "type": "AdamW",
15 "params": {
16 "lr": "auto",
17 "weight_decay": "auto",
18 "torch_adam": true,
19 "adam_w_mode": true
20 }
21 },
22 "scheduler": {
23 "type": "WarmupLR",
24 "params": {
25 "warmup_min_lr": "auto",
26 "warmup_max_lr": "auto",
27 "warmup_num_steps": "auto"
28 }
29 },
30 "zero_optimization": {
31 "stage": 2,
32 "offload_optimizer": {
33 "device": "cpu",
34 "pin_memory": true
35 },
36 "allgather_partitions": true,
37 "allgather_bucket_size": 2e8,
38 "overlap_comm": true,
39 "reduce_scatter": true,
40 "reduce_bucket_size": "auto",
41 "contiguous_gradients": true
42 },
43 "gradient_accumulation_steps": 1,
44 "gradient_clipping": "auto",
45 "steps_per_print": 2000,
46 "train_batch_size": "auto",
47 "train_micro_batch_size_per_gpu": "auto",
48 "wall_clock_breakdown": false
49 }