[Model] Merge SupportsMultiModalWithRawInput with SupportsMultiModal (#23749)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -1698,6 +1698,10 @@ class ModelConfig:
|
||||
def is_multimodal_model(self) -> bool:
|
||||
return self.multimodal_config is not None
|
||||
|
||||
@property
|
||||
def is_multimodal_raw_input_only_model(self) -> bool:
|
||||
return self._model_info.supports_multimodal_raw_input_only
|
||||
|
||||
@property
|
||||
def is_cross_encoder(self) -> bool:
|
||||
return (self._model_info.supports_cross_encoding
|
||||
@@ -1707,10 +1711,6 @@ class ModelConfig:
|
||||
def is_pp_supported(self) -> bool:
|
||||
return self._model_info.supports_pp
|
||||
|
||||
@property
|
||||
def is_multimodal_raw_input_supported(self) -> bool:
|
||||
return self._model_info.supports_multimodal_raw_input
|
||||
|
||||
@property
|
||||
def is_attention_free(self) -> bool:
|
||||
return self._model_info.is_attention_free
|
||||
|
||||
Reference in New Issue
Block a user