From fadb8d5c2df1c24d891aeccfb0b11de6e03e9f27 Mon Sep 17 00:00:00 2001 From: Zhonghua Deng Date: Fri, 16 May 2025 00:01:47 +0800 Subject: [PATCH] [Bugfix]Change the exception thrown by call_hf_processor from RuntimeError to ValueError (#18181) Signed-off-by: Abatom --- vllm/inputs/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/inputs/registry.py b/vllm/inputs/registry.py index aecddbcd75159..148b3558c15e1 100644 --- a/vllm/inputs/registry.py +++ b/vllm/inputs/registry.py @@ -159,7 +159,7 @@ class InputProcessingContext(InputContext): msg = (f"Failed to apply {type(hf_processor).__name__} " f"on data={data} with kwargs={merged_kwargs}") - raise RuntimeError(msg) from exc + raise ValueError(msg) from exc class DummyData(NamedTuple):