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