Skip to content

Commit 8274c5a

Browse files
CISCqnixsynapse
authored andcommitted
gguf-py : add support for chat template jinja files (ggml-org#14508)
* add support for chat template jinja files * remove gemma3n hack
1 parent 87fd08a commit 8274c5a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

convert_hf_to_gguf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4408,9 +4408,6 @@ def __init__(self, *args, **kwargs):
44084408
]
44094409

44104410
def set_vocab(self):
4411-
with open(self.dir_model / "chat_template.jinja") as f:
4412-
# quick hack to make sure chat template is added
4413-
self.gguf_writer.add_chat_template(f.read())
44144411
super().set_vocab()
44154412

44164413
def set_gguf_parameters(self):

0 commit comments

Comments
 (0)