diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index 18981dd94ba549..5d87c97081daef 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -120,7 +120,7 @@ def __init__(self, dir_model: Path, ftype: gguf.LlamaFileType, fname_out: Path, self.fname_out = fname_out.parent / gguf.fill_templated_filename(fname_out.name, output_type) else: # output in the same directory as the model by default - self.fname_out = dir_model.parent / self.fname_default + self.fname_out = dir_model / f"{self.fname_default}.gguf" # Configure GGUF Writer self.gguf_writer = gguf.GGUFWriter(self.fname_out, gguf.MODEL_ARCH_NAMES[self.model_arch], endianess=self.endianess, use_temp_file=self.use_temp_file) diff --git a/gguf-py/gguf/gguf_writer.py b/gguf-py/gguf/gguf_writer.py index a4f01407c46c85..8aa181ada6b8a3 100644 --- a/gguf-py/gguf/gguf_writer.py +++ b/gguf-py/gguf/gguf_writer.py @@ -59,6 +59,7 @@ def __init__( self, path: os.PathLike[str] | str, arch: str, use_temp_file: bool = True, endianess: GGUFEndian = GGUFEndian.LITTLE, ): + logger.info(f"gguf: Will write to {path}") self.fout = open(path, "wb") self.arch = arch self.endianess = endianess