-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Call configure_model
from LightningCLI
#19111
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
base: master
Are you sure you want to change the base?
Call configure_model
from LightningCLI
#19111
Conversation
Looking at the following, probably the solution needs to be adjusted: pytorch-lightning/src/lightning/pytorch/trainer/call.py Lines 99 to 109 in 520c1e4
The issue is that the above excepts the trainer which is not yet initialised. Now the However, it does get called here directly: pytorch-lightning/src/lightning/pytorch/core/saving.py Lines 161 to 162 in 3cbc14e
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #19111 +/- ##
=========================================
- Coverage 88% 79% -9%
=========================================
Files 267 264 -3
Lines 23364 23310 -54
=========================================
- Hits 20467 18355 -2112
- Misses 2897 4955 +2058 |
@Borda thanks for the ✅ - is there anyone we can tag that can review any maybe merge/resolve the issue? 🙏 |
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
@Borda any update for this? thank you |
@lantiga mind have a look? :) |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://lightning.ai/docs/pytorch/latest/generated/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Discord. Thank you for your contributions. |
What does this PR do?
Fixes #19110
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--19111.org.readthedocs.build/en/19111/