mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-07-13 06:23:34 +00:00
gguf-py : add support for chat template jinja files (#14508)
* add support for chat template jinja files * remove gemma3n hack
This commit is contained in:
@ -4408,9 +4408,6 @@ class Gemma3NModel(Gemma3Model):
|
||||
]
|
||||
|
||||
def set_vocab(self):
|
||||
with open(self.dir_model / "chat_template.jinja") as f:
|
||||
# quick hack to make sure chat template is added
|
||||
self.gguf_writer.add_chat_template(f.read())
|
||||
super().set_vocab()
|
||||
|
||||
def set_gguf_parameters(self):
|
||||
|
Reference in New Issue
Block a user