[Bugfix] Add embed_multimodal to MiniCPM-o 4.5 omni LLM class (#7384)

Signed-off-by: Guangjian <hiro20833@gmail.com>
This commit is contained in:
Guangjian Dong authored and GitHub committed 2026-09-11 18:05:12 +08:00
1 parent dff8f8f4cf
commit de9a133d48
2 files changed
+37

No files matched your search

@@ -4580,6 +4580,10 @@ class MiniCPMO45OmniLLMForConditionalGeneration(nn.Module, SupportsMultiModal, S
multimodal_embeddings += tuple(audio_embeddings)
return multimodal_embeddings
def embed_multimodal(self, **kwargs: object) -> MultiModalEmbeddings:
"""vLLM V1 encoder profiling calls this; the inherited Protocol stub returns None."""
return self.get_multimodal_embeddings(**kwargs)
def get_input_embeddings(
self,
input_ids: torch.Tensor,