Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc. bug: gguf-dump 'newbyteorder' was removed #12146

Open
dlippold opened this issue Mar 2, 2025 · 1 comment
Open

Misc. bug: gguf-dump 'newbyteorder' was removed #12146

dlippold opened this issue Mar 2, 2025 · 1 comment

Comments

@dlippold
Copy link

dlippold commented Mar 2, 2025

Name and Version

gguf-dump version from 3. March 2025.

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

Python/Bash scripts

Command line

./bin/gguf-dump model-file.gguf

Problem description & steps to reproduce

When I execute the command above I get the following erroe message.

File "lib/python3.10/site-packages/gguf/scripts/gguf_dump.py", line 24, in get_file_host_endian
host_endian = 'LITTLE' if np.uint32(1) == np.uint32(1).newbyteorder("<") else 'BIG'
AttributeError: newbyteorder was removed from scalar types in NumPy 2.0. Use sc.view(sc.dtype.newbyteorder(order)) instead.

First Bad Commit

No response

Relevant log output

@CISC
Copy link
Contributor

CISC commented Mar 2, 2025

Fixed in master, will be part of gguf version 0.16+ when released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants