[VLM] Remove image_input_type from VLM config (#5852)
Signed-off-by: Xiaowei Jiang <xwjiang2010@gmail.com> Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com> Co-authored-by: Roger Wang <ywang@roblox.com>
This commit is contained in:
@@ -213,15 +213,6 @@ if __name__ == "__main__":
|
||||
|
||||
engine_args = AsyncEngineArgs.from_cli_args(args)
|
||||
|
||||
# Enforce pixel values as image input type for vision language models
|
||||
# when serving with API server
|
||||
if engine_args.image_input_type is not None and \
|
||||
engine_args.image_input_type.upper() != "PIXEL_VALUES":
|
||||
raise ValueError(
|
||||
f"Invalid image_input_type: {engine_args.image_input_type}. "
|
||||
"Only --image-input-type 'pixel_values' is supported for serving "
|
||||
"vision language models with the vLLM API server.")
|
||||
|
||||
engine = AsyncLLMEngine.from_engine_args(
|
||||
engine_args, usage_context=UsageContext.OPENAI_API_SERVER)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user