2024-05-14 23:32:53 +08:00
|
|
|
{
|
|
|
|
"train_batch_size": "auto",
|
|
|
|
"train_micro_batch_size_per_gpu": "auto",
|
|
|
|
"gradient_accumulation_steps": "auto",
|
|
|
|
"gradient_clipping": "auto",
|
|
|
|
"zero_allow_untested_optimizer": true,
|
|
|
|
"fp16": {
|
|
|
|
"enabled": "auto",
|
|
|
|
"loss_scale": 0,
|
|
|
|
"loss_scale_window": 1000,
|
|
|
|
"initial_scale_power": 16,
|
|
|
|
"hysteresis": 2,
|
|
|
|
"min_loss_scale": 1
|
|
|
|
},
|
|
|
|
"bf16": {
|
|
|
|
"enabled": "auto"
|
2024-05-15 00:26:10 +08:00
|
|
|
},
|
|
|
|
"zero_optimization": {
|
|
|
|
"stage": 0,
|
|
|
|
"allgather_partitions": true,
|
|
|
|
"allgather_bucket_size": 5e8,
|
|
|
|
"overlap_comm": true,
|
|
|
|
"reduce_scatter": true,
|
|
|
|
"reduce_bucket_size": 5e8,
|
|
|
|
"contiguous_gradients": true,
|
|
|
|
"round_robin_gradients": true
|
2024-05-14 23:32:53 +08:00
|
|
|
}
|
|
|
|
}
|