From ab77cc7c0d23525a511c861390bc75fe3bba7b55 Mon Sep 17 00:00:00 2001 From: jeromeku Date: Sun, 30 Mar 2025 11:06:59 -0700 Subject: [PATCH] remove deprecated key function --- unsloth/model_registry.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/unsloth/model_registry.py b/unsloth/model_registry.py index 2f7ccb956d..dfdf3755ed 100644 --- a/unsloth/model_registry.py +++ b/unsloth/model_registry.py @@ -19,20 +19,6 @@ _IS_PHI_REGISTERED = False _IS_PHI_INSTRUCT_REGISTERED = False -def construct_model_key( - org, base_name, version, size, quant_type, instruct_tag -): - key = f"{org}/{base_name}-{version}-{size}B" - if instruct_tag: - key = "-".join([key, instruct_tag]) - if quant_type: - if quant_type == "bnb": - key = "-".join([key, BNB_QUANTIZED_TAG]) - elif quant_type == "unsloth": - key = "-".join([key, UNSLOTH_DYNAMIC_QUANT_TAG]) - return key - - @dataclass class ModelInfo: org: str