]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert-hf : print output file name when completed (#8181)
authorDaniel Bevenius <redacted>
Tue, 2 Jul 2024 06:40:49 +0000 (08:40 +0200)
committerGitHub <redacted>
Tue, 2 Jul 2024 06:40:49 +0000 (09:40 +0300)
commit023b8807e10bc3ade24a255f01c1ad2a01bb4228
tree3fc636b79baef5d28c12f742822261e195346579
parent0e0590adab9f367b15ae2bf090a6d24f9df47ff1
convert-hf : print output file name when completed (#8181)

* convert-hf : print output file name when completed

This commit adds the output file name to the log message when the
conversion is completed.

The motivation for this change is that when `--outfile` option is not
specified it migth not be obvious where the output file is written.

With this change the output of running the script will be something like
the following:
```console
INFO:hf-to-gguf:Model successfully exported to models/gemma-2-9b-it.gguf.
```

Signed-off-by: Daniel Bevenius <redacted>
* squash! convert-hf : print output file name when completed

Updates the output of to support printing the directory if the output is
split into multiple files. Also the output file name is now retrieved
from the model_instance object.

Signed-off-by: Daniel Bevenius <redacted>
* squash! convert-hf : print output file name when completed

Use parent attribute of Path object and string interpolation.

Signed-off-by: Daniel Bevenius <redacted>
* squash! convert-hf : print output file name when completed

Use os.sep instead of hardcoding the path separator.

Signed-off-by: Daniel Bevenius <redacted>
---------

Signed-off-by: Daniel Bevenius <redacted>
convert-hf-to-gguf.py