From cd8c573edef93baeafa6f71afffdb310baa0c8f4 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sat, 29 Jun 2024 09:14:56 +0200 Subject: [PATCH] squash! convert-hf : print output file name when completed Use parent attribute of Path object and string interpolation. Signed-off-by: Daniel Bevenius --- convert-hf-to-gguf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index 985fbff5d..f82a7423f 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -3133,7 +3133,7 @@ def main() -> None: else: logger.info("Exporting model...") model_instance.write() - out_path = os.path.dirname(model_instance.fname_out) + '/' if is_split else model_instance.fname_out + out_path = f"{model_instance.fname_out.parent}/" if is_split else model_instance.fname_out logger.info(f"Model successfully exported to {out_path}")