mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Fix gguf-convert-endian script (#4037)
* Fix gguf-convert-endian script * Bump version and update description
This commit is contained in:
		| @@ -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.") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 M. Yusuf Sarıgöz
					M. Yusuf Sarıgöz