From 933f67ecd81231ebfa5e2434d3ae3819b6c28068 Mon Sep 17 00:00:00 2001 From: Yanan Cao Date: Fri, 21 Nov 2025 19:59:07 -0800 Subject: [PATCH] [Bugfix]Fix a conditional to not check zero value (#28754) Signed-off-by: Yanan Cao --- vllm/compilation/caching.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vllm/compilation/caching.py b/vllm/compilation/caching.py index 63b7ad7279e37..6297d9f995aa4 100644 --- a/vllm/compilation/caching.py +++ b/vllm/compilation/caching.py @@ -116,7 +116,8 @@ class VllmSerializableFunction(SerializableCallable): the AOT compiled path. """ compile_inputs = [ - inp or example_inputs[i] for i, inp in enumerate(fn.example_inputs) + inp if inp is not None else example_inputs[i] + for i, inp in enumerate(fn.example_inputs) ] with tracing(TracingContext(fake_mode)): fn.optimized_call = vllm_backend(