Skip to content

Commit

Permalink
adding gradient clipping to TestZeroPartialOffloadConfigSweep
Browse files Browse the repository at this point in the history
this will allow covering the gradient clipping flow with zero3
and catch issues, such as was observed during this PR
  • Loading branch information
nelyahu committed Jul 18, 2024
1 parent ffdb7f7 commit d99524b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/runtime/zero/test_zero_offloadpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test(self, h_dim: int, n_layers: int) -> None:
config_dict = {
"train_batch_size": 256,
"steps_per_print": 1,
"gradient_clipping": 1.0,
"optimizer": {
"type": "Adam",
"params": {
Expand Down

0 comments on commit d99524b

Please sign in to comment.