Skip to content

Commit

Permalink
fix: improve prompt_split_image with ref to original impl
Browse files Browse the repository at this point in the history
  • Loading branch information
drbh committed Jan 7, 2025
1 parent df504e9 commit d397748
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/text_generation_server/models/vlm_causal_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
IDEFICS3_GLOBAL_IMG_TOKEN = "<global-img>"


# 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,
Expand Down

0 comments on commit d397748

Please sign in to comment.