mirror of https://github.com/leafspark/AutoGGUF
refactor: use correct strings for GGUF merging
This commit is contained in:
parent
ef4bbcef2a
commit
b1b3a3549a
|
@ -1749,9 +1749,9 @@ def split_gguf(
|
||||||
|
|
||||||
def merge_gguf(self, model_dir: str, output_dir: str) -> None:
|
def merge_gguf(self, model_dir: str, output_dir: str) -> None:
|
||||||
if not model_dir or not output_dir:
|
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
|
return
|
||||||
self.logger.info(SPLIT_GGUF_TASK_STARTED)
|
self.logger.info("Merge GGUF task started.")
|
||||||
try:
|
try:
|
||||||
command = ["llama-gguf-split", "--merge"]
|
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)
|
thread = QuantizationThread(command, os.getcwd(), log_file)
|
||||||
self.quant_threads.append(thread)
|
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_item = TaskListItem(
|
||||||
task_name,
|
task_name,
|
||||||
log_file,
|
log_file,
|
||||||
|
|
Loading…
Reference in New Issue