mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Fixed.
This commit is contained in:
parent
65bc0aaa58
commit
1bcaf8f5ca
@ -173,10 +173,7 @@ class VlmCausalLMBatch(FlashMistralBatch):
|
|||||||
image_id = 0
|
image_id = 0
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
if chunk["type"] == "text":
|
if chunk["type"] == "text":
|
||||||
if config.model_type == "paligemma":
|
full_text += chunk["content"]
|
||||||
full_text += "<bos>" + chunk["content"] + "\n"
|
|
||||||
else:
|
|
||||||
full_text += chunk["content"]
|
|
||||||
elif chunk["type"] == "image":
|
elif chunk["type"] == "image":
|
||||||
image = chunk["content"]
|
image = chunk["content"]
|
||||||
# Should never receive URLs anymore, processing should be done
|
# Should never receive URLs anymore, processing should be done
|
||||||
|
Loading…
Reference in New Issue
Block a user