From f673699460167e0d3c97f1395057218ad8e3e2ff Mon Sep 17 00:00:00 2001 From: Qingtao Li Date: Fri, 11 Oct 2024 14:41:31 +0800 Subject: [PATCH] Remove is_lora in convert_hf_to_gguf, which is removed in master. --- convert_hf_to_gguf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index 6f31fc878..a3d35c2db 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -65,7 +65,6 @@ class Model: model_name: str | None metadata_override: Path | None dir_model_card: Path - is_lora: bool enable_t_mac: bool kcfg_file: Path | None @@ -76,7 +75,7 @@ class Model: use_temp_file: bool = False, eager: bool = False, metadata_override: Path | None = None, model_name: str | None = None, split_max_tensors: int = 0, split_max_size: int = 0, dry_run: bool = False, - small_first_shard: bool = False, hparams: dict[str, Any] | None = None, is_lora: bool = False, + small_first_shard: bool = False, hparams: dict[str, Any] | None = None, enable_t_mac: bool = False, kcfg_file: Path | None = None): if type(self) is Model: raise TypeError(f"{type(self).__name__!r} should not be directly instantiated") @@ -99,7 +98,6 @@ class Model: self.metadata_override = metadata_override self.model_name = model_name self.dir_model_card = dir_model # overridden in convert_lora_to_gguf.py - self.is_lora = is_lora # true if model is used inside convert_lora_to_gguf.py self.enable_t_mac = enable_t_mac self.kcfg_file = kcfg_file # Apply heuristics to figure out typical tensor encoding based on first layer tensor encoding type