GGUF-NEW-METADATA(1)
β¨ NAME β¨
gguf-new-metadata β bestie, it's literally gguf-new-metadata. That's the name. That's the whole vibe. π
π¦ DESCRIPTION π¦
okay so the actual usage goes a lil something like this:
usage: gguf-new-metadata [-h] [--general-name "name"]
[--general-description "Description ..."]
[--chat-template "{% ... %} ..."] [--chat-template-config
tokenizer_config.json] [--chat-template-file chat_template.jinja]
[--pre-tokenizer "pre tokenizer"] [--remove-metadata general.url]
[--special-token bos | eos | eot | eom | unknown | seperator |
padding | mask | fim_pre | fim_suf | fim_mid | fim_pad | fim_rep |
fim_sep | prefix | suffix | middle "<token>"]
[--special-token-by-id bos | eos | eot | eom | unknown |
seperator | padding | mask | fim_pre | fim_suf | fim_mid |
fim_pad | fim_rep | fim_sep | prefix | suffix | middle 0]
[--force] [--verbose] input output
And what does it do, you ask? Make a copy of a GGUF file with new metadata. That's it. That's the whole job. Glow-up for your metadata, no cap. π«Ά
π positional arguments:
inputβ the GGUF format model input filename, aka the file you're copying from, the before picture πΈoutputβ the GGUF format model output filename, aka where the glow-up lands, the after picture β¨
π options:
-h,--helpβ show this help message and exit. the classic "wait what does this do again" button π--general-name "name"β sets the model'sgeneral.nameπ«--general-description "Description ..."β sets the model'sgeneral.description, so go off and describe your model, bestie βοΈ--chat-template "{% ... %} ..."β a chat template string (or a JSON string containing templates) π£οΈ--chat-template-config tokenizer_config.jsonβ a config file containing chat template(s) π--chat-template-file chat_template.jinjaβ a Jinja file containing a chat template π§--pre-tokenizer "pre tokenizer"β sets the model'stokenizer.ggml.preπ€--remove-metadata general.urlβ removes metadata from the output model, and you do it by key name ποΈ--special-token bos | eos | eot | eom | unknown | seperator | padding | mask | fim_pre | fim_suf | fim_mid | fim_pad | fim_rep | fim_sep | prefix | suffix | middle "<token>"β special token, specified by value π--special-token-by-id bos | eos | eot | eom | unknown | seperator | padding | mask | fim_pre | fim_suf | fim_mid | fim_pad | fim_rep | fim_sep | prefix | suffix | middle 0β special token, but specified by id this time π’--forceβ bypass warnings without confirmation. careful with this one, bestie, it's the "yes I'm sure, stop asking me" button and it means exactly that π--verboseβ increase output verbosity, for when you want the program to tell you everything it's feeling π―οΈ
ngl the token-type list has seperator spelled like that in the original, and we are not fixing it, because copying things character for character is the whole assignment π
that's the whole page, babe. copy a GGUF, swap the metadata, hit --force only when you mean it, and go be the main character of your own model repo. π β
β brought to you by debian, dated September 2026, GGUF-NEW-METADATA(1), User Commands section, mwah π π
π¦ where this page comes from
- ubuntu stonking: python3-gguf 10438+dfsg-1ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms