Skip to content

Commit

Permalink
[Misc] Update Default Image Mapper Error Log (vllm-project#8977)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex-Brooks <[email protected]>
Co-authored-by: Roger Wang <[email protected]>
  • Loading branch information
alex-jw-brooks and ywang96 authored Oct 2, 2024
1 parent 563649a commit 7f60520
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vllm/multimodal/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ def _default_input_mapper(
.preprocess(data, return_tensors="pt") \
.data
except Exception:
logger.error("Failed to process image (%s)", data)
logger.error(
"Failed to process image (%s) with the default mapper. "
"This is most likely an edge-case with this model's image "
"processor in transformers (type: %s), and not vLLM.",
data,
type(image_processor).__name__)
raise

return MultiModalInputs(batch_data)
Expand Down

0 comments on commit 7f60520

Please sign in to comment.