Skip to content

Commit 393c960

Browse files
Abatomgshtras
authored andcommitted
[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: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
1 parent daae930 commit 393c960

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)