[Bugfix] fix dots.ocr pp support (#28705)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
Jiangyun Zhu 2025-11-14 17:01:26 +08:00 committed by GitHub
parent 529cea343d
commit c36bcfe6b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -780,6 +780,10 @@ class DotsOCRForCausalLM(nn.Module, SupportsMultiModal, SupportsPP, SupportsLoRA
architectures=["Qwen2ForCausalLM"],
)
self.make_empty_intermediate_tensors = (
self.language_model.make_empty_intermediate_tensors
)
def _parse_and_validate_image_input(
self, **kwargs: object
) -> DotsOCRImageInputs | None: