get_text_config
This commit is contained in:
@@ -145,7 +145,12 @@ def normalize_config(cfg):
|
||||
cfg.processor_config = (
|
||||
cfg.processor_config or cfg.base_model_config or cfg.base_model
|
||||
)
|
||||
model_config = model_config.text_config
|
||||
|
||||
try:
|
||||
model_config = model_config.text_config
|
||||
except AttributeError:
|
||||
# for qwen2_vl
|
||||
model_config = model_config.get_text_config()
|
||||
|
||||
cfg.model_config_type = model_config.model_type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user