Skip to content

Commit

Permalink
fix args
Browse files Browse the repository at this point in the history
Signed-off-by: zhangsmallshark <zhangsmallshark@gmail.com>
  • Loading branch information
zhangsmallshark committed Feb 12, 2025
1 parent 937f452 commit 6b8109e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions training/DeepSpeed-Domino/domino/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ def parse_args():
help='Do not load optimizer when loading checkpoint.')
parser.add_argument('--no-load-rng', action='store_true', default=None,
help='Do not load rng state when loading checkpoint.')
group.add_argument('--exit-on-missing-checkpoint', action='store_true',
help="If '--load' is set, but checkpoint is not found "
"(e.g., path typo), then exit instead of random "
"initialization.")

args = parser.parse_args()

args.rank = int(os.getenv('RANK', '0'))
Expand Down
2 changes: 0 additions & 2 deletions training/DeepSpeed-Domino/domino/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ def setup_model_and_optimizer(base_model,
else:
args.iteration = 0

args.iteration = 0

return model, optimizer, opt_param_scheduler


Expand Down

0 comments on commit 6b8109e

Please sign in to comment.