From cae984060f6ff07745fe7a60b8cd0b81c98434b2 Mon Sep 17 00:00:00 2001 From: Zhengxu Chen Date: Sun, 12 Apr 2026 22:58:33 -0400 Subject: [PATCH] [compile] Enable AOT compile with batch invariance mode. (#39201) Signed-off-by: zhxchen17 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- vllm/envs.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vllm/envs.py b/vllm/envs.py index 3b0fd8ada2..ee9d006aa9 100755 --- a/vllm/envs.py +++ b/vllm/envs.py @@ -300,10 +300,7 @@ def use_aot_compile() -> bool: else "0" ) - return ( - not bool(int(os.getenv("VLLM_BATCH_INVARIANT", "0"))) - and os.environ.get("VLLM_USE_AOT_COMPILE", default_value) == "1" - ) + return os.environ.get("VLLM_USE_AOT_COMPILE", default_value) == "1" def use_mega_aot_artifact():