[Bugfix]Fix a conditional to not check zero value (#28754)

Signed-off-by: Yanan Cao <gmagogsfm@gmail.com>
This commit is contained in:
Yanan Cao 2025-11-21 19:59:07 -08:00 committed by GitHub
parent fd65015a14
commit 933f67ecd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(