From 2ed4722e26864a212fbd7a48ae663d97318a8887 Mon Sep 17 00:00:00 2001 From: Zhengxu Chen Date: Wed, 4 Mar 2026 19:48:36 -0500 Subject: [PATCH] [compile] Reduce log spam from compile. (#36044) Signed-off-by: zhxchen17 --- vllm/compilation/decorators.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vllm/compilation/decorators.py b/vllm/compilation/decorators.py index 6645a06813..fe0984baf9 100644 --- a/vllm/compilation/decorators.py +++ b/vllm/compilation/decorators.py @@ -582,7 +582,6 @@ def _support_torch_compile( self.aot_compiled_fn and self._aot_compilation_path and self._aot_cache_dir ) - logger.info("saving AOT compiled function to %s", self._aot_compilation_path) try: os.makedirs(self._aot_cache_dir, exist_ok=True) # File saving should be atomic, so we will save to a temporary location @@ -590,7 +589,11 @@ def _support_torch_compile( tmp_file = f"{self._aot_compilation_path}.{os.getpid()}.tmp" self.aot_compiled_fn.save_compiled_function(tmp_file) os.replace(tmp_file, self._aot_compilation_path) - logger.info("saved AOT compiled function to %s", self._aot_compilation_path) + logger.info_once( + "saved AOT compiled function to %s", + self._aot_compilation_path, + scope="local", + ) except Exception as e: logger.warning( "unable to save AOT compiled function to %s: %s",