model: dbrx: convert-hf-to-gguf.py add chat template
This commit is contained in:
parent
200ce21436
commit
9e17dad087
1 changed files with 1 additions and 0 deletions
|
@ -432,6 +432,7 @@ class Model(ABC):
|
||||||
|
|
||||||
special_vocab = gguf.SpecialVocab(dir_model, load_merges=False)
|
special_vocab = gguf.SpecialVocab(dir_model, load_merges=False)
|
||||||
special_vocab.merges = merges
|
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
|
# 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)
|
special_vocab.add_to_gguf(self.gguf_writer)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue