model: dbrx: convert-hf-to-gguf.py add chat template

This commit is contained in:
Pierrick HYMBERT 2024-04-07 15:57:36 +02:00
parent 200ce21436
commit 9e17dad087

View file

@ -432,6 +432,7 @@ class Model(ABC):
special_vocab = gguf.SpecialVocab(dir_model, load_merges=False)
special_vocab.merges = merges
special_vocab.chat_template = tokenizer.default_chat_template
# FIXME REVIEW how to add special tokens https://huggingface.co/databricks/dbrx-instruct/blob/main/tiktoken.py#L193
special_vocab.add_to_gguf(self.gguf_writer)