Transfer shards from server using replication#4508
Merged
Conversation
49f21e1 to
ed77f6a
Compare
Contributor
Author
|
The failure is due to a newly disabled test, rebasing now. |
Collaborator
|
@yeounoh can you add a comment in the description regarding what problem are you trying to solve? |
Collaborator
|
Thanks, I will take a look today |
JackCaoG
reviewed
Jan 28, 2023
JackCaoG
reviewed
Jan 28, 2023
| std::move(status_or.value())); | ||
| } | ||
|
|
||
| ComputationClient::DataPtr PjRtComputationClient::ReplicateShardedData( |
Collaborator
There was a problem hiding this comment.
If I understand correctly, this functions takes a sharded data and then replicate it on all device and then return? This is useful when you want to all_gather a sharded data and return to the user?
Contributor
Author
There was a problem hiding this comment.
Correct, basically we perform a simple/light identity calculation, so that the compiler replicates the output (reassembled input).
JackCaoG
reviewed
Jan 28, 2023
Collaborator
JackCaoG
left a comment
There was a problem hiding this comment.
Mostly lgtm, minor comments
eeb88a0 to
a286d6e
Compare
a286d6e to
556cc22
Compare
556cc22 to
4873623
Compare
mateuszlewko
pushed a commit
that referenced
this pull request
Mar 15, 2023
* [SPMD] Transfer shards back to host with replication * [SPMD] Add test_transfer_sharded_data_to_host test case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow shards transfer to host, so we can do
Currently,
xt1.cpu()would crash. This is not exposing the shards, which will be addressed in the future.