Skip to content

Commit b1b3a35

Browse files
committed
refactor: use correct strings for GGUF merging
1 parent ef4bbce commit b1b3a35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AutoGGUF.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1749,9 +1749,9 @@ def split_gguf(
17491749

17501750
def merge_gguf(self, model_dir: str, output_dir: str) -> None:
17511751
if not model_dir or not output_dir:
1752-
show_error(self.logger, f"{SPLIT_GGUF_ERROR}: {NO_MODEL_SELECTED}")
1752+
show_error(self.logger, f"Error merging GGUF: No model selected")
17531753
return
1754-
self.logger.info(SPLIT_GGUF_TASK_STARTED)
1754+
self.logger.info("Merge GGUF task started.")
17551755
try:
17561756
command = ["llama-gguf-split", "--merge"]
17571757

@@ -1766,7 +1766,7 @@ def merge_gguf(self, model_dir: str, output_dir: str) -> None:
17661766
thread = QuantizationThread(command, os.getcwd(), log_file)
17671767
self.quant_threads.append(thread)
17681768

1769-
task_name = SPLIT_GGUF_DYNAMIC.format(os.path.basename(model_dir))
1769+
task_name = "Merging GGUFs {}".format(os.path.basename(model_dir))
17701770
task_item = TaskListItem(
17711771
task_name,
17721772
log_file,

0 commit comments

Comments
 (0)