Skip to content
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

[PT-D][checkpoint] Resolve no such file or directory issue when checkpointing on multi hosts #92553

Closed
wants to merge 3 commits into from
Closed

[PT-D][checkpoint] Resolve no such file or directory issue when checkpointing on multi hosts #92553

wants to merge 3 commits into from

Conversation

wz337
Copy link
Contributor

@wz337 wz337 commented Jan 18, 2023

Previously, we only create the directory in rank 0. Therefore, if running on multihosts with multiple GPUs, we would run into issues of "No such file or directory".

This is the fix for it.

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 18, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/92553

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 998f358:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@wz337 wz337 marked this pull request as ready for review January 18, 2023 17:13
@wz337 wz337 requested a review from kumpera January 18, 2023 17:13
@@ -349,7 +349,7 @@ def init(self, is_coordinator: bool) -> None:
pass

def prepare_local_plan(self, plan: SavePlan) -> SavePlan:
# There's no storage input in the local plan
os.makedirs(self.path, exist_ok=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we should remove from prepare_global_plan as it's now redundant.

@wz337 wz337 requested a review from kumpera January 18, 2023 19:00
Copy link
Contributor

@kumpera kumpera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wz337
Copy link
Contributor Author

wz337 commented Jan 18, 2023

@pytorchmergebot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 18, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: The following mandatory check(s) failed (Rule Distributed):

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

@wz337
Copy link
Contributor Author

wz337 commented Jan 18, 2023

@pytorchmergebot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased multi_host_filesystemwriter onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout multi_host_filesystemwriter && git pull --rebase)

@wz337
Copy link
Contributor Author

wz337 commented Jan 18, 2023

@pytorchmergebot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: The following mandatory check(s) failed (Rule Distributed):

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

@wz337
Copy link
Contributor Author

wz337 commented Jan 19, 2023

@pytorchmergebot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased multi_host_filesystemwriter onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout multi_host_filesystemwriter && git pull --rebase)

@wz337
Copy link
Contributor Author

wz337 commented Jan 19, 2023

@pytorchmergebot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled. If you believe this is a mistake,then you can re trigger it through pytorch-bot.

@wz337
Copy link
Contributor Author

wz337 commented Jan 19, 2023

@pytorchmergebot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased multi_host_filesystemwriter onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout multi_host_filesystemwriter && git pull --rebase)

@wz337
Copy link
Contributor Author

wz337 commented Jan 20, 2023

@pytorchmergebot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased multi_host_filesystemwriter onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout multi_host_filesystemwriter && git pull --rebase)

@wz337
Copy link
Contributor Author

wz337 commented Jan 20, 2023

@pytorchmergebot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants