Skip to content

Commit 25dd5e4

Browse files
committed
cleanup
1 parent fbacddf commit 25dd5e4

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

gptqmodel/models/auto.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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-
475456
def 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(

0 commit comments

Comments
 (0)