Skip to content

Commit

Permalink
Merge branch 'master' into 6_fix_wd_config
Browse files Browse the repository at this point in the history
  • Loading branch information
tjruwase authored Oct 3, 2023
2 parents 616ba76 + ca03bd7 commit 358c3ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions applications/DeepSpeed-Chat/training/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,12 @@ def get_optimizer_grouped_parameters(
0.0,
},
]
if not optimizer_grouped_parameters[1]["params"]:
optimizer_grouped_parameters.pop(1)
return optimizer_grouped_parameters

non_empty_groups = []
for group in optimizer_grouped_parameters:
if group["params"]:
non_empty_groups.append(group)
return non_empty_groups


def _z3_params_to_fetch(param_list):
Expand Down

0 comments on commit 358c3ae

Please sign in to comment.