Skip to content

Commit 75526b1

Browse files
committed
fix init error for MessageQueue when n_local_reader is zero
Signed-off-by: XiaobingSuper <[email protected]>
1 parent 996357e commit 75526b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm/distributed/device_communicators/shm_broadcast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def __init__(
247247
self.handle = Handle(
248248
connect_ip=connect_ip,
249249
local_reader_ranks=local_reader_ranks,
250-
buffer_handle=self.buffer.handle(),
250+
buffer_handle=self.buffer.handle()
251+
if self.buffer is not None else None,
251252
local_subscribe_port=local_subscribe_port,
252253
remote_subscribe_port=remote_subscribe_port,
253254
)

0 commit comments

Comments
 (0)