mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-22 04:04:28 +08:00
[Bugfix] Add missing get_language_model to new MLLMs (#17300)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
fb1c933ade
commit
344e193b7d
@ -369,6 +369,9 @@ class KimiVLForConditionalGeneration(nn.Module, SupportsMultiModal):
|
||||
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
|
||||
|
||||
@ -809,6 +809,9 @@ class Qwen2_5OmniThinkerForConditionalGeneration(
|
||||
"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]:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user