Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DSD] Unify the API signatures of set_model_state_dict and set_optimizer_state_dict #127384

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

fegin
Copy link
Contributor

@fegin fegin commented May 29, 2024

[ghstack-poisoned]
Copy link

pytorch-bot bot commented May 29, 2024

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 7ff00e4 with merge base a60b06b (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 module: distributed_checkpoint oncall: distributed Add this issue/PR to distributed oncall triage queue labels May 29, 2024
@fegin fegin added release notes: distributed (checkpoint) ciflow/trunk Trigger trunk jobs on your pull request ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR labels May 29, 2024
@fegin fegin requested review from LucasLLC and wz337 May 29, 2024 08:06
@fegin fegin added the suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) label May 29, 2024
[ghstack-poisoned]
Copy link
Contributor

@wz337 wz337 left a comment

Choose a reason for hiding this comment

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

LGTM

@fegin
Copy link
Contributor Author

fegin commented May 31, 2024

@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

pytorchmergebot pushed a commit that referenced this pull request May 31, 2024
…itialized case (#127385)

Fixes #124942

Summary:
Allow DSD to support loading the regular optimizer state_dict and can be used when torch.distributed.is_initialized() is False.

Pull Request resolved: #127385
Approved by: https://github.com/wz337
ghstack dependencies: #127070, #127071, #127384
bigfootjon pushed a commit that referenced this pull request Jun 5, 2024
…zer_state_dict (#127384)

Summary:
Allow the optim_state_dict argument to be a positional argument. This make sense since this is a required argument and this will make the function signature the consistent as set_model_state_dict without causing BC issues.

Pull Request resolved: #127384
Approved by: https://github.com/wz337
ghstack dependencies: #127070, #127071

(cherry picked from commit 8b4ad3a)
bigfootjon pushed a commit that referenced this pull request Jun 5, 2024
…itialized case (#127385)

Fixes #124942

Summary:
Allow DSD to support loading the regular optimizer state_dict and can be used when torch.distributed.is_initialized() is False.

Pull Request resolved: #127385
Approved by: https://github.com/wz337
ghstack dependencies: #127070, #127071, #127384

(cherry picked from commit 64c581a)
petrex pushed a commit to petrex/pytorch that referenced this pull request Jun 5, 2024
…zer_state_dict (pytorch#127384)

Summary:
Allow the optim_state_dict argument to be a positional argument. This make sense since this is a required argument and this will make the function signature the consistent as set_model_state_dict without causing BC issues.

Pull Request resolved: pytorch#127384
Approved by: https://github.com/wz337
ghstack dependencies: pytorch#127070, pytorch#127071
petrex pushed a commit to petrex/pytorch that referenced this pull request Jun 5, 2024
…itialized case (pytorch#127385)

Fixes pytorch#124942

Summary:
Allow DSD to support loading the regular optimizer state_dict and can be used when torch.distributed.is_initialized() is False.

Pull Request resolved: pytorch#127385
Approved by: https://github.com/wz337
ghstack dependencies: pytorch#127070, pytorch#127071, pytorch#127384
@github-actions github-actions bot deleted the gh/fegin/246/head branch July 1, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (checkpoint) suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.