-
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
Pass enabled
down to _BackwardSyncControl
#19577
Conversation
⚡ Required checks status: All passing 🟢Groups summary🟢 pytorch_lightning: Tests workflowThese 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 Thank you for your contribution! 💜
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #19577 +/- ##
=========================================
- Coverage 84% 59% -25%
=========================================
Files 424 419 -5
Lines 34897 34805 -92
=========================================
- Hits 29295 20496 -8799
- Misses 5602 14309 +8707 |
What does this PR do?
The strategy's
BackwardSyncControl
implementation might want to run custom code when gradient accumulation is no longer enabled. This PR allows it.📚 Documentation preview 📚: https://pytorch-lightning--19577.org.readthedocs.build/en/19577/
cc @Borda @carmocca @justusschock @awaelchli