Add extra_processor_kwargs

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Christoph Auer
2025-08-20 14:19:50 +02:00

View File

@@ -287,6 +287,7 @@ class HuggingFaceTransformersVlmModel(BaseVlmPageModel, HuggingFaceModelDownload
return_tensors="pt", return_tensors="pt",
padding=True, # pad across batch for both text and vision padding=True, # pad across batch for both text and vision
**self.vlm_options.extra_processor_kwargs, **self.vlm_options.extra_processor_kwargs,
) )
inputs = {k: v.to(self.device) for k, v in inputs.items()} inputs = {k: v.to(self.device) for k, v in inputs.items()}