[Refactor] Clean up log once scope="local" (#40540)
Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
cfa49213d7
commit
8f87eb4622
@@ -239,7 +239,6 @@ class SchedulerConfig:
|
||||
logger.info_once(
|
||||
"Chunked prefill is enabled with max_num_batched_tokens=%d.",
|
||||
self.max_num_batched_tokens,
|
||||
scope="local",
|
||||
)
|
||||
|
||||
if self.max_num_partial_prefills > 1:
|
||||
|
||||
+1
-10
@@ -716,9 +716,7 @@ class VllmConfig:
|
||||
self.instance_id = f"{time.time_ns()}"
|
||||
|
||||
if self.performance_mode != "balanced":
|
||||
logger.info_once(
|
||||
"Performance mode set to '%s'.", self.performance_mode, scope="local"
|
||||
)
|
||||
logger.info_once("Performance mode set to '%s'.", self.performance_mode)
|
||||
|
||||
self.try_verify_and_update_config()
|
||||
|
||||
@@ -818,7 +816,6 @@ class VllmConfig:
|
||||
"Async scheduling not supported with %s-based "
|
||||
"speculative decoding and will be disabled.",
|
||||
self.speculative_config.method,
|
||||
scope="local",
|
||||
)
|
||||
self.scheduler_config.async_scheduling = False
|
||||
elif (
|
||||
@@ -828,7 +825,6 @@ class VllmConfig:
|
||||
logger.warning_once(
|
||||
"Async scheduling is not compatible with "
|
||||
"disable_padded_drafter_batch=True and will be disabled.",
|
||||
scope="local",
|
||||
)
|
||||
self.scheduler_config.async_scheduling = False
|
||||
elif not executor_supports_async_sched:
|
||||
@@ -836,7 +832,6 @@ class VllmConfig:
|
||||
"Async scheduling will be disabled because it is not supported "
|
||||
"with the `%s` distributed executor backend. ",
|
||||
executor_backend,
|
||||
scope="local",
|
||||
)
|
||||
self.scheduler_config.async_scheduling = False
|
||||
else:
|
||||
@@ -855,7 +850,6 @@ class VllmConfig:
|
||||
logger.info_once(
|
||||
"Disabling NCCL for DP synchronization "
|
||||
"when using async scheduling.",
|
||||
scope="local",
|
||||
)
|
||||
self.parallel_config.disable_nccl_for_dp_synchronization = True
|
||||
else:
|
||||
@@ -870,7 +864,6 @@ class VllmConfig:
|
||||
logger.warning_once(
|
||||
"Disabling cascade attention (not yet compatible with "
|
||||
"async speculative decoding).",
|
||||
scope="local",
|
||||
)
|
||||
self.model_config.disable_cascade_attn = True
|
||||
|
||||
@@ -1231,7 +1224,6 @@ class VllmConfig:
|
||||
self.model_config.disable_cascade_attn = True
|
||||
logger.warning_once(
|
||||
"Disabling cascade attention when VLLM_BATCH_INVARIANT is enabled.",
|
||||
scope="local",
|
||||
)
|
||||
|
||||
if self.parallel_config.use_ubatching:
|
||||
@@ -1418,7 +1410,6 @@ class VllmConfig:
|
||||
" performance. Consider increasing max_num_batched_tokens to"
|
||||
" accommodate the additional draft token slots, or decrease"
|
||||
" num_speculative_tokens or max_num_seqs.",
|
||||
scope="local",
|
||||
)
|
||||
|
||||
max_num_scheduled_tokens = self.scheduler_config.max_num_scheduled_tokens
|
||||
|
||||
Reference in New Issue
Block a user