[Bugfix] Add missing get_language_model to new MLLMs (#17300)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user