Bug: convert-hf-to-gguf.py on Gemma model ValueError: Duplicated key name 'tokenizer.chat_template' #7923
Labels
bug
Something isn't working
low severity
Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)
What happened?
When trying to convert
https://huggingface.co/SakanaAI/DiscoPOP-zephyr-7b-gemma/
I get the error in the title, but it's only defined a single time in tokenizer_config.json:
https://huggingface.co/SakanaAI/DiscoPOP-zephyr-7b-gemma/blob/main/tokenizer_config.json#L59
Verified locally with
cat *.json | grep chat_template
and I only get the one resultIs it somehow trying to load it twice?
Looks like when Gemma is initialized, it runs _set_vocab_sentencepiece(), which runs special_vocab.add_to_gguf (which pulls in the chat_template), and then it also again runs special_vocab.add_to_gguf
but that would mean it's been broken since April 16..
#6689
Name and Version
b3145 ubuntu 22.04
What operating system are you seeing the problem on?
Linux
Relevant log output
The text was updated successfully, but these errors were encountered: