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

Support to put a torch module into all vineyard instances dispersedly #1891

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

dashanji
Copy link
Member

@dashanji dashanji commented May 15, 2024

What do these changes do?

  • Support to put a torch module dispersedly into all vineyard instances.
  • Improve the torch module doc.

Related issue number

Fixes #1884

@dashanji dashanji force-pushed the shuffle-torch-modules branch 3 times, most recently from ca55aed to 1aaab98 Compare May 20, 2024 09:37
@dashanji
Copy link
Member Author

Hi @sighingnow, could you please take a look at this?

@dashanji dashanji force-pushed the shuffle-torch-modules branch 3 times, most recently from b5ff7bb to 6532ea2 Compare May 24, 2024 02:24
@dashanji dashanji changed the title Support to shuffle torch module in rpc client Support to put a torch module into all vineyard instances dispersedly May 24, 2024
@@ -729,5 +741,13 @@ def with_compression(self, enabled: bool = True):
yield
self.compression = compression

@contextlib.contextmanager
def with_dispersion(self, enabled: bool = True):
Copy link
Member

Choose a reason for hiding this comment

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

dispersion -> spread

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
@sighingnow sighingnow merged commit 3e9ff47 into v6d-io:main Jun 5, 2024
6 checks passed
@sighingnow sighingnow deleted the shuffle-torch-modules branch June 5, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize the speed of concurrent get of pytorch models
2 participants