Skip to content

Commit

Permalink
fix init error for MessageQueue when n_local_reader is zero
Browse files Browse the repository at this point in the history
Signed-off-by: XiaobingSuper <[email protected]>
  • Loading branch information
XiaobingSuper committed Jan 7, 2025
1 parent 996357e commit 75526b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/distributed/device_communicators/shm_broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ def __init__(
self.handle = Handle(
connect_ip=connect_ip,
local_reader_ranks=local_reader_ranks,
buffer_handle=self.buffer.handle(),
buffer_handle=self.buffer.handle()
if self.buffer is not None else None,
local_subscribe_port=local_subscribe_port,
remote_subscribe_port=remote_subscribe_port,
)
Expand Down

0 comments on commit 75526b1

Please sign in to comment.