Skip to content

Commit e270881

Browse files
alex-jw-brooksywang96
authored andcommitted
[Misc] Update Default Image Mapper Error Log (vllm-project#8977)
Signed-off-by: Alex-Brooks <Alex.Brooks@ibm.com> Co-authored-by: Roger Wang <136131678+ywang96@users.noreply.github.com> Signed-off-by: Alvant <alvasian@yandex.ru>
1 parent 7e46999 commit e270881

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vllm/multimodal/image.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ def _default_input_mapper(
5656
.preprocess(data, return_tensors="pt") \
5757
.data
5858
except Exception:
59-
logger.error("Failed to process image (%s)", data)
59+
logger.error(
60+
"Failed to process image (%s) with the default mapper. "
61+
"This is most likely an edge-case with this model's image "
62+
"processor in transformers (type: %s), and not vLLM.",
63+
data,
64+
type(image_processor).__name__)
6065
raise
6166

6267
return MultiModalInputs(batch_data)

0 commit comments

Comments
 (0)