Skip to content

[Bugfix] Add missing get_language_model to new MLLMs #17300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vllm/model_executor/models/kimi_vl.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ def _process_image_input(self,
return self.multi_modal_projector(
torch.cat(image_features)).split(lengths)

def get_language_model(self) -> torch.nn.Module:
return self.language_model

def get_multimodal_embeddings(self,
**kwargs: object) -> Optional[NestedTensors]:
# Validate the multimodal input keyword arguments
Expand Down
3 changes: 3 additions & 0 deletions vllm/model_executor/models/qwen2_5_omni_thinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,9 @@ def _parse_and_validate_multimodal_inputs(self, **kwargs: object) -> dict:
"audio"] = self._parse_and_validate_audio_input(**kwargs)
return mm_input_by_modality

def get_language_model(self) -> torch.nn.Module:
return self.language_model

def get_multimodal_embeddings(
self, **kwargs: object) -> Optional[MultiModalEmbeddings]:

Expand Down