-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Refactor gguf scripts to improve metadata handling #11909
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
Conversation
Added contents method to ReaderField class Added endianess property to GGUFReader class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test gguf_convert_endian
or gguf_new_metadata
, but I did test ReaderField.contents()
in #11909 (comment) and gguf_dump
, with both Numpy 1.26.4
and 2.2.0
.
This is good and should finally completely fix #10127 even for big-endian models.
@CISC Can you confirm if this is ready to be merged? |
@ngxson Yes, it's ready, @compilade will add tests in another PR. |
@compilade Thanks. :) Remember to tag the new version, though maybe not before after your PR? |
* Refactor gguf scripts to improve metadata handling Added contents method to ReaderField class Added endianess property to GGUFReader class * update scripts * fix import * remove unused import * attempt to work around flake and pyright errors * second attempt * give up, ignore type * bump version * apply newbyteorder fixes
* Refactor gguf scripts to improve metadata handling Added contents method to ReaderField class Added endianess property to GGUFReader class * update scripts * fix import * remove unused import * attempt to work around flake and pyright errors * second attempt * give up, ignore type * bump version * apply newbyteorder fixes
* Refactor gguf scripts to improve metadata handling Added contents method to ReaderField class Added endianess property to GGUFReader class * update scripts * fix import * remove unused import * attempt to work around flake and pyright errors * second attempt * give up, ignore type * bump version * apply newbyteorder fixes
I've had these changes locally for quite a while and more or less forgotten about them, it's high time to make a PR as it fixes a few issues (endianess check) as well as improving and deduplicating metadata handling/rendering across all scripts.
Supercedes #11905