-
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
Add Fabric.save(filter=...)
#17845
Add Fabric.save(filter=...)
#17845
Conversation
…/lightning into carmocca/fabric-save-filter
⚡ Required checks status: All passing 🟢Groups summary🟢 pytorch_lightning: Tests workflow
These checks are required after the changes to 🟢 pytorch_lightning: Azure GPU
These checks are required after the changes to 🟢 pytorch_lightning: Benchmarks
These checks are required after the changes to 🟢 fabric: Docs
These checks are required after the changes to 🟢 lightning_fabric: CPU workflowThese checks are required after the changes to 🟢 lightning_fabric: Azure GPU
These checks are required after the changes to 🟢 mypy
These checks are required after the changes to 🟢 installThese checks are required after the changes to 🟢 link-check
These checks are required after the changes to Thank you for your contribution! 💜
|
Co-authored-by: Adrian Wälchli <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #17845 +/- ##
=========================================
- Coverage 83% 61% -22%
=========================================
Files 425 420 -5
Lines 32004 31938 -66
=========================================
- Hits 26603 19492 -7111
- Misses 5401 12446 +7045 |
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 in general. I just think that in 99% of the cases, you'd filter out model parameters, so I'd also add a shortcut where filter=my_callable
would be equivalent to filter={"model":my_callable}
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.
Great! This will be very useful for finetuning with PEFT and in general.
What does this PR do?
Fixes #17724
cc @Borda @awaelchli @carmocca @justusschock