mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-17 05:22:16 +08:00
[Bugfix] fix dots.ocr pp support (#28705)
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
parent
529cea343d
commit
c36bcfe6b3
@ -780,6 +780,10 @@ class DotsOCRForCausalLM(nn.Module, SupportsMultiModal, SupportsPP, SupportsLoRA
|
|||||||
architectures=["Qwen2ForCausalLM"],
|
architectures=["Qwen2ForCausalLM"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.make_empty_intermediate_tensors = (
|
||||||
|
self.language_model.make_empty_intermediate_tensors
|
||||||
|
)
|
||||||
|
|
||||||
def _parse_and_validate_image_input(
|
def _parse_and_validate_image_input(
|
||||||
self, **kwargs: object
|
self, **kwargs: object
|
||||||
) -> DotsOCRImageInputs | None:
|
) -> DotsOCRImageInputs | None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user