Skip to content
Draft
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
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/models/internvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ def load_lora_weights(self, weights: Iterable[Tuple[str, torch.Tensor]], adapter
else:
from lmdeploy.pytorch.adapter.adapter import load_lora_weights

return load_lora_weights(weights, adapter_id)
return load_lora_weights(self.language_model, weights, adapter_id)

def load_weights(self, weights: Iterable[Tuple[str, torch.Tensor]]):
"""Load weights."""
Expand Down
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/models/internvl3_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def load_lora_weights(self, weights: Iterable[Tuple[str, torch.Tensor]], adapter
else:
from lmdeploy.pytorch.adapter.adapter import load_lora_weights

return load_lora_weights(weights, adapter_id)
return load_lora_weights(self.model.language_model, weights, adapter_id)

def rename_weight(self, name: str) -> str:
"""Rename weight."""
Expand Down