Skip to content

Commit

Permalink
AdamW as CLI default
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed May 22, 2024
1 parent b167dd6 commit 55a627b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litgpt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def main() -> None:
subsubcommand_parser = _new_parser()
if subcommand in ("finetune", "pretrain"):
subsubcommand_parser.add_subclass_arguments(torch.optim.Optimizer, "optimizer", instantiate=False, fail_untyped=False, skip={"params"})
subsubcommand_parser.set_defaults({"optimizer": "AdamW"})
subsubcommand_parser.add_function_arguments(v["fn"], skip={"optimizer"})
subcommands.add_subcommand(k, subsubcommand_parser, help=v["help"])

Expand Down

0 comments on commit 55a627b

Please sign in to comment.