From 3dec1a0e1a20b5a7e113a3441315479773babe09 Mon Sep 17 00:00:00 2001 From: Alex-Brooks Date: Mon, 30 Sep 2024 17:09:25 -0400 Subject: [PATCH 1/3] Update default mapper error log Signed-off-by: Alex-Brooks --- vllm/multimodal/image.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vllm/multimodal/image.py b/vllm/multimodal/image.py index d3a230e40477..09f852c14137 100644 --- a/vllm/multimodal/image.py +++ b/vllm/multimodal/image.py @@ -56,7 +56,10 @@ 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, and not VLLM.", data) raise return MultiModalInputs(batch_data) From 42d844e3e97d46d6ba11567491b037e1d1c7e48a Mon Sep 17 00:00:00 2001 From: Alex Brooks Date: Mon, 30 Sep 2024 23:34:18 -0600 Subject: [PATCH 2/3] Update vllm/multimodal/image.py Co-authored-by: Roger Wang <136131678+ywang96@users.noreply.github.com> --- vllm/multimodal/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/multimodal/image.py b/vllm/multimodal/image.py index 09f852c14137..7d4d6ca1a2f9 100644 --- a/vllm/multimodal/image.py +++ b/vllm/multimodal/image.py @@ -59,7 +59,7 @@ def _default_input_mapper( 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, and not VLLM.", data) + "processor in transformers, and not vLLM.", data) raise return MultiModalInputs(batch_data) From 79aacfa18e4aacfeb9fe1fb9911079bfba5b199d Mon Sep 17 00:00:00 2001 From: Alex-Brooks Date: Tue, 1 Oct 2024 01:52:44 -0400 Subject: [PATCH 3/3] Add class name of image processor to error log Signed-off-by: Alex-Brooks --- vllm/multimodal/image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vllm/multimodal/image.py b/vllm/multimodal/image.py index 7d4d6ca1a2f9..7ca64152e481 100644 --- a/vllm/multimodal/image.py +++ b/vllm/multimodal/image.py @@ -59,7 +59,9 @@ def _default_input_mapper( 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, and not vLLM.", data) + "processor in transformers (type: %s), and not vLLM.", + data, + type(image_processor).__name__) raise return MultiModalInputs(batch_data)