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
  • Loading branch information
XiaobingSuper committed Jan 6, 2025
1 parent 996357e commit 40b571f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/distributed/device_communicators/shm_broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ 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,

Check failure on line 250 in vllm/distributed/device_communicators/shm_broadcast.py

View workflow job for this annotation

GitHub Actions / ruff (3.12)

Ruff (E501)

vllm/distributed/device_communicators/shm_broadcast.py:250:81: E501 Line too long (84 > 80)
local_subscribe_port=local_subscribe_port,
remote_subscribe_port=remote_subscribe_port,
)
Expand Down

0 comments on commit 40b571f

Please sign in to comment.