mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-10 07:07:10 +08:00
updated
Signed-off-by: Robert Shaw <robshaw@redhat.com>
This commit is contained in:
parent
9f7d3217dd
commit
91608889a4
@ -422,9 +422,8 @@ class EngineCoreProc(EngineCore):
|
|||||||
addresses.frontend_stats_publish_address)
|
addresses.frontend_stats_publish_address)
|
||||||
# Only publish request queue stats to coordinator for "internal"
|
# Only publish request queue stats to coordinator for "internal"
|
||||||
# LB mode.
|
# LB mode.
|
||||||
self.publish_dp_lb_stats = (
|
self.publish_dp_lb_stats = (self.has_coordinator and True)
|
||||||
self.has_coordinator
|
# and not vllm_config.parallel_config.data_parallel_external_lb)
|
||||||
and not vllm_config.parallel_config.data_parallel_external_lb)
|
|
||||||
|
|
||||||
self._init_data_parallel(vllm_config)
|
self._init_data_parallel(vllm_config)
|
||||||
|
|
||||||
|
|||||||
@ -903,8 +903,7 @@ class DPAsyncMPClient(AsyncMPClient):
|
|||||||
|
|
||||||
assert len(self.engine_ranks_managed) > 1
|
assert len(self.engine_ranks_managed) > 1
|
||||||
start_idx = self.engine_ranks_managed[0]
|
start_idx = self.engine_ranks_managed[0]
|
||||||
end_idx = self.engine_ranks_managed[-1]
|
end_idx = self.engine_ranks_managed[-1] + 1
|
||||||
logger.info(f"=============== {start_idx=}, {end_idx=}")
|
|
||||||
|
|
||||||
async def run_engine_stats_update_task():
|
async def run_engine_stats_update_task():
|
||||||
with make_zmq_socket(self.ctx, self.stats_update_address,
|
with make_zmq_socket(self.ctx, self.stats_update_address,
|
||||||
@ -973,7 +972,7 @@ class DPAsyncMPClient(AsyncMPClient):
|
|||||||
# to get get the Core's managed by this client.
|
# to get get the Core's managed by this client.
|
||||||
# TODO(rob): update this so we only pull in
|
# TODO(rob): update this so we only pull in
|
||||||
# the counts that we are load balancing across.
|
# the counts that we are load balancing across.
|
||||||
logger.info(f"{counts=}")
|
# logger.info(f"{counts=}")
|
||||||
self.lb_engines = counts[start_idx:end_idx]
|
self.lb_engines = counts[start_idx:end_idx]
|
||||||
|
|
||||||
resources.stats_update_task = asyncio.create_task(
|
resources.stats_update_task = asyncio.create_task(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user