[CI/Build] drop support for Python 3.8 EOL (#8464)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
@@ -668,9 +668,10 @@ class ModelConfig:
|
||||
@property
|
||||
def is_encoder_decoder_model(self) -> bool:
|
||||
"""Extract the HF encoder/decoder model flag."""
|
||||
return getattr(self.hf_config, "is_encoder_decoder", False) or (
|
||||
(hasattr(self.hf_config, "text_config") and getattr(
|
||||
self.hf_config.text_config, "is_encoder_decoder", False)))
|
||||
return getattr(
|
||||
self.hf_config, "is_encoder_decoder",
|
||||
False) or (hasattr(self.hf_config, "text_config") and getattr(
|
||||
self.hf_config.text_config, "is_encoder_decoder", False))
|
||||
|
||||
@property
|
||||
def is_multimodal_model(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user