From b1b3a3549a45f4165fd03ba403fffe76712f2255 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Fri, 4 Oct 2024 15:23:56 -0700 Subject: [PATCH] refactor: use correct strings for GGUF merging --- src/AutoGGUF.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AutoGGUF.py b/src/AutoGGUF.py index 33e3fe6..fd1c758 100644 --- a/src/AutoGGUF.py +++ b/src/AutoGGUF.py @@ -1749,9 +1749,9 @@ def split_gguf( def merge_gguf(self, model_dir: str, output_dir: str) -> None: if not model_dir or not output_dir: - show_error(self.logger, f"{SPLIT_GGUF_ERROR}: {NO_MODEL_SELECTED}") + show_error(self.logger, f"Error merging GGUF: No model selected") return - self.logger.info(SPLIT_GGUF_TASK_STARTED) + self.logger.info("Merge GGUF task started.") try: command = ["llama-gguf-split", "--merge"] @@ -1766,7 +1766,7 @@ def merge_gguf(self, model_dir: str, output_dir: str) -> None: thread = QuantizationThread(command, os.getcwd(), log_file) self.quant_threads.append(thread) - task_name = SPLIT_GGUF_DYNAMIC.format(os.path.basename(model_dir)) + task_name = "Merging GGUFs {}".format(os.path.basename(model_dir)) task_item = TaskListItem( task_name, log_file,