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

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
(cherry picked from commit c36bcfe6b3)
This commit is contained in:
Jiangyun Zhu
2025-11-14 17:01:26 +08:00
committed by Kevin H. Luu
parent b315ba9052
commit 240d6b1758

View File

@@ -779,6 +779,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: