From d397748ca86bfd4aafb4f4e92f49ad4914cd61d2 Mon Sep 17 00:00:00 2001 From: drbh Date: Tue, 7 Jan 2025 22:09:52 +0000 Subject: [PATCH] fix: improve prompt_split_image with ref to original impl --- server/text_generation_server/models/vlm_causal_lm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/text_generation_server/models/vlm_causal_lm.py b/server/text_generation_server/models/vlm_causal_lm.py index 0ff3c3fa..8937c1c5 100644 --- a/server/text_generation_server/models/vlm_causal_lm.py +++ b/server/text_generation_server/models/vlm_causal_lm.py @@ -29,6 +29,7 @@ IDEFICS3_FAKE_IMAGE_TOKEN = "" IDEFICS3_GLOBAL_IMG_TOKEN = "" +# copied from: https://github.com/huggingface/transformers/blob/02ed609285c2448b3b54c31e362f2c389fa952ab/src/transformers/models/idefics3/processing_idefics3.py#L44-L60 def get_image_prompt_string( *, image_seq_len: int,