Skip to content

Commit e512f76

Browse files
fix init error for MessageQueue when n_local_reader is zero (#11768)
1 parent 898cdf0 commit e512f76

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)