mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-10-29 22:20:15 +01:00
Fix gguf-convert-endian script (#4037)
* Fix gguf-convert-endian script * Bump version and update description
This commit is contained in:
parent
d96ca7ded7
commit
e86fc56f75
@ -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"},
|
||||
|
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user