-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Discard init_args
after class_path
change causes error
#205
Comments
@samvanstroud Thanks for posting this issue! (and to @mauvilsa et al. for this valuable package!). As I've observed it with Fine-Tuning Scheduler as well, I'm pinning |
@mauvilsa is this related to Lightning-AI/pytorch-lightning#15796? I guess I was surprised that it was not fixed by #199, but I was composing yaml files so perhaps another fix is needed for this case? |
Actually what happened is that this is a regression and was caused by #199. The original issue Lightning-AI/pytorch-lightning#15796 is about discarding init_args when using individual command line arguments, not configs. It wasn't noticed in #199 because there is no unit test for the discard from config files. I will fix this and add a unit tests to prevent future regressions. |
Created a pull request hopefully fixing the issue. Please test it out, e.g.
|
🐛 Bug report
When composing configs, it appears that overwritten class paths do not properly drop the old
init_args
namespace, causing an error when the new class does not have the sameinit_args
.Here is the error message:
To reproduce
Expected behavior
The overwriting class should not be required to have the same
init_args
as the overwritten class.It would also be nice to have an option to suppress the warning about overwritten args.
Environment
The text was updated successfully, but these errors were encountered: