Add unique_id_from_bytes for NCCLLibrary #6343
Closed
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.
Reconstructs an ncclUniqueId object from bytes data for NCCLLibrary
Provide a function that converts bytes into a ncclUniqueId for NCCL to establish connections. This function can be used in dynamic point-to-point communication scenarios, such as PD separation, to establish point-to-point communication for transmitting KV Cache.
First, the bytes can be transmitted via zmq or other methods. Then, the unique_id_from_bytes function is used to convert the bytes into a ncclUniqueId. Finally, the ncclCommInitRank function is called to complete the point-to-point NCCL connection.