Skip to content

Commit

Permalink
set auto for other params that hf trainer sets for ds. include zero1 …
Browse files Browse the repository at this point in the history
…json (#570)
  • Loading branch information
winglian authored Sep 14, 2023
1 parent 3fbde76 commit 3b18c96
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
39 changes: 39 additions & 0 deletions deepspeed/zero1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"zero_optimization": {
"stage": 1,
"overlap_comm": true
},
"bf16": {
"enabled": "auto"
},
"fp16": {
"enabled": "auto",
"auto_cast": false,
"loss_scale": 0,
"initial_scale_power": 32,
"loss_scale_window": 1000,
"hysteresis": 2,
"min_loss_scale": 1
},
"optimizer": {
"type": "AdamW",
"params": {
"lr": "auto",
"betas": "auto",
"eps": "auto",
"weight_decay": "auto"
}
},
"scheduler": {
"type": "WarmupDecayLR",
"params": {
"warmup_min_lr": "auto",
"warmup_max_lr": "auto",
"warmup_num_steps": "auto",
"total_num_steps": "auto"
}
},
"train_batch_size": "auto",
"train_micro_batch_size_per_gpu": "auto",
"wall_clock_breakdown": false
}
7 changes: 2 additions & 5 deletions deepspeed/zero2.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
"type": "AdamW",
"params": {
"lr": "auto",
"betas": [
0.9,
0.999
],
"eps": 1e-8,
"betas": "auto",
"eps": "auto",
"weight_decay": "auto"
}
},
Expand Down
2 changes: 1 addition & 1 deletion deepspeed/zero3.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"params": {
"lr": "auto",
"betas": "auto",
"eps": 1e-8,
"eps": "auto",
"weight_decay": "auto"
}
},
Expand Down

0 comments on commit 3b18c96

Please sign in to comment.