-
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
Delay Precision.convert_module
until configure_model
has run
#19061
Conversation
⚡ 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 🟢 pytorch_lightning: Docs
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 Thank you for your contribution! 💜
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #19061 +/- ##
==========================================
- Coverage 82% 49% -33%
==========================================
Files 448 440 -8
Lines 37915 37783 -132
==========================================
- Hits 30985 18467 -12518
- Misses 6930 19316 +12386 |
Precision.convert_module
until configure_model
has runPrecision.convert_module
until configure_model
has run [TPU]
️✅ 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. |
Precision.convert_module
until configure_model
has run [TPU]Precision.convert_module
until configure_model
has run
The failing TPU job is for Fabric only, but Fabric isn't impacted by this PR so it must be an issue from somewhere else |
What does this PR do?
Fixes #18936
The main change is in
src/lightning/pytorch/strategies/strategy.py
. Everything else is a bit of flattening and making it as consistent as possible with its subclasses.The half precision test is redundant. It wasn't failing before this PR. The relevant tests are the TransformerEngine and Bitsandbytes ones.
📚 Documentation preview 📚: https://pytorch-lightning--19061.org.readthedocs.build/en/19061/
cc @Borda @carmocca @justusschock @awaelchli