Skip to content

Commit c4075b8

Browse files
AbatomYuqi Zhang
authored and
Yuqi Zhang
committed
[Bugfix]Change the exception thrown by call_hf_processor from RuntimeError to ValueError (vllm-project#18181)
Signed-off-by: Abatom <abzhonghua@gmail.com> Signed-off-by: Yuqi Zhang <yuqizhang@google.com>
1 parent 4628601 commit c4075b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/inputs/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def call_hf_processor(
159159
msg = (f"Failed to apply {type(hf_processor).__name__} "
160160
f"on data={data} with kwargs={merged_kwargs}")
161161

162-
raise RuntimeError(msg) from exc
162+
raise ValueError(msg) from exc
163163

164164

165165
class DummyData(NamedTuple):

0 commit comments

Comments
 (0)