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

[Reland] [DDP] Implement a hook which performs FunctionalSGD step. #62177

Closed
wants to merge 1 commit into from

Conversation

rohan-varma
Copy link
Member

@rohan-varma rohan-varma commented Jul 26, 2021

Reland of #61678
Fix CI failure by gating including torchvision model on whether torchvision is available or not.

Differential Revision: [D29904101](https://our.internmc.facebook.com/intern/diff/D29904101/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jul 26, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 8e88c47 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot facebook-github-bot added oncall: distributed Add this issue/PR to distributed oncall triage queue cla signed labels Jul 26, 2021
rohan-varma added a commit that referenced this pull request Jul 26, 2021
Reland of #61678
Fix CI failure by gating including torchvision model on whether torchvision is available or not.

Differential Revision: [D29904101](https://our.internmc.facebook.com/intern/diff/D29904101/)

ghstack-source-id: 134282165
Pull Request resolved: #62177
@@ -22,7 +22,8 @@ def __init__(
momentum: float = 0.0,
dampening: float = 0.0,
weight_decay: float = 0.0,
nesterov: bool = False
nesterov: bool = False,
allow_empty_param_list: bool = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, should we be concerned with TorchScript forward compatibility issues due to changing the number of function arguments? If not, is that because _FunctionalSGD is private, so its API is permitted to change?

I also want to mention that I agree with the motivation of this allow_empty_param_list argument. I similarly found the need for it when working on overlapping DDP with ZeRO.

Copy link
Member Author

Choose a reason for hiding this comment

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

Regarding FC, indeed a TS interpreter built without this diff would not recognize the new argument, but I don't think this is being used in any such scenarios and _FunctionalSGD is also private.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6dc2c07.

@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/361/head branch July 30, 2021 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged oncall: distributed Add this issue/PR to distributed oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants