Add a spare 1KiB field to end of GGUF metadata when writing the model #4031
KerfuffleV2
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
Should definitely be part of it, disabling 1kb of data wouldn't even be useful imho. The model sizes are so much larger in proportion. Even on a raspi 1kb is nothing |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I propose we add an unused field when creating GGUF files (can allow an option to disable this) that's just something like key
__SPARE
and an array of 1,024UINT8
s or something like that. This space can be used to add fields to the metadata when necessary, without having to recreate the entire model file.For example, if you wanted to add a
tokenizer.ggml.bos_token_id
=1
(UINT32
) field, you can just overwrite the__SPARE
field and then write an adjusted__SPARE
field into the remaining space. (This is something tools can calculate pretty easily, the user wouldn't have to worry about it.)This doesn't need to be a actual format change or anything, just a policy.
Beta Was this translation helpful? Give feedback.
All reactions