Skip to content

Commit f3f2e8f

Browse files
authored
[forge] allow torchforges to set checkpoint base folder (#2131)
this PR 1) allowing Torchforge to decide where to put the checkpoint and wandb, etc, instead of the "current" folder ~~allowing Torchforge to decide to print / log the configs~~
1 parent f1d41a1 commit f3f2e8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchtitan/experiments/forge/engine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def __init__(self, job_config: ForgeJobConfig):
228228
if self.train_spec.state_dict_adapter
229229
else None
230230
),
231+
base_folder=job_config.job.dump_folder,
231232
)
232233

233234
loss_parallel_enabled = (

0 commit comments

Comments
 (0)