8000 [dtensor] expose the __create_chunk_list__ in the doc by wanchaol · Pull Request #144100 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[dtensor] expose the __create_chunk_list__ in the doc #144100

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

Closed
wants to merge 2 commits into from

Conversation

wanchaol
Copy link
Collaborator
@wanchaol wanchaol commented Jan 2, 2025

Stack from ghstack (oldest at bottom):

as titled, this PR expose this dunder method as a public API in the doc,
so that different checkpoint implementations can leverage this protocol,
instead of exposing a separate API

cc @H-Huang @awgu @kwen2501 @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o

as titled, this PR expose this dunder method as a public API in the doc,
so that different checkpoint implementations can leverage this protocol,
instead of exposing a separate API

[ghstack-poisoned]
Copy link
pytorch-bot bot commented Jan 2, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 1381e29 with merge base d88a8c4 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue labels Jan 2, 2025
@wanchaol wanchaol added the release notes: distributed (dtensor) release notes category label Jan 2, 2025
as titled, this PR expose this dunder method as a public API in the doc,
so that different checkpoint implementations can leverage this protocol,
instead of exposing a separate API

cc H-Huang awgu kwen2501 fegin fduwjj wz337 wconstab d4l3k c-p-i-o

[ghstack-poisoned]
wanchaol added a commit that referenced this pull request Jan 3, 2025
as titled, this PR expose this dunder method as a public API in the doc,
so that different checkpoint implementations can leverage this protocol,
instead of exposing a separate API

ghstack-source-id: 446abef
Pull Request resolved: #144100
@wanchaol wanchaol added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 3, 2025
@wanchaol
Copy link
Collaborator Author
wanchaol commented Jan 3, 2025

@pytorchbot 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

@wanchaol wanchaol deleted the gh/wanchaol/364/head branch January 3, 2025 20:24
wanchaol added a commit that referenced this pull request Jan 14, 2025
as titled, this PR expose this dunder method as a public API in the doc,
so that different checkpoint implementations can leverage this protocol,
instead of exposing a separate API

Pull Request resolved: #144100
Approved by: https://github.com/awgu
ghstack dependencies: #144099

(cherry picked from commit eb7a303)
@@ -606,6 +606,16 @@ def __create_write_items__(self, fqn: str, object: Any):
raise RuntimeError("Unsupported tensor type!")

def __create_chunk_list__(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, dunder functions usually has some special meaning in Python runtime. What is it decorated like that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am wondering what's the special meaning refers to? iirc some dunder methods do operator overload, while others retrieves object information. This method is mainly retrieves the chunk storage metadata for distributed checkpoint purpose.

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 oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (dtensor) release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0