llama.cpp
llama.cpp copied to clipboard
Refactor gguf scripts to improve metadata handling
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.
- Added contents method to ReaderField class
- Added endianess property to GGUFReader class
Supercedes #11905
@CISC Can you confirm if this is ready to be merged?
@ngxson Yes, it's ready, @compilade will add tests in another PR.
@ngxson Resolved conflict with #12081 mind merging now? :)
@compilade Thanks. :)
Remember to tag the new version, though maybe not before after your PR?