Skip to content

Commit 3032288

Browse files
authored
Correct SaveConfigCallback error message (#17119)
1 parent 4d9b845 commit 3032288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def setup(self, trainer: Trainer, pl_module: LightningModule, stage: str) -> Non
243243
f"{self.__class__.__name__} expected {config_path} to NOT exist. Aborting to avoid overwriting"
244244
" results of a previous run. You can delete the previous config file,"
245245
" set `LightningCLI(save_config_callback=None)` to disable config saving,"
246-
" or set `LightningCLI(save_config_overwrite=True)` to overwrite the config file."
246+
' or set `LightningCLI(save_config_kwargs={"overwrite": True})` to overwrite the config file.'
247247
)
248248

249249
# save the file on rank 0

0 commit comments

Comments
 (0)