mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
fix: default add special tokens to avoid vlm regressions
This commit is contained in:
parent
70713fc292
commit
17ac93efd3
@ -203,7 +203,7 @@ class VlmCausalLMBatch(FlashMistralBatch):
|
||||
batch_inputs,
|
||||
truncation=True,
|
||||
max_length=max_truncation,
|
||||
add_special_tokens=False,
|
||||
add_special_tokens=not config.model_type == "paligemma",
|
||||
)["input_ids"]
|
||||
if image_inputs:
|
||||
image_input = image_inputs[0]
|
||||
|
Loading…
Reference in New Issue
Block a user