Skip to content
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
14 changes: 13 additions & 1 deletion vllm/lora/model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,28 @@ def _maybe_init_mm(
device=self.device,
lora_config=self.lora_config,
)

lm_prefix = self.mm_mapping.language_model[0]
self.punica_wrapper_mapping[lm_prefix] = llm_punica_wrapper

if self.lora_config.enable_tower_connector_lora:
self.supports_tower_connector_lora = self.supports_mm and hasattr(
self.model, "get_num_mm_encoder_tokens"
)
if not self.supports_tower_connector_lora:
return

if (
vllm_config.model_config.multimodal_config
and vllm_config.model_config.multimodal_config.language_model_only
):
if self.supports_tower_connector_lora:
logger.warning(
"Disabling `enable_tower_connector_lora` because the multimodal "
"model is configured to initialize the language model only."
)
self.supports_tower_connector_lora = False
return

logger.warning(
"LoRA for the tower and connector of multimodal models is "
"experimental and may contain bugs. Please report any related issues on "
Expand Down
3 changes: 1 addition & 2 deletions vllm/lora/ops/triton_ops/fused_moe_lora_fp8_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
tensor_model_parallel_all_gather,
tensor_model_parallel_all_reduce,
)
from vllm.lora.ops.triton_ops.utils import supports_pdl
from vllm.triton_utils import tl, triton
from vllm.utils.torch_utils import direct_register_custom_op

from .utils import supports_pdl


@triton.jit
def _get_lora_id(
Expand Down
Loading