-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LightningCLI doesn't save optimizer's configuration if not explicitly given #20103
Comments
Hey @adosar |
@adosar the current behavior comes from omni-us/jsonargparse#90. Maybe the default should be |
Also note that the automatic |
@mauvilsa Yes, this is what I was expecting:
However, since the configuration of optimizers/schedulers doesn't cover all the cases, it might be more appropriate to just emphasize it in the docs. |
This has been fixed in #20103, which will be included in the next release of jsonargparse. |
This issue could be closed now, no? |
@adosar you created this issue, so you can close it. I don't have permission to do so. |
Bug description
From the Docs:
I would expect the saved
config.yaml
to include the options for--optimizer
etc. even if they were not passed, just like it populates theconfig.yaml
with--seed_everything
even if it wasn't explicitly passed in the CLI.What version are you seeing the problem on?
v2.2
How to reproduce the bug
Now from the console:
python main.py fit --trainer.max_epochs=1
Error messages and logs
The
config.yaml
underlightning_logs/version_0
is this:Environment
Current environment
More info
No response
cc @carmocca @mauvilsa
The text was updated successfully, but these errors were encountered: