This commit is contained in:
Sigbjørn Skjæret 2024-04-20 08:48:39 +02:00 committed by GitHub
parent 8d36967a2c
commit c4e6f6f4b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,7 @@ class MetadataDetails:
value: Any
description: str = ''
def get_byteorder(reader: gguf.GGUFReader) -> gguf.GGUFEndian:
if np.uint32(1) == np.uint32(1).newbyteorder("<"):
# Host is little endian