mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-17 05:55:01 +08:00
[BugFix] Fix --disable-log-stats in V1 server mode (#17600)
Signed-off-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
parent
66ab3b13c9
commit
3d13ca0e24
@ -120,8 +120,9 @@ class AsyncLLM(EngineClient):
|
|||||||
executor_class=executor_class,
|
executor_class=executor_class,
|
||||||
log_stats=self.log_stats,
|
log_stats=self.log_stats,
|
||||||
)
|
)
|
||||||
for stat_logger in self.stat_loggers[0]:
|
if self.stat_loggers:
|
||||||
stat_logger.log_engine_initialized()
|
for stat_logger in self.stat_loggers[0]:
|
||||||
|
stat_logger.log_engine_initialized()
|
||||||
self.output_handler: Optional[asyncio.Task] = None
|
self.output_handler: Optional[asyncio.Task] = None
|
||||||
try:
|
try:
|
||||||
# Start output handler eagerly if we are in the asyncio eventloop.
|
# Start output handler eagerly if we are in the asyncio eventloop.
|
||||||
|
|||||||
@ -442,9 +442,10 @@ class MPClient(EngineCoreClient):
|
|||||||
logger.info("Core engine process %d ready.", eng_id)
|
logger.info("Core engine process %d ready.", eng_id)
|
||||||
identities.discard(eng_id)
|
identities.discard(eng_id)
|
||||||
# Setup KV cache config with initialization state from
|
# Setup KV cache config with initialization state from
|
||||||
# engine core process.
|
# engine core process. Sum values from all engines in DP case.
|
||||||
self.vllm_config.cache_config.num_gpu_blocks = message_dict[
|
num_gpu_blocks = self.vllm_config.cache_config.num_gpu_blocks or 0
|
||||||
'num_gpu_blocks']
|
num_gpu_blocks += message_dict['num_gpu_blocks']
|
||||||
|
self.vllm_config.cache_config.num_gpu_blocks = num_gpu_blocks
|
||||||
|
|
||||||
def _init_core_engines(
|
def _init_core_engines(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user