Skip to content

Commit

Permalink
Fix AsyncEngineDeadError for molmo text only input
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsalehi committed Oct 16, 2024
2 parents 717a5f8 + e4c74b3 commit e20fcd8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vllm/model_executor/models/molmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,9 +946,12 @@ def pad_images(


def input_processor_for_molmo(ctx: InputContext, llm_inputs: LLMInputs):
prompt = llm_inputs["prompt"]
multi_modal_data = llm_inputs.get("multi_modal_data")
image = multi_modal_data.get("image")
prompt = llm_inputs.get("prompt", None)
multi_modal_data = llm_inputs.get("multi_modal_data", None)
if multi_modal_data is not None:
image = multi_modal_data.get("image", None)
else:
image = None
processor = cached_get_processor(ctx.model_config.model,
trust_remote_code=True,
revision=ctx.model_config.code_revision)
Expand Down

0 comments on commit e20fcd8

Please sign in to comment.