- Notifications
You must be signed in to change notification settings - Fork 3.6k
[bug] Update broadcast + reduce decision ModelCheckpoint] #6410
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
Conversation
…/PyTorchLightning/pytorch-lightning into bugfix/5604_ddp_model_checkpoint
…sult_store.py Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
…/PyTorchLightning/pytorch-lightning into bugfix/5604_ddp_model_checkpoint
…/PyTorchLightning/pytorch-lightning into bugfix/5604_ddp_model_checkpoint
…/PyTorchLightning/pytorch-lightning into bugfix/5604_ddp_model_checkpoint
…/PyTorchLightning/pytorch-lightning into bugfix/5604_ddp_model_checkpoint
| GPU tests are failing |
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
| self.global_rank = None | ||
| self.local_rank = None | ||
| self.world_size = None |
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.
| self.global_rank = None | |
| self.local_rank = None | |
| self.world_size = None | |
| self.global_rank = 0 | |
| self.local_rank = 0 | |
| self.world_size = 1 |
Can we keep it as before and not set None?
not to break any existing behavior
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.
Hey @awaelchli. I actually think there might be a bug behind those default, which could explain issues reporting memory on gpu 0 when training on [1, 2] for example.
I will revert them back in the PR, but worth to investigate if everything is fine.
* resolve bug * update * update changelog * update PR * Update pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * add todo * resolve issues * resolve flake8 * update * add coverage for reduce * wip * restore back to brodbact * remove test.py * resolve flake8 * update * check world size * resolve test * update * use pytorch version when defined * update on comments * update on comments * flake8 * resolve bugs * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * update * update * update * update * remove test * update * resolve flake8 * update * update * update * proxy * update * update * resolve typo * prune * update parallel * update Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> (cherry picked from commit 0544efd)
* resolve bug * update * update changelog * update PR * Update pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * add todo * resolve issues * resolve flake8 * update * add coverage for reduce * wip * restore back to brodbact * remove test.py * resolve flake8 * update * check world size * resolve test * update * use pytorch version when defined * update on comments * update on comments * flake8 * resolve bugs * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * update * update * update * update * remove test * update * resolve flake8 * update * update * update * proxy * update * update * resolve typo * prune * update parallel * update Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> (cherry picked from commit 0544efd)
* resolve bug * update * update changelog * update PR * Update pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * add todo * resolve issues * resolve flake8 * update * add coverage for reduce * wip * restore back to brodbact * remove test.py * resolve flake8 * update * check world size * resolve test * update * use pytorch version when defined * update on comments * update on comments * flake8 * resolve bugs * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * update * update * update * update * remove test * update * resolve flake8 * update * update * update * proxy * update * update * resolve typo * prune * update parallel * update Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> (cherry picked from commit 0544efd)
What does this PR do?
This PR update:
broadcast_object_listfrom PyTorch.reduce_boolean_decisionfor ModelCheckpoint | EarlyStopping usingall_gather. Missing for Horovod.Fixes #6343
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃