Skip to content

[dist_optim] add distributed functional sgd optimizer#50618

Closed
wanchaol wants to merge 7 commits intogh/wanchaol/152/basefrom
gh/wanchaol/152/head
Closed

[dist_optim] add distributed functional sgd optimizer#50618
wanchaol wants to merge 7 commits intogh/wanchaol/152/basefrom
gh/wanchaol/152/head

Conversation

@wanchaol
Copy link
Copy Markdown
Collaborator

@wanchaol wanchaol commented Jan 15, 2021

Stack from ghstack:

Differential Revision: D25932778

Copy link
Copy Markdown
Contributor

@rohan-varma rohan-varma left a comment

Choose a reason for hiding this comment

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

Looks good as it matches the implementation in #45597

def test_dist_optim_functional(self):
self._test_dist_optim_base(optim.Adagrad, lr=0.05)
self._test_dist_optim_base(optim.Adam, lr=1e-2, amsgrad=True)
self._test_dist_optim_base(optim.SGD, lr=0.05)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this test now duplicated with the one on line 203 of this file?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes you are right, right now we are defaulting to use the torchscripted version of optimizer, let me merge these two.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@wanchaol merged this pull request in cd20675.

@facebook-github-bot facebook-github-bot deleted the gh/wanchaol/152/head branch January 26, 2021 15:21
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary: Pull Request resolved: pytorch#50618

Test Plan: Imported from OSS

Reviewed By: rohan-varma

Differential Revision: D25932778

Pulled By: wanchaol

fbshipit-source-id: 8df3567b477bc5ba3556b8c5294cd3da5db963ad
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.

3 participants