diff options
author | M. Yusuf Sarıgöz <yusufsarigoz@gmail.com> | 2023-11-11 18:35:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 08:35:31 -0700 |
commit | e86fc56f7521ca4b18d1d9939e82abd40c2f1c01 (patch) | |
tree | 6b6113a2227eef60335cea75e564682472bc3f09 | |
parent | d96ca7ded77df764db797b68b4a29e34c5b56285 (diff) |
Fix gguf-convert-endian script (#4037)
* Fix gguf-convert-endian script
* Bump version and update description
-rw-r--r-- | gguf-py/pyproject.toml | 4 | ||||
-rwxr-xr-x | gguf-py/scripts/gguf-convert-endian.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gguf-py/pyproject.toml b/gguf-py/pyproject.toml index 624e1cda..e21c3cd9 100644 --- a/gguf-py/pyproject.toml +++ b/gguf-py/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "gguf" -version = "0.5.0" -description = "Write ML models in GGUF for GGML" +version = "0.5.1" +description = "Read and write ML models in GGUF for GGML" authors = ["GGML <ggml@ggml.ai>"] packages = [ {include = "gguf"}, diff --git a/gguf-py/scripts/gguf-convert-endian.py b/gguf-py/scripts/gguf-convert-endian.py index b79d86e0..10a16ad0 100755 --- a/gguf-py/scripts/gguf-convert-endian.py +++ b/gguf-py/scripts/gguf-convert-endian.py @@ -28,8 +28,7 @@ def convert_byteorder(reader: gguf.GGUFReader, args: argparse.Namespace) -> None file_endian = swapped_endian else: file_endian = host_endian - if args.order == "native": - order = host_endian + order = host_endian if args.order == "native" else args.order print(f"* Host is {host_endian.upper()} endian, GGUF file seems to be {file_endian.upper()} endian") if file_endian == order: print(f"* File is already {order.upper()} endian. Nothing to do.") |