This commit is contained in:
Nicolas Patry 2024-05-15 10:21:16 +00:00
parent 65bc0aaa58
commit 1bcaf8f5ca

View File

@ -173,10 +173,7 @@ class VlmCausalLMBatch(FlashMistralBatch):
image_id = 0
for chunk in chunks:
if chunk["type"] == "text":
if config.model_type == "paligemma":
full_text += "<bos>" + chunk["content"] + "\n"
else:
full_text += chunk["content"]
full_text += chunk["content"]
elif chunk["type"] == "image":
image = chunk["content"]
# Should never receive URLs anymore, processing should be done