Conversation
Added in a new streaming_save/load implementations that don't use an extra layer of zipfile serialization Co-authored-by: Tristan Rice <rice@fn.lc> Co-authored-by: Krishn Parasar <76171905+Krishn1412@users.noreply.github.com>
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Feb 7, 2025
… methods (#146555) Summary: This is intended for use with torchft when we need to do a streaming state dict transfer. This is strictly superior to the prior streaming method in torchft as this supports all tensor subclasses such as DTensor. This supports 100% of the inputs to torch.save/load but is not wire compatible nor intended to have any backwards compatibility. Security wise this fully supports weights_only and defaults to True. It does use pickle for some metadata but uses weights_only for the metadata. Adapted from: meta-pytorch/torchft#101 meta-pytorch/torchft#54 Test Plan: pytest test/distributed/test_serialization.py Pull Request resolved: #146555 Approved by: https://github.com/fegin, https://github.com/mikaylagawarecki Co-authored-by: Krishn Parasar <76171905+Krishn1412@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added in a new streaming_save/load implementations that don't use an extra layer of zipfile serialization
This is a rework of #54 that supports DTensor
Test plan: