A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 6, 09:30 UTC
[Log] Log once in local node by default (#37568)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
Wentao Ye committed
Mar 19, 2026 at 15:04 UTC
7454096199fcc79a63d2e1aa413e12881966cabd
1 file changed
+3
-6
vllm/logger.py
+3
-6
@@ -103,7 +103,6 @@ def _should_log_with_scope(scope: LogScope) -> bool:
103
from vllm.distributed.parallel_state import is_local_first_rank
104
105
return is_local_first_rank()
106
- # default "process" scope: always log
106
return True
107
108
@@ -116,9 +115,7 @@ class _VllmLogger(Logger):
115
`intel_extension_for_pytorch.utils._logger`.
116
"""
117
119
- def debug_once(
120
- self, msg: str, *args: Hashable, scope: LogScope = "process"
121
- ) -> None:
118
+ def debug_once(self, msg: str, *args: Hashable, scope: LogScope = "local") -> None:
119
"""
120
As [`debug`][logging.Logger.debug], but subsequent calls with
121
the same message are silently dropped.
@@ -127,7 +124,7 @@ class _VllmLogger(Logger):
124
return
125
_print_debug_once(self, msg, *args)
126
130
- def info_once(self, msg: str, *args: Hashable, scope: LogScope = "process") -> None:
127
+ def info_once(self, msg: str, *args: Hashable, scope: LogScope = "local") -> None:
128
"""
129
As [`info`][logging.Logger.info], but subsequent calls with
130
the same message are silently dropped.
@@ -137,7 +134,7 @@ class _VllmLogger(Logger):
134
_print_info_once(self, msg, *args)
135
136
def warning_once(
140
- self, msg: str, *args: Hashable, scope: LogScope = "process"
137
+ self, msg: str, *args: Hashable, scope: LogScope = "local"
138
) -> None:
139
"""
140
As [`warning`][logging.Logger.warning], but subsequent calls with