From 4aa55db5772023d61fd3bf9d53f76bb656e72357 Mon Sep 17 00:00:00 2001 From: Kush Zingade Date: Mon, 10 Aug 2026 14:11:28 +0800 Subject: [PATCH] [Misc] Remove stale level reference from CompilationConfig validator CompilationConfig.level was renamed to mode, but two references to the old name were left behind: the _skip_none_validation field_validator still lists "level", and the ValueError raised when mode is unset still says "where the level is set". No behaviour change. Signed-off-by: Kush Zingade --- vllm/config/compilation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vllm/config/compilation.py b/vllm/config/compilation.py index 0776a60a4697..7d1185692a5d 100644 --- a/vllm/config/compilation.py +++ b/vllm/config/compilation.py @@ -887,7 +887,6 @@ def validate_compile_cache_save_format(cls, value: str) -> str: return value @field_validator( - "level", "mode", "cudagraph_mode", "max_cudagraph_capture_size", @@ -1078,7 +1077,7 @@ def init_backend( if self.mode is None: raise ValueError( "No compilation mode is set. This method should only be " - "called via vllm config where the level is set if none is " + "called via vllm config where the mode is set if none is " "provided." ) if self.mode == CompilationMode.NONE: