Skip to content

Commit

Permalink
fix types of num_decays and decay_steps_perc arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tigranfah committed Jan 23, 2025
1 parent f0608b1 commit c3a9417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion submitit_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"--job.config_file",
train_config,
"--training.steps",
"10000",
"20000",
]
)
print(" ".join(function.command))
Expand Down
10 changes: 2 additions & 8 deletions torchtitan/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,19 +230,13 @@ def __init__(self):
)
self.parser.add_argument(
"--training.num_decays",
type=Optional[float],
type=int,
default=1,
help="The number of total decays to perform throughout the training, following the WSD-S scheduler",
)
self.parser.add_argument(
"--training.decay_steps",
type=Optional[int],
default=None,
help="Steps for lr scheduler decay, default is decay starts immediately after warmup",
)
self.parser.add_argument(
"--training.decay_steps_perc",
type=Optional[float],
type=float,
default=1.0,
help="The percentage of the steps to use as decay steps",
)
Expand Down

0 comments on commit c3a9417

Please sign in to comment.