[Bugfix][Model Runner V2] Restore multimodal draft capability detection (#50417)
Signed-off-by: Raphael Rialland <raphael.rialland@mistral.ai>
This commit is contained in:
@@ -29,6 +29,7 @@ from vllm.model_executor.model_loader.mtp_validation import (
|
||||
is_mtp_completeness_check_enabled,
|
||||
)
|
||||
from vllm.model_executor.model_loader.weight_utils import default_weight_loader
|
||||
from vllm.model_executor.models.interfaces import SupportsMultiModalEmbeddings
|
||||
from vllm.model_executor.models.utils import maybe_prefix
|
||||
from vllm.sequence import IntermediateTensors
|
||||
|
||||
@@ -213,7 +214,7 @@ class InklingMultiTokenPredictor(nn.Module):
|
||||
return hidden
|
||||
|
||||
|
||||
class InklingMTP(nn.Module):
|
||||
class InklingMTP(nn.Module, SupportsMultiModalEmbeddings):
|
||||
def __init__(self, *, vllm_config: VllmConfig, prefix: str = "") -> None:
|
||||
super().__init__()
|
||||
assert vllm_config.speculative_config is not None
|
||||
|
||||
@@ -33,6 +33,7 @@ from vllm.model_executor.model_loader.mtp_validation import (
|
||||
is_mtp_completeness_check_enabled,
|
||||
)
|
||||
from vllm.model_executor.model_loader.weight_utils import default_weight_loader
|
||||
from vllm.model_executor.models.interfaces import SupportsMultiModalEmbeddings
|
||||
from vllm.model_executor.models.utils import maybe_prefix
|
||||
from vllm.sequence import IntermediateTensors
|
||||
|
||||
@@ -242,7 +243,7 @@ class InklingMultiTokenPredictor(nn.Module):
|
||||
return hidden
|
||||
|
||||
|
||||
class InklingMTP(nn.Module):
|
||||
class InklingMTP(nn.Module, SupportsMultiModalEmbeddings):
|
||||
def __init__(self, *, vllm_config: VllmConfig, prefix: str = "") -> None:
|
||||
super().__init__()
|
||||
assert vllm_config.speculative_config is not None
|
||||
|
||||
Reference in New Issue
Block a user