mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-12 12:39:09 +08:00
[Bugfix][V1][P/D]Fix the issue of occasional garbled output for P2pNcclConnector (#20263)
Signed-off-by: Abatom <abzhonghua@gmail.com>
This commit is contained in:
parent
97d9524fe9
commit
ded1fb635b
@ -310,10 +310,11 @@ class P2pNcclEngine:
|
|||||||
elif data["cmd"] == "PUT":
|
elif data["cmd"] == "PUT":
|
||||||
tensor_id = data["tensor_id"]
|
tensor_id = data["tensor_id"]
|
||||||
try:
|
try:
|
||||||
tensor = torch.empty(data["shape"],
|
with torch.cuda.stream(self.recv_stream):
|
||||||
dtype=getattr(
|
tensor = torch.empty(data["shape"],
|
||||||
torch, data["dtype"]),
|
dtype=getattr(
|
||||||
device=self.device)
|
torch, data["dtype"]),
|
||||||
|
device=self.device)
|
||||||
self.router_socket.send_multipart(
|
self.router_socket.send_multipart(
|
||||||
[remote_address, b"0"])
|
[remote_address, b"0"])
|
||||||
comm, rank = self.comms[remote_address.decode()]
|
comm, rank = self.comms[remote_address.decode()]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user