[Misc] Add tensor schema test coverage for multimodal models (#21754)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
Isotr0py
2025-08-03 00:52:14 -07:00
committed by GitHub
parent 337eb23bcc
commit 3dddbf1f25
7 changed files with 222 additions and 15 deletions
@@ -256,7 +256,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
def __call__(
self,
*,
prompt: str,
text: str,
images: list[Image.Image],
inference_mode: bool = True,
**kwargs,
@@ -264,7 +264,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
"""
Args:
prompt (str): the formatted prompt;
text (str): the formatted prompt;
images (list[ImageType]): the list of images;
inference_mode (bool): if True, then remove the last eos token;
**kwargs:
@@ -278,7 +278,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
"""
prepare = self.process_one(
prompt=prompt,
prompt=text,
images=images,
inference_mode=inference_mode,
)