Skip to content

Commit

Permalink
Add example deepspeed config json file
Browse files Browse the repository at this point in the history
  • Loading branch information
HHousen committed Feb 26, 2021
1 parent 2be444e commit b2d81af
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions example_deepspeed_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"zero_allow_untested_optimizer": true,
"optimizer": {
"type": "OneBitAdam",
"params": {
"lr": 2e-5,
"betas": [0.998, 0.999],
"eps": 1e-8,
"weight_decay": 1e-2,
"cuda_aware": true
}
},
"scheduler": {
"type": "WarmupLR",
"params": {
"last_batch_iteration": -1,
"warmup_min_lr": 0,
"warmup_max_lr": 2e-5,
"warmup_num_steps": 2000
}
},
"zero_optimization": {
"stage": 2,
"cpu_offload": true,
"contiguous_gradients": true,
"overlap_comm": true,
"allgather_bucket_size": 2e8,
"reduce_bucket_size": 2e8
}
}

0 comments on commit b2d81af

Please sign in to comment.