-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fix usage of fs.listdir in CheckpointConnector #15413
Conversation
Only fixing |
for more information, see https://pre-commit.ci
src/pytorch_lightning/trainer/connectors/checkpoint_connector.py
Outdated
Show resolved
Hide resolved
Hi @Borda @awaelchli any update on the review of this PR? |
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.
There are several failing tests.
Also, a CHANGELOG entry should be added.
tests/tests_pytorch/trainer/connectors/test_checkpoint_connector.py
Outdated
Show resolved
Hide resolved
@leoleoasd Responding to your concerns. Yes, we want to support the remote filesystems. It's been added in some places of the code base, logger outputs and checkpointing are the main areas where this is supported. There was never a huge demand, but the users who do use it are mostly using the s3 protocol (from general feedback on slack). For your use cases, you did the right thing and request it on GitHub. Thanks for providing help in improving the coverage here! |
…or.py Co-authored-by: Adrian Wälchli <[email protected]>
for more information, see https://pre-commit.ci
Tests passed, this PR is ready for the next round of review. |
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 if CI agrees
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: otaj <[email protected]> (cherry picked from commit ee8a57d)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: otaj <[email protected]> (cherry picked from commit ee8a57d)
What does this PR do?
Fix use path in fs.listdir in checkpoint
Fixes #15379
Does your PR introduce any breaking changes? If yes, please list them.
no
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:
Did you have fun?
Make sure you had fun coding 🙃