-
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
Fix Mixing hparams and arguments in LightningModule #1505
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1505 +/- ##
======================================
- Coverage 91% 91% -0%
======================================
Files 67 67
Lines 3784 3782 -2
======================================
- Hits 3439 3437 -2
Misses 345 345 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
just thinking that kwargs
shall be also filtered if the parameter has such attribute
As in allow things in kwargs to override model_args? |
i say keep it simple as this PR modifies |
@HenryJia can you update the docs to show this? |
@williamFalcon Yep, done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add note to changelog and think about adding test
This pull request is now in conflict... :( |
@Borda Added note to changelog, looking into clean ways of adding a test for this... |
The note you added in the documentation could be confusing. I wouldn't call these extra arguments hyperparameters. Because to me it reads like you can do A reformulation and an example in the docs would make it clear (at least for me). |
@awaelchli Sounds good I'll change it slightly then. Regarding the example, there already is one in the docs. It's the last example of that section. |
Awesome, it's cristal clear now. Thanks for the fix. |
* Attempt to fix Lightning-AI#1468 * Remove the if statement, it doesn't actually make any difference * Update docs * Correct warnings I caused in the last commit * Add to changelog * Actually add to changelog * Clarify documentation and examples * Update CHANGELOG.md Co-authored-by: Jirka Borovec <[email protected]>
Before submitting
What does this PR do?
Fixes #1468
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃