From 5cc29cfb8bdf1fadf3abb57556966785a8501285 Mon Sep 17 00:00:00 2001 From: Zhengxu Chen Date: Wed, 25 Feb 2026 01:01:09 -0500 Subject: [PATCH] [compile] Improve error message during artifacts load failure. (#35115) Signed-off-by: zhxchen17 --- vllm/compilation/decorators.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vllm/compilation/decorators.py b/vllm/compilation/decorators.py index 68be29cca8..c6bc5506a5 100644 --- a/vllm/compilation/decorators.py +++ b/vllm/compilation/decorators.py @@ -449,10 +449,15 @@ def _support_torch_compile( self.was_aot_compile_fn_loaded_from_disk = True except Exception as e: if os.path.exists(aot_compilation_path): + if isinstance(e, EOFError): + message = "Compile cache file corrupted." + else: + message = str(e) logger.warning( - "Cannot load aot compilation from path %s, error: %s", + "Compiling model again due to a load failure from %s, " + "reason: %s", aot_compilation_path, - str(e), + message, ) if envs.VLLM_FORCE_AOT_LOAD: raise e