Skip to content

Conversation

@wayi1
Copy link
Contributor

@wayi1 wayi1 commented Aug 31, 2020

Summary:
This method returns a list of RRefs of remote parameters that can be fed into the DistributedOptimizer.

Still trying to add a unit test.

Test Plan: buck test caffe2/test/distributed/rpc:process_group_agent -- RemoteModule

Differential Revision: D23399586

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D23399586

@codecov
Copy link

codecov bot commented Aug 31, 2020

Codecov Report

Merging #43906 into master will decrease coverage by 0.01%.
The diff coverage is 34.78%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #43906      +/-   ##
==========================================
- Coverage   69.35%   69.33%   -0.02%     
==========================================
  Files         381      381              
  Lines       47321    47341      +20     
==========================================
+ Hits        32820    32826       +6     
- Misses      14501    14515      +14     
Impacted Files Coverage Δ
..._internal/distributed/nn/api/remote_module_test.py 35.38% <30.76%> (-0.75%) ⬇️
torch/distributed/nn/api/remote_module.py 34.04% <40.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update addfd7a...ff2d095. Read the comment docs.

@dr-ci
Copy link

dr-ci bot commented Aug 31, 2020

💊 CI failures summary and remediations

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


  • 3/3 failures possibly* introduced in this PR
    • 3/3 non-CircleCI failure(s)

Extra GitHub checks: 1 failed


ci.pytorch.org: 1 failed


codecov.io: 1 failed


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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 17 times.

Copy link
Contributor

@pritamdamania87 pritamdamania87 left a comment

Choose a reason for hiding this comment

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

Overall approach looks good, lets add some test coverage :)

@pritamdamania87
Copy link
Contributor

Lets reference the original gh issue in the PR summary for #43906 and #43895

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D23399586

2 similar comments
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D23399586

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D23399586

@wayi1 wayi1 self-assigned this Sep 4, 2020
Summary:
Pull Request resolved: #43906

This method returns a list of RRefs of remote parameters that can be fed into the DistributedOptimizer.

Original PR issue: RemoteModule enhancements #40550

Test Plan: buck test caffe2/test/distributed/rpc:process_group_agent -- RemoteModule

Differential Revision: D23399586

fbshipit-source-id: add1a925924c946759ab08656d2150a863c6df95
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D23399586

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8b17fd2.

Returns:
A list of RRefs to remote module parameters.
"""
return rpc.rpc_sync(self.on, _param_rrefs, args=(self.module_rref, recurse))
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, would it be good to support an async API for this as well? It could be useful if users want to retrieve the parameters for several remote modules and an async API would allow us to do this concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants