[Bugfix] Keye-VL compatibility with tok_kwargs (#20058) (#20353)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung 2025-07-02 14:46:59 +08:00 committed by GitHub
parent 8452946c06
commit ba51aea65e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1268,11 +1268,13 @@ class KeyeMultiModalProcessor(BaseMultiModalProcessor[KeyeProcessingInfo]):
prompt: str,
mm_data: Mapping[str, object],
mm_kwargs: Mapping[str, object],
tok_kwargs: Mapping[str, object],
) -> BatchFeature:
mm_kwargs = self.info._get_image_processor_kwargs(**mm_kwargs)
return self.info.ctx.call_hf_processor(
self.info.get_hf_processor(**mm_kwargs),
dict(text=prompt, **mm_data),
self.info._get_image_processor_kwargs(**mm_kwargs),
dict(**mm_kwargs, **tok_kwargs),
)
def _get_prompt_updates(