mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-21 11:37:00 +08:00
[Bugfix]Change the exception thrown by call_hf_processor from RuntimeError to ValueError (#18181)
Signed-off-by: Abatom <abzhonghua@gmail.com>
This commit is contained in:
parent
2aa5470ac5
commit
fadb8d5c2d
@ -159,7 +159,7 @@ class InputProcessingContext(InputContext):
|
|||||||
msg = (f"Failed to apply {type(hf_processor).__name__} "
|
msg = (f"Failed to apply {type(hf_processor).__name__} "
|
||||||
f"on data={data} with kwargs={merged_kwargs}")
|
f"on data={data} with kwargs={merged_kwargs}")
|
||||||
|
|
||||||
raise RuntimeError(msg) from exc
|
raise ValueError(msg) from exc
|
||||||
|
|
||||||
|
|
||||||
class DummyData(NamedTuple):
|
class DummyData(NamedTuple):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user