Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove dead code (vllm<=0.5.0.post1) #65

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/vllm_tgis_adapter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,19 +323,6 @@ async def run_http_server(
logger.info("args: %s", args)

engine_args = AsyncEngineArgs.from_cli_args(args)

if hasattr(engine_args, "image_input_type") and ( # vllm <= 0.5.0.post1
engine_args.image_input_type is not None
and engine_args.image_input_type.upper() != "PIXEL_VALUES"
):
# Enforce pixel values as image input type for vision language models
# when serving with API server
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, # type: ignore[arg-type]
usage_context=UsageContext.OPENAI_API_SERVER,
Expand Down