Skip to content

Commit

Permalink
Correct SaveConfigCallback error message (Lightning-AI#17119)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshu-w authored Mar 17, 2023
1 parent 4d9b845 commit 3032288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightning/pytorch/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def setup(self, trainer: Trainer, pl_module: LightningModule, stage: str) -> Non
f"{self.__class__.__name__} expected {config_path} to NOT exist. Aborting to avoid overwriting"
" results of a previous run. You can delete the previous config file,"
" set `LightningCLI(save_config_callback=None)` to disable config saving,"
" or set `LightningCLI(save_config_overwrite=True)` to overwrite the config file."
' or set `LightningCLI(save_config_kwargs={"overwrite": True})` to overwrite the config file.'
)

# save the file on rank 0
Expand Down

0 comments on commit 3032288

Please sign in to comment.