-
Notifications
You must be signed in to change notification settings - Fork 12.2k
gguf : fix strings to not be null-terminated #2839
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
Maybe this one needs to be updated too? |
The left one is GGUFv2 and the right one is GGUFv1 - see the 5th byte |
Yes, after reconverting the file the headers look almost identical. Still, the files have a different hash. It's probably not an issue, but I'll see if I can figure what exactly are the differences. |
Yes, we should figure out where this difference comes from |
Ok, the only difference is the metadata |
Looks like this change is backwards compatible, so no need for re-quantizing models in general, correct? |
In practice, I doubt this would cause any issues, but the strings read from the python library will have a trailing NUL character. However, it should be easy to modify the library to remove them, there is no reason to have strings with NULs anyway. |
All seems to work well, thanks! |
* gguf : fix strings to not be null-terminated ggml-ci * gguf : fix gguf_add_tensor name
close #2836