Skip to content

Commit

Permalink
Fix gguf-convert-endian script (ggerganov#4037)
Browse files Browse the repository at this point in the history
* Fix gguf-convert-endian script

* Bump version and update description
  • Loading branch information
monatis authored and olexiyb committed Nov 23, 2023
1 parent ab63c7c commit fa51fff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gguf-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"},
Expand Down
3 changes: 1 addition & 2 deletions gguf-py/scripts/gguf-convert-endian.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit fa51fff

Please sign in to comment.