File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -453,25 +453,6 @@ def _get_config_load_kwargs(kwargs: dict) -> dict:
453453 return get_hf_gguf_load_kwargs (kwargs )
454454
455455
456- def _normalize_supported_model_type (config ) -> str :
457- model_type = config .model_type .lower ()
458- config_class_name = type (config ).__name__
459-
460- if model_type == "qwen3_5" :
461- if config_class_name == "Qwen3_5TextConfig" :
462- return "qwen3_5_text"
463- if not hasattr (config , "text_config" ) and not hasattr (config , "vision_config" ):
464- return "qwen3_5_text"
465-
466- if model_type == "qwen3_5_moe" :
467- if config_class_name == "Qwen3_5MoeTextConfig" :
468- return "qwen3_5_moe_text"
469- if not hasattr (config , "text_config" ) and not hasattr (config , "vision_config" ):
470- return "qwen3_5_moe_text"
471-
472- return model_type
473-
474-
475456def check_and_get_model_definition (model_dir , trust_remote_code = False , ** config_load_kwargs ):
476457 if "gguf_file" not in config_load_kwargs :
477458 model_dir = normalize_model_id_or_path_for_hf_gguf (
You can’t perform that action at this time.
0 commit comments